J-Bus/ModBus Protocol
PR 5220 Instrument Manual
EN-122 Sartorius
Function 8: Diagnosis
Command Device address Function
number
Sub-function Any value
1 byte 1 byte 2 bytes 2 bytes
Range 1...127 8 0
This function is intended for testing the communication.
Only sub-function 0 is supported.
The received command is sent as a reply.
Reply Device address Function
number
Sub-function Value of the
command
1 byte 1 byte 2 bytes 2 bytes
Function 15: Writing n Successive Bits
Command Device
address
Function
number
Address of
the 1st bit
Number of
bits
Number of
bytes
Value of bits
1 byte 1 byte 2 bytes 2 bytes 1 byte n bytes
Range 0...127 15 0...127 8, 16, 24 1, 2, 3...
1
byte 2
byte 3
byte - - - - - - - - - - last byte
8
... 1
bit last bit
The bit address must always be the 1st bit of a byte. The number of bits to be read must not be smaller than 8
and must be a multiple of 8. The address plus the number of bits must not exceed 128.
Reply Device address Function
number
Address of the
1st bit
Number of bits
1 byte 1 byte 2 bytes 2 bytes
Example of function 15 with ModBus-TCP:
Command 47 14 0 0 0 8 0 15 0 64 0 8 1 3
Reply 47 14 0 0 0 6 0 15 0 64 0 8
The individual bytes are shown.