Po
Modbus Packet
To be added on v2.8.0
TCP
HTTP
Defines the Modbus unpack of Layrz Protocol, this packet is used to send Modbus data from the client to the server.
Example Usage
<Po>CONTROLLER_ADDRESS;FUNCTION_CODE;DATA_ADDRESS;DATA_LENGTH;SPLIT_PER;DATA;CRC16</Po>
Parameter | Type | Description | Example |
---|---|---|---|
CONTROLLER_ADDRESS | hex | Controller address in hexadecimal format. | 01 |
FUNCTION_CODE | hex | Function code in hexadecimal format. | 03 |
DATA_ADDRESS | hex | Data address in hexadecimal format. | 0101 |
DATA_LENGTH | hex | Controller address in hexadecimal format. | 01 |
SPLIT_PER | int | Defines how many times should be splitted the data, normally this value is 1 but you can define it N. | 1 |
DATA | hex | Data to be sent in hexadecimal format. | 01020304 |
CRC16 | integer | Cyclic Redundancy Check for error checking. | 1234 |