Skip to content
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>
ParameterTypeDescriptionExample
CONTROLLER_ADDRESShexController address in hexadecimal format.01
FUNCTION_CODEhexFunction code in hexadecimal format.03
DATA_ADDRESShexData address in hexadecimal format.0101
DATA_LENGTHhexController address in hexadecimal format.01
SPLIT_PERintDefines how many times should be splitted the data, normally this value is 1 but you can define it N.1
DATAhexData to be sent in hexadecimal format.01020304
CRC16integerCyclic Redundancy Check for error checking.1234