
E.4
SEL-787 Relay
Instruction Manual
Date Code 20081022
Modbus RTU Communications
Communications Protocol
To build the response, the SEL-787 calculates the number of bytes required to
contain the number of bits requested. If the number of bits requested is not
evenly divisible by eight, the device adds one more byte to maintain the
balance of bits, padded by zeroes to make an even byte.
includes
the coil number and lists all possible coils (identified as Outputs and Remote
bits) available in the device. Note that the command depends on the device
hardware configuration; the device responds only to installed cards.
The relay responses to errors in the query are shown in
.
02 Read Input Status
Command
Use function code 02h to read the On/Off status of the selected bits (inputs), as
shown in
. You can read the status of as many as 2000 bits per query.
Note that input addresses start at 0 (e.g., Input 1 is located at address zero).
The input status is packed one input per bit of the data field. The LSB of the
first data byte contains the starting input address in the query. The other inputs
follow towards the high order end of this byte, and from low order to high
order in subsequent bytes.
A successful response from the slave will have the following format:
1 byte
Slave Address
1 byte
Function Code (01h)
1 byte
Bytes of data (
n
)
n
bytes
Data
2 bytes
CRC-16
Table E.5
Responses to 01h Read Discrete Output Coil Query Errors
Error
Error Code Returned
Communication
Counter Increments
Invalid bit to read
Illegal Data Address (02h)
Invalid Address
Invalid number of bits to read
Illegal Data Value (03h)
Illegal Register
Format error
Illegal Data Value (03h)
Bad Packet Format
Table E.4
01h Read Discrete Output Coil Status Command
(Sheet 2 of 2)
Bytes
Field
Table E.6
02h Read Input Status Command
Bytes
Field
Requests from the master must have the following format:
1 byte
Slave Address
1 byte
Function Code (02h)
2 bytes
Address of the first bit
2 bytes
Number of bits to read
2 bytes
CRC-16
A successful response from the slave will have the following format:
1 byte
Slave Address
1 byte
Function Code (02h)
1 byte
Bytes of data (
n
)
n
bytes
Data
2 bytes
CRC-16
Содержание SEL-787
Страница 1: ...20081022 SEL 787 Transformer Protection Relay Instruction Manual PM787 01 NB ...
Страница 6: ...This page intentionally left blank ...
Страница 12: ...This page intentionally left blank ...
Страница 18: ...This page intentionally left blank ...
Страница 78: ...This page intentionally left blank ...
Страница 206: ...This page intentionally left blank ...
Страница 280: ...This page intentionally left blank ...
Страница 334: ...This page intentionally left blank ...
Страница 376: ...This page intentionally left blank ...
Страница 388: ...This page intentionally left blank ...
Страница 474: ...This page intentionally left blank ...
Страница 508: ...This page intentionally left blank ...
Страница 522: ...This page intentionally left blank ...