58 lines
1.0 KiB
C#
58 lines
1.0 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace DH.Commons.Enums
|
|||
|
{
|
|||
|
public enum EnumPLCType
|
|||
|
{
|
|||
|
信捷XC_串口,
|
|||
|
信捷XC_网口,
|
|||
|
信捷XD_串口,
|
|||
|
信捷XD_网口
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
public enum EnumPLCInputIO
|
|||
|
{
|
|||
|
启动=0,
|
|||
|
复位=1,
|
|||
|
停止=2,
|
|||
|
急停=3
|
|||
|
}
|
|||
|
|
|||
|
public enum EnumPLCOutputIO
|
|||
|
{
|
|||
|
转盘方向=0,
|
|||
|
转盘速度=1,
|
|||
|
转盘使能=2,
|
|||
|
转盘启动=3,
|
|||
|
转盘清料=4,
|
|||
|
指示灯绿=5,
|
|||
|
指示灯黄=6,
|
|||
|
指示灯红=7,
|
|||
|
蜂鸣器=8,
|
|||
|
振动盘=9,
|
|||
|
皮带=10,
|
|||
|
工位1=11,
|
|||
|
工位2=12,
|
|||
|
工位3=13,
|
|||
|
工位4=14,
|
|||
|
工位5=15,
|
|||
|
OK料盒=16,
|
|||
|
NG料盒=17,
|
|||
|
OK吹气时间=18,
|
|||
|
NG吹气时间=19,
|
|||
|
产品计数=20,
|
|||
|
计数清零=21,
|
|||
|
工件最小值=22,
|
|||
|
工具最大值=23,
|
|||
|
启用心跳=24,
|
|||
|
心跳=25
|
|||
|
|
|||
|
}
|
|||
|
}
|