EasyManua.ls Logo

Omron RX - Page 267

Omron RX
414 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4-162
4-4 Communication Function
4
Functions
Explanation of Each Function Code
<Reading Coil Status [01h]>
Reads out the coil status (ON/OFF).
(Example)
Read multi-function input terminals 1 to 6 on the Inverter with slave address 8.
Refer to the following table for the multi-function input terminal status.
The data received as the response shows the status of coils 7 to 14. The data received here, "17h
= 00010111b", should be read with coil 7 as LSB, as follows:
If the read coil exceeds the defined coil range in the final coil data, such coil data is regarded as "0"
and sent.
If the coil status reading command has not been performed normally, refer to the "Exception
Response" section.
Multi-function
input terminals
1 2 3 4 5 6
Coils 13 and 14 are OFF.
Coil No. 7 8 9 10 11 12
Terminal status ON ON ON OFF ON OFF
Query Response
No. Field name
Example
(HEX)
No. Field name
Example
(HEX)
1 Slave address
*1
08 1 Slave address 08
2 Function code 01 2 Function code 01
3 Coil start number (MSB)
*2
00 3 Number of data bytes 01
4 Coil start number (LSB)
*2
06 4 Coil data
*4
17
5 Number of coils (MSB)
*3
00 5 CRC-16 (MSB) 12
6 Number of coils (LSB)
*3
06 6 CRC-16 (LSB) 1A
7 CRC-16 (MSB) 5C
*4. Transfers data by the number of data bytes.
8 CRC-16 (LSB) 90
*1. Broadcasting cannot be performed.
*2. Note that the start number is reduced by 1.
*3. When specifying the value of 0 or over 32 for the number of
reading coils, the error code "3h" is replied.
Coil No. 14 13 12 11 10 9 8 7
Coil status OFF OFF OFF ON OFF ON ON ON

Table of Contents

Related product manuals