Modbus rtu – Watlow Series 988 Family User Manual
Page 24

4.6
Data Communications with the Watlow Series 988 Family
Sending Commands, Chapter 4
NOTE:
Modbus register
addresses are
listed in the
Controller Prompt
Table later in this
chapter and in the
Modbus RTU
Address Table at
the end of this
chapter.
Modbus Remote Terminal Unit (RTU)
Modbus RTU, available on the 988 family of controllers, expands the communica-
tions ability of the controller by enabling a computer to read and write directly to
registers containing the controller’s parameters.
Because of the wide array of choices available for setting up the 988 family of
controllers, only a subset of the prompts contain parameters in a given situation. The
Series 982, 988 and 998 User’s Manuals explain the interrelations between prompts.
If you try to write to an inactive prompt the controller will return an illegal data ad-
dress message (02). (See “Exception Responses,” pg. 4.9.)
If you already have a software application that uses Modbus, you can simply skip to
the Temperature/process Controller Prompt Table or the Modbus RTU Address
Table in this chapter for the address information your program will need. The rest of
this section on the Modbus provides information for writing a software application that
uses Modbus.
Writing a Modbus Application
You need to code messages in eight-bit bytes, with no parity bit. Negative parameter
values must be written in two's complement format. Parameters are stored in two-
byte registers accessed with read and write commands to a relative address.
Messages are sent in packets that are delimited by a pause at least as long as the
time it takes to send 30 bits. To determine this time in seconds, divide 30 by your
baud rate.
Because changing some parameters automatically changes or defaults other param-
eters, use the Complete Parameter Download Sequence table in this chapter to
order write commands.
Using a controller address of 0x00 for a write command broadcasts that command to
all the controllers in the network. This is a powerful feature if all the controllers on a
network use all or most of the same parameters. No response is given to broadcast
messages. Be sure to read each control to ensure it has received the command.
Packet Syntax
Each message packet begins with a one-byte controller address, from 0x01 to 0xF7.
The second byte in the message packet identifies the message command: read
(0x03 or 0x04); write (0x06 or 0x10); or loop back (0x08).
The next n bytes of the message packet contain register addresses and/or data.
The last two bytes in the message packet contain a two-byte Cyclical Redundancy
Checksum (CRC) for error detection.
Packet format:
nn | nn | nnnn…
| nn nn
∆
∆
∆ ∆
∆ ∆
address
command
registers and/or data
CRC
Modbus RTU