• 大小: 321KB
    文件类型: .rar
    金币: 2
    下载: 3 次
    发布日期: 2021-06-08
  • 语言: C#
  • 标签: FANUC  FOCAS  C#  

资源简介

使用C# FOCAS 1、2开发数控机床程序

资源截图

代码片段和文件信息

/*-------------------------------------------------------------------*/
/* fwlib32.cs                                                        */
/*                                                                   */
/* CNC/PMC Data Window Library for FOCAS1/Ethernet                   */
/*                                                                   */
/* Copyright (C) 2002-2011 by FANUC CORPORATION All rights reserved. */
/*                                                                   */
/*-------------------------------------------------------------------*/
using System;
using System.Runtime.InteropServices;


    public class Focas1
    {
        /* Axis define */
#if FS30D
    public const short MAX_AXIS = 32;
#elif M_AXIS2
    public const short MAX_AXIS = 24;
#elif FS15D
    public const short MAX_AXIS = 10;
#else
        public const short MAX_AXIS = 8;
#endif

        public const short ALL_AXES = (-1);
        public const short ALL_SPINDLES = (-1);
        public const short EW_OK = (short)focas_ret.EW_OK;

        /* Error Codes */
        public enum focas_ret
        {
            EW_PROTOCOL = (-17)           /* protocol error */
            EW_SOCKET = (-16)           /* Windows socket error */
            EW_NODLL = (-15)           /* DLL not exist error */
            EW_BUS = (-11)           /* bus error */
            EW_SYSTEM2 = (-10)           /* system error */
            EW_HSSB = (-9)           /* hssb communication error */
            EW_HANDLE = (-8)           /* Windows library handle error */
            EW_VERSION = (-7)           /* CNC/PMC version missmatch */
            EW_UNEXP = (-6)           /* abnormal error */
            EW_SYSTEM = (-5)           /* system error */
            EW_PARITY = (-4)           /* shared RAM parity error */
            EW_MMCSYS = (-3)           /* emm386 or mmcsys install error */
            EW_RESET = (-2)           /* reset or stop occured error */
            EW_BUSY = (-1)           /* busy error */
            EW_OK = 0           /* no problem */
            EW_FUNC = 1           /* command prepare error */
            EW_NOPMC = 1           /* pmc not exist */
            EW_LENGTH = 2           /* data block length error */
            EW_NUMBER = 3           /* data number error */
            EW_RANGE = 3           /* address range error */
            EW_ATTRIB = 4           /* data attribute error */
            EW_TYPE = 4           /* data type error */
            EW_DATA = 5           /* data error */
            EW_NOOPT = 6           /* no option error */
            EW_PROT = 7           /* write protect error */
            EW_OVRFLOW = 8           /* memory overflow error */
            EW_PARAM = 9           /* cnc parameter not correct error */
            EW_BUFFER = 10           /* buffer error */
            EW_PATH = 11           /* path error */
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     151040  2013-11-27 11:00  示例工程\Test\Test\bin\Debug\Test.exe

     文件     243200  2013-11-27 11:00  示例工程\Test\Test\bin\Debug\Test.pdb

     文件      11600  2014-07-09 15:47  示例工程\Test\Test\bin\Debug\Test.vshost.exe

     文件        490  2012-06-06 02:06  示例工程\Test\Test\bin\Debug\Test.vshost.exe.manifest

     文件     151040  2015-12-16 09:16  示例工程\Test\Test\bin\Release\Test.exe

     文件     247296  2015-12-16 09:16  示例工程\Test\Test\bin\Release\Test.pdb

     文件      22984  2015-12-16 09:16  示例工程\Test\Test\bin\Release\Test.vshost.exe

     文件        490  2015-03-28 05:35  示例工程\Test\Test\bin\Release\Test.vshost.exe.manifest

     文件     560320  2013-11-27 10:54  示例工程\Test\Test\fwlib32.cs

     文件       5899  2014-07-09 15:47  示例工程\Test\Test\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        817  2014-07-09 15:47  示例工程\Test\Test\obj\x86\Debug\Test.csproj.FileListAbsolute.txt

     文件     151040  2013-11-27 11:00  示例工程\Test\Test\obj\x86\Debug\Test.exe

     文件     243200  2013-11-27 11:00  示例工程\Test\Test\obj\x86\Debug\Test.pdb

     文件       6712  2015-12-16 09:09  示例工程\Test\Test\obj\x86\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件       2052  2015-12-16 09:16  示例工程\Test\Test\obj\x86\Release\Test.csproj.FileListAbsolute.txt

     文件      11884  2015-12-16 09:16  示例工程\Test\Test\obj\x86\Release\Test.csprojResolveAssemblyReference.cache

     文件     151040  2015-12-16 09:16  示例工程\Test\Test\obj\x86\Release\Test.exe

     文件     247296  2015-12-16 09:16  示例工程\Test\Test\obj\x86\Release\Test.pdb

     文件        988  2014-06-23 10:53  示例工程\Test\Test\Program.cs

     文件       1420  2013-11-27 10:53  示例工程\Test\Test\Properties\AssemblyInfo.cs

     文件       2467  2013-11-27 10:54  示例工程\Test\Test\Test.csproj

     文件        143  2013-11-27 10:53  示例工程\Test\Test\Test.csproj.user

     文件        858  2013-11-27 10:53  示例工程\Test\Test.sln

    ..A..H.     21504  2014-07-09 15:52  示例工程\Test\Test.suo

    ..A..H.     38912  2015-12-16 09:17  示例工程\Test\Test.v11.suo

    ..AD...         0  2014-08-29 13:52  示例工程\Test\Test\obj\x86\Debug\TempPE

    ..AD...         0  2014-08-29 13:52  示例工程\Test\Test\obj\x86\Release\TempPE

     目录          0  2014-07-21 14:17  示例工程\Test\Test\obj\x86\Debug

     目录          0  2015-12-16 09:16  示例工程\Test\Test\obj\x86\Release

     目录          0  2014-07-21 14:17  示例工程\Test\Test\bin\Debug

............此处省略11个文件信息

评论

共有 条评论