14-11
Chapter 14
RS485 Communication
14.4 Description of Each Function code
14.4.1
Reading out the state of coil [01h]
• Read out the state of coil (ON/OFF).
(Example)
To read out the input terminal functions from 1 to 6 of the
inverter with slave address 8, the state of input terminals
are as shown in the right table.
Query
Field Name
Example (HEX)
1
Slave address *1)
08
2
Function code
01
3
Coil starting No. (high) *2)
00
4
Coil starting No. (low) *2)
06
5
Number of coils (high) *3)
00
6
Number of coils (low) *3)
06
7
CRC-16 (high)
5C
8
CRC-16 (low)
90
*1) A broadcasting cannot be executed.
*2) Note that the value of starting number is one less than
the actual number.
Specify the value of “(Coil No.) -1”.
*3) Where the number of readout coils is specified to value
0 or value exceeding 32, error code “03h” is returned.
*4) Data as much as the number of data bytes is
transferred.
• Data received as a response indicates the state of coils 7
to
14. The data “17h = 00010111b” received here is read
as shown below, letting coil 7 be the LSB.
In the last coil data, if the readout coil data extends to the
outside the range of defined coil, the coil data beyond the
range is transmitted as “0”.
• Coils 13 and 14 are OFF.
Response
Field Name
Example (HEX)
1
Slave address
08
2
Function code
01
3
Data bytes
01
4
Coil data *4)
17
5
CRC-16 (high)
12
6
CRC-16 (low)
1A
When the coil state readout command cannot be executed
normally, see “3.9 Exceptional Responses”.
Coil
14
13
12
11
10
9
8
7
Coil state
OFF
OFF
OFF
ON
OFF
ON
ON
ON
17h
0
0
0
1
0
1
1
1
Input terminal No.
1
2
3
4
5
6
Coil No.
7
8
9
10
11
12
Terminal state
ON
ON
ON OFF ON OFF
!
A
Summary of Contents for SJ Series
Page 39: ...5 4 Chapter 5 Included Items Memo ...
Page 55: ...6 16 Chapter 6 Installation Memo ...
Page 91: ...7 36 Chapter 7 Wire Connection and Optional Devices Memo ...
Page 135: ...9 40 Chapter 9 Operating Instructions Memo ...
Page 145: ...10 10 Chapter 10 Test Run Memo ...
Page 159: ...12 2 6 Chapter 12 Inverter Functions Memo ...
Page 169: ...12 3 10 Chapter 12 Inverter Functions Memo ...
Page 195: ...12 5 8 Chapter 12 Inverter Functions Memo ...
Page 217: ...12 8 12 Chapter 12 Inverter Function Memo ...
Page 287: ...12 10 32 Chapter 12 Inverter Functions Memo ...
Page 303: ...12 11 16 Chapter 12 Inverter Functions Memo ...
Page 349: ...12 15 8 Chapter 12 Inverter Function Memo ...
Page 395: ...12 17 34 Chapter 12 Inverter Functions Memo ...
Page 397: ...12 18 2 Chapter 12 Inverter Functions Memo ...
Page 415: ...12 19 18 Chapter 12 Inverter Function Memo ...
Page 581: ...15 10 Chapter 15 Optional Cassettes Memo ...
Page 591: ...16 10 Chapter 16 ProDriveNext EzSQ Memo ...
Page 642: ...18 49 Chapter 18 Tips FAQ Troubleshooting Memo ...
Page 650: ...19 8 Chapter 19 Maintenance and Inspection Memo ...
Page 781: ...Appendix 1 70 Appendix 1 List of Parameters Memo ...