| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Communicator; |
| | | |
| | | namespace WIDESEAWCS_QuartzJob.DTO |
| | | { |
| | | /// <summary> |
| | | /// 设备协议信息DTO |
| | | /// </summary> |
| | | public class DeviceProDTO |
| | | { |
| | | /// <summary> |
| | | /// 协议主键 |
| | | /// </summary> |
| | | public int DeviceProId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 设备PLC类型 |
| | | /// </summary> |
| | | public string DevicePlcType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 设备信息主键 |
| | |
| | | { |
| | | get |
| | | { |
| | | return DeviceProDataBlock + "." + DeviceProOffset; |
| | | if (DevicePlcType == nameof(SiemensS7)) |
| | | return DeviceProDataBlock + "." + DeviceProOffset; |
| | | return DeviceProDataBlock + ""; |
| | | } |
| | | } |
| | | |