| File was renamed from Plugin.CurrentSensorControl/Entity/PLCTagData.cs |
| | |
| | | using HMI.Core; |
| | | |
| | | namespace Plugin.CurrentSensorControl.Entity |
| | | namespace PLCHelper.Entity |
| | | { |
| | | public enum PLCTagType { |
| | | public enum PLCTagType |
| | | { |
| | | BOOL, |
| | | SHORT, |
| | | USHORT, |
| | | INT, |
| | | FLOAT |
| | | } |
| | | |
| | | public enum ConnectionType |
| | | { |
| | | MODBUS, |
| | | PLC_S7, |
| | | NXI_5010 |
| | | } |
| | | |
| | | public class PLCTagData |
| | | { |
| | | [ExcelColumn("名称")] |
| | | public string Name { get; set; } |
| | | |
| | | [ExcelColumn("连接类型")] |
| | | public ConnectionType ConnectionType { get; set; } = ConnectionType.PLC_S7; |
| | | |
| | | [ExcelColumn("地址")] |
| | | public string Address { get; set; } |
| | | [ExcelColumn("类型")] |