TPU2000/2000R Modbus/Modbus Plus Automation Guide
115
•
The command response is generated to the Host from the TPU2000/2000R after the action is completed.
The defined control blocks 1 and 2 are write capable and are well suited for access control via the Modbus
command 16 (10 HEX).
Function 23 Read/Write Register (Read/Write Concurrently)
Another format command which allows for a simultaneous read/write is command 23 (17HEX). Figure 5-38
illustrates the Read/Write 4X Register command format. The 23 command is used when the user wishes to write
a register for control buffer access and read a group of registers which was accessed via the read.
Control Blocks 1 and 2 allows for access of protective device function state. If a user wished to read the status of
each function within the relay, a Function Read/Write Register Command would be the most desirable command
to be issued. Read/Write register data commands are also useful in accessing the Operation, Differential Fault,
Through Fault and Harmonic Restraint Fault record blocks.
Review of the Modbus 23 command allows for write and read of data if the total amount of read and write
registers do not exceed over 125 words. An advantage of using a combined read/write command is that of
speed. If conventional commands were to be used, a 16 Write 4X Register Command would be issued and
thereafter, within 10 seconds, a 03 Modbus (Read 4X Register Command) would then be issued to extract the
data from the relay. Using Modbus command 23 allows for decreasing of the overhead associated with multiple
register reads and writes.
Function 23 Read/Write 4X Registers
Modbus Host
EC
Modbus Slave Addr =1
Slave
Addr.
Funct.
Code
17
Read
Addr
HI
Read
Addr
LO
#Regs
Read
HI
#Regs
Read
LO
Byte 1 …2……..3…….4…….5……6……..7…. ..8………9…..10……11……12………..X
Data
HI
Data
LO
Error
Check
Command
Allows 125 Regs.
Max.
Write
Addr
HI
Write
Addr
LO
#Regs
Writ.
HI
#Regs
Writ.
LO
Byte
Count
*
Slave
Addr.
Funct.
Code
17
Byte
Count
*
Data
Byte
Hi
Data
Byte
Lo
Data
Byte
Lo
Error
Check
EOM
SOM
MSB
LSB
151413121110 9 8
7 6 5 4 3 2 1 0
MSB
LSB
Register Hi Byte
S
O
M
E
O
M
SOM = Start of Message
EOM = End of Message
Figure 5-38. Function 23 Read/Write Command Format
Fault Records
Fault records are stored in the TPU2000/2000R according to the following format. Figure 5-39 illustrates the
method of accessing the Fault Record Data via the TPU2000/2000R. The TPU2000/2000R has an internal
circular buffer, which stores a maximum of 32 faults. These faults are stored internally to the TPU2000/2000R’s
fault stack as indicated in the figure. Each fault is defined as a block of registers. The first defined register in the
table is the fault record control register. Fault records are viewed by writing a data word to the first register in the
data stack as defined for each Fault Record stack and reading the block of consecutive registers for that stack.
Table 5-32 lists the type of Fault Record available in the TPU2000R, the Modbus Control Register Address and
the Data Stack Address to retrieve the fault information.
Summary of Contents for TPU2000
Page 10: ......