PR 5220 Instrument Manual J-Bus/ModBus Protocol
Sartorius EN-121
Function 5: Writing a Bit
Command Device
address
Function
number
Address of
the bit
Value of
the bit
Always 0
1 byte 1 byte 2 bytes 1 byte 1 byte
Range 0...127 5 0...127 0 or 255 0
Reply Device
address
Function
number
Address of
the bit
Value of
the bit
Always 0
1 byte 1 byte 2 bytes 1 byte 1 byte
If the address of the bit is out of the permissible range (0...127), an error message is sent as a reply.
Example of function 5 for setting bit 113 (taring) with ModBus-TCP:
Command 47 13 0 0 0 6 0 5 0 113 255 0
Reply 47 13 0 0 0 6 0 5 0 113 255
The individual bytes are shown.
Function 6: Writing a Word
Command Device address Function
number
Word address Value of the
word
1 byte 1 byte 2 bytes 2 bytes
Range 0...127 6 0...63
Reply Device address Function
number
Word address Value of the
word
1 byte 1 byte 2 bytes 2 bytes
If the address is out of the permissible range (0...63), an error message is sent as a reply.