| | |
| | | package com.ld.igds.protocol.modbus.data; |
| | | |
| | | import com.ld.igds.models.DeviceModbus; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | @Data |
| | | public class ModbusTcp { |
| | | |
| | | private String deviceId; |
| | | |
| | | private String companyId; |
| | | |
| | | //业务相关编码 |
| | | private String bizCode; |
| | | |
| | | private String serId; |
| | | |
| | |
| | | |
| | | private int port; |
| | | |
| | | private int addrOpen; |
| | | private DeviceModbus deviceModbus; |
| | | |
| | | private int addrClose; |
| | | private int addrExe; |
| | | |
| | | private int addrStop; |
| | | public ModbusTcp() { |
| | | super(); |
| | | } |
| | | |
| | | private int addrOpenEnd; |
| | | public ModbusTcp(DeviceModbus deviceModbus) { |
| | | this.deviceModbus = deviceModbus; |
| | | } |
| | | |
| | | private int addrCloseEnd; |
| | | |
| | | private int addrOpenError; |
| | | |
| | | private int addrCloseError; |
| | | |
| | | public ModbusTcp(String companyId, String bizCode, String serId, String ip, int port, DeviceModbus deviceModbus) { |
| | | this.companyId = companyId; |
| | | this.bizCode = bizCode; |
| | | this.serId = serId; |
| | | this.ip = ip; |
| | | this.port = port; |
| | | this.deviceModbus = deviceModbus; |
| | | } |
| | | } |