2024-09-30 22:20:02 +08:00
|
|
|
|
using Net462DllTest.Signal;
|
2024-09-30 13:37:04 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2024-09-30 22:20:02 +08:00
|
|
|
|
using static Net462DllTest.Signal.PlcValueAttribute;
|
2024-09-30 13:37:04 +08:00
|
|
|
|
|
2024-09-30 22:20:02 +08:00
|
|
|
|
namespace Net462DllTest.Enums
|
2024-09-30 13:37:04 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// PLC变量
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum PlcVarEnum
|
|
|
|
|
|
{
|
|
|
|
|
|
None,
|
2024-09-30 16:36:55 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 车位号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(short), "V100", VarType.Writable)]
|
|
|
|
|
|
SpaceNum,
|
|
|
|
|
|
|
2024-09-30 13:37:04 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 上位机指令
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(short), "V102", VarType.Writable)]
|
|
|
|
|
|
CmdForPLC,
|
|
|
|
|
|
|
2024-09-30 16:36:55 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// PLC当前存取车位号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(short), "V110", VarType.ReadOnly)]
|
|
|
|
|
|
DoingSpaceNum,
|
|
|
|
|
|
|
2024-09-30 13:37:04 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 下位机状态
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(short), "V112", VarType.ReadOnly)]
|
|
|
|
|
|
PLCState,
|
|
|
|
|
|
|
2024-09-30 16:36:55 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 门1正常待机车位号,存车完成地面车位0
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(short), "V114", VarType.ReadOnly)]
|
|
|
|
|
|
Door1CurSpaceNum,
|
2024-09-30 13:37:04 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 门2正常待机车位号,存车完成地面车位0
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(short), "V124", VarType.ReadOnly)]
|
|
|
|
|
|
Door2CurSpaceNum,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 下位机运行模式
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(short), "V116", VarType.Writable)]
|
|
|
|
|
|
PLCRunMode,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 执行的门号
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(short), "V104", VarType.Writable)]
|
|
|
|
|
|
DoorVar,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 门1是否开到位
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(bool), "V207.0", VarType.ReadOnly)]
|
|
|
|
|
|
IsDoor1OpenDone,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 门1是否关到位
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(bool), "V207.1", VarType.ReadOnly)]
|
|
|
|
|
|
IsDoor1ClosedDone,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 门2是否开到位
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(bool), "V207.3", VarType.ReadOnly)]
|
|
|
|
|
|
IsDoor2OpenDone,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 门2是否关到位
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(bool), "V207.4", VarType.ReadOnly)]
|
|
|
|
|
|
IsDoor2ClosedDone,
|
|
|
|
|
|
|
2024-09-30 16:36:55 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 通道1是否有车
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(bool), "V284.7", VarType.ReadOnly)]
|
|
|
|
|
|
HasCarInTone1,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 通道2是否有车
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(bool), "V286.7", VarType.ReadOnly)]
|
|
|
|
|
|
HasCarInTone2,
|
2024-09-30 13:37:04 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 下位机异常代码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(short), "V2", VarType.ReadOnly)]
|
|
|
|
|
|
ErrorCode,
|
|
|
|
|
|
|
2024-09-30 16:36:55 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 2层以上的空板是否在待机
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(bool), "V200.7", VarType.ReadOnly)]
|
|
|
|
|
|
IsOver2FlowStanded,
|
|
|
|
|
|
|
2024-09-30 13:37:04 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 1号门指示灯
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(bool), "Q17.0", VarType.ReadOnly)]
|
|
|
|
|
|
Gate1Light,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 2号门指示灯
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[PlcValue(typeof(bool), "Q17.3", VarType.ReadOnly)]
|
|
|
|
|
|
Gate2Light,
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|