Header

Members

Variables

da1
ubyte da1;

Destination node number, if set to default this is the subnet byte of the ip of the plc (ex. 192.168.0.1 -> 0x01)

da2
ubyte da2;

Destination unit number, the unit number, see the hw config of plc, generally 0x00

dna
ubyte dna;

Destination network address, 0x0 local , 0x01 if there are not network intermediaries

icf
ubyte icf;

Information Control Field, set to 0x80

mainRqsCode
ubyte mainRqsCode;

Main command code (high byte)

sa1
ubyte sa1;

Source node number, like the destination node number, you could set a fixed number into plc config

sa2
ubyte sa2;

Source unit number, like the destination unit number

sid
ubyte sid;

Counter for the resend, generally 0x00

sna
ubyte sna;

Source network, generally 0x01

subRqsCode
ubyte subRqsCode;

Sub request code

Meta