E.4
SEL-700G Relay
Instruction Manual
Date Code 20170814
Modbus RTU Communications
Communications Protocol
To build the response, the SEL-700G calculates the number of bytes necessary
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. Table E.14 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 Table E.5.
02 Read Input Status
Command
Use function code 02h to read the On/Off status of the selected bits (inputs), as
shown in Table E.6. You can read the status of as many as 2000 bits per query.
Note that input addresses start at 0 (for example, 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
Communications
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-700G Series
Страница 14: ...This page intentionally left blank ...
Страница 22: ...This page intentionally left blank ...
Страница 32: ...This page intentionally left blank ...
Страница 52: ...This page intentionally left blank ...
Страница 106: ...This page intentionally left blank ...
Страница 510: ...This page intentionally left blank ...
Страница 560: ...This page intentionally left blank ...
Страница 578: ...This page intentionally left blank ...
Страница 588: ...This page intentionally left blank ...
Страница 604: ...This page intentionally left blank ...
Страница 634: ...This page intentionally left blank ...
Страница 738: ...This page intentionally left blank ...
Страница 802: ...This page intentionally left blank ...
Страница 816: ...This page intentionally left blank ...