Hitachi SJ7002 Series Instruction Manual page 309

Sj7002 series
Hide thumbs Also See for SJ7002 Series:
Table of Contents

Advertisement

Explanation of
Read Coil Status [01h]:
Function Codes
This function reads the status (ON/OFF) of selected coils. An example follows below.
• Read intelligent input terminals [1] to [6] of an inverter having a slave address "8."
• This example assumes the intelligent input terminals have terminal states listed below
Intelligent input terminal
Coil number
Terminal status
Query:
Note 1: Broadcasting is disabled.
Note 2: The starting coil number is one
Note 3: When 0 or more than 32 is
• The data set in the response shows terminal states of coils 7 to 14.
• Data "17h = 00010111b" indicates the following assuming coil 7 is the LSB.
Coil number
Coil status
• When a read coil is outside the defined coils, the final coil data to be transmitted contains
• When the Read Coil Status command cannot be executed normally, see the exception
(coils 13 and 14 are OFF).
Item
No.
Field Name
1
Slave address *1
2
Function code
3
Coil start number
(high order)
4
Coil start number (low
order)
5
Number of coils (high
order) *2
6
Number of coils (low
order) *2
7
CRC-16 (high order)
8
CRC-16 (low order)
less than the number of the coil to
be read first.
specified as a number of coils,
error code "03h" is returned.
Item
14
OFF
OFF
"0"as the status of the coil outside the range.
response.
[1]
[2]
[3]
7
8
9
ON
ON
ON
Response:
Example
No.
(hex)
08
1
Slave address
01
2
Function code
00
3
Data size (in bytes)
4
Coil data *4
06
5
CRC-16 (high order)
6
CRC-16 (low order)
00
Note 4: Data is transferred by the specified
06
number of data bytes (data size).
5C
90
Data
13
12
11
OFF
ON
OFF
SJ700
Inverter
2
Data
[4]
[5]
[6]
10
11
OFF
ON
OFF
Example
Field Name
(hex)
08
01
01
17
12
1A
10
9
8
ON
ON
B–25
12
7
ON

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents