Hitachi SJ7002 Series Instruction Manual page 313

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

Advertisement

Write in Coils [0Fh]:
This function writes data in consecutive coils. An example follows:
• Change the state of intelligent input terminal [1] to [6] of an inverter having a slave address
"5."
• This example assumes the intelligent input terminals have terminal states listed below.
Item
Intelligent input terminal
Coil number
Terminal status
Query:
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
Byte number *3
8
Change data (high
order) *3
9
Change data (low
order)*3
10
CRC-16 (high order)
11
CRC-16 (low order)
Note 1: Broadcasting is disabled.
Note 2: The starting coil number is one
less than the number of the coil to
be read first.
Note 3: The change data is a set of high-
order data and low-order data. So
when the size (in bytes) of data to
be changed is an odd number, add
"1" to the data size (in bytes) to
make it an even number
When the Write in Coils command cannot be executed normally, see the exception response.
Data
[1]
[2]
[3]
7
8
9
ON
ON
ON
Response:
Example
No.
(hex)
05
1
Slave address
0F
2
Function code
00
3
Coil start number
(high order)
06
4
Coil start number (low
order)
00
5
Number of coils (high
order) *2
06
6
Number of coils (low
order) *2
02
7
CRC-16 (high order)
17
8
CRC-16 (low order)
Note 4: Data is transferred by the specified
00
number of data bytes (data size).
DB
3E
B–29
SJ700
Inverter
2
[4]
[5]
[6]
10
11
12
OFF
ON
OFF
Example
Field Name
(hex)
05
0F
00
06
00
06
34
4C

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents