| | |
| | | /** |
| | | * 起始地址 |
| | | */ |
| | | private int addressIndex=0; |
| | | private int addressStart=0; |
| | | /** |
| | | * 长度 |
| | | */ |
| | |
| | | private String type="int"; |
| | | |
| | | /** |
| | | * 实时读取的值 |
| | | * 实时读取的byte值 |
| | | */ |
| | | private byte[] readByte=null; |
| | | /** |
| | | * 实时读取的byte值转换成 对应类型 |
| | | */ |
| | | private Object readValue=null; |
| | | |
| | |
| | | PlcParameter(){ |
| | | |
| | | } |
| | | PlcParameter(String codeId, int addressIndex, int addressLength, String type){ |
| | | PlcParameter(String codeId, int addressStart, int addressLength, String type){ |
| | | this.CodeId=codeId; |
| | | this.addressIndex=addressIndex; |
| | | this.addressStart=addressStart; |
| | | this.addressLength=addressLength; |
| | | this.type=type; |
| | | } |
| | |
| | | CodeId = codeId; |
| | | } |
| | | |
| | | public int getAddressIndex() { |
| | | return addressIndex; |
| | | public int getAddressStart() { |
| | | return addressStart; |
| | | } |
| | | |
| | | public void setAddressIndex(int addressIndex) { |
| | | this.addressIndex = addressIndex; |
| | | public void setAddressStart(int addressIndex) { |
| | | this.addressStart = addressStart; |
| | | } |
| | | |
| | | public int getAddressLength() { |
| | |
| | | this.readValue = readValue; |
| | | } |
| | | |
| | | public byte[] getReadByte() { |
| | | return this.readByte; |
| | | } |
| | | |
| | | public void setReadByte(byte[] readByte) { |
| | | this.readByte = readByte; |
| | | } |
| | | |
| | | public Object getWriteValue() { |
| | | return writeValue; |
| | | } |