EasyManua.ls Logo

Sartorius PR 5610 - Function 16: Write N Successive Words; MODBUS; J-BUS Error Messages

Sartorius PR 5610
165 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PR 5610 Installation Manual Operation with Terminal
Sartorius 105
4.10.8 Function 16: write n successive words
Command Device
address
Function
number
Address of
1st word
Number
of words
Number of
bytes
Value of
words
CRC 16
1 byte 1 byte 2 bytes 2 bytes 1 byte n bytes 2 bytes
Range 0...127 16 0...2047 1...123 2...246 / \
MSB LSB MSB - - - - - - - - - MSB LSB
1st word last word
With device address 0. The command is handled by all units and no reply is sent.
Reply Device
address
Function
number
Address of
1st word
Number of
words
CRC 16
1 byte 1 byte 2 bytes 2 bytes 2 bytes
If the address of a word is out of the permissible range (0...2047), an error message is sent as a reply.
Example of function 16 for writing limit1_on with value 893:
Command 1 16 0 48 0 2 4 0 0 3 125 CRC CRC
Reply 1 16 0 48 0 2 CRC CRC
The individual bytes are shown.
4.10.9 MODBUS / J-BUS error messages
With a correctly transmitted command, which, however, cannot be handled, because e.g. the address is too high,
an error message is sent as a reply on the command.
The error message has the following format:
Device address Number of
function +128
Error number CRC 16
1 byte 1 byte 1 byte 2 bytes
The 2nd byte contains the received function number and the most significant bit is set additionally.
The signification of the error number is:
1 number of function unknown
2 address not within valid range
3 faulty data format (e.g. more data written than specified in number)
Example for an error message, which is generated by an invalid function number.
Command 1 9 0 0 0 0 CRC CRC
Reply 1 137 1 CRC CRC
The individual bytes are shown

Table of Contents