
TPU2000/2000R Modbus/Modbus Plus/ Modbus TCP/IP Automation Guide
258
The valid commands for the TPU2000 relay are listed below. The words transmit and receive in the command are with
respect to the relay. The commands are spelt out in a 10 byte RS-232 protocol or a 3 byte INCOM protocol.
It will be easy to understand the commands in a 33 bit INCOM context and then translate the protocol to a 10 byte RS-232
protocol. The protocol messages are of two types - command and data.
S S C/D Inst
Cmd
Address
Subcmd
BCH
S
1
2
3
4 to 7 8 to 11
12 to 15
16 to 27
28 to 32
33
Bit
Command Message (33 bit INCOM)
Figure 3 - Command Message (INCOM)
Figure 4 - Data Message (INCOM)
These INCOM message types can be represented in a 10 byte RS-232 protocol as follows:
STX C/D
1
2
3
Byte
Command Message (10 byte RS-232)
Inst Cmd SCmd Addr Lo Addr Mid Addr Hi CS Lo CS Hi
4
5
6
7
8
9
10
Figure 5 - Command Message (10 byte RS 232)
The address bytes, Addr Lo, Addr Mid, and Addr Hi, are a 3 digit hex address. The checksum is 256 minus the sum of the
ASCII characters in bytes 1 to 8. CS Lo is the low byte and CS Hi is the high byte of the checksum.
Example (3 4 1 command with a unit address of 001)
STX
=
hex 02 = use 2 -->Start of transmission
C/D
=
hex 31 = ascii 1 -->Command type of message
Inst
=
hex 33 = ascii 3 -->Instruction byte
Cmd
=
hex 34 = ascii 4 -->Command byte
SCmd
=
hex 31 = ascii 1 -->Subcommand byte
Addr Lo
=
hex 31 = ascii 1 -->Unit address low byte
Addr Mid
=
hex 30 = ascii 0 -->Unit address mid byte
Addr Hi
=
hex 30 = ascii 0 -->Unit address high byte
CS Lo
=
hex 34 = ascii 4 -->Checksum low byte
CS Hi
=
hex 46 = ascii F -->Checksum high byte
Checksum = 256 - (STX + C/D + Inst + Cmd + SCmd + Addr Lo + Addr Mid + Addr Hi)
256 - (2 + 1 + 3 + 4 + 1 + 1 + 0 + 0) = F4
Figure 6 - Data Message (10 byte RS 232)
S
S
C/D
BCH
S
1
2
3
28 to 32
33
Bit
Data Message (33 bit INCOM)
Data 1
Data 2
Data 3
4 to 11
12 to 19
20 to 27
STX C/D
1
2
3
Byte
Data Message (10 byte RS-232)
CS Lo CS Hi
4
5
6
7
8
9
10
D1 Lo D1 Hi D2 Lo D2 Hi D3 Lo D3 Hi
Summary of Contents for TPU2000
Page 10: ......