Chapter 6 Communication Mode
6 - 46
Mod
b
u
s M
a
ster
Function code 0x0F (Force Multiple Coils)
Function code 0F is a query to change state of two or more coils of slave. In broadcasting, the state of the same
coils of all slaves is changed.
(1) Sending data area format
Sending data area changes with the number of coils to change. Please set the head word to number of transmission
bytes.
Figure 6.45 Sending data area format (Function code 0x0F)
1) Device No.: Set the slave number by hexadecimal number. (H01 to HFF. H00 is for broadcast.)
2) Function code: Set the function code to H0F.
3) Starting address: Set the starting address of coil to change by hexadecimal number. (H0000 to HFFFF)
4) Number of coils: Set the number of coils to change by hexadecimal number. (H0001 to H07F0)
5) Values of coils: Set the value of coils to change. (ON: 1, OFF: 0)
Ex.) Change the status of all eight coils from 17th in the slave No.39 to ON :
The head address of Sending data area WR100
WR100 = H0008
WR101 = H270F
WR102 = H0010
WR103 = H0008
WR104 = H00FF
« Note »
Be sure to set an even number for number of send data bytes.
For example, when the number of the coils to set is 19 bits (3 bytes), please set the high byte of last data to H00,
and set the number of send data bytes including H00.
H0013 (coil 19)
H 0 0
H000A (10 bytes)
Device No.
0 F
Starting address
0 0 0 0 0
Data ( 19 bits )
Higher byte is set to H00
1 word
Number of send data (bytes)
Device No.
0 F
Starting address
…
Number of coils
0F: Function code
Starting address of coil to change
The setting number of coils to change
Values of coils to change
n+7
n
n+15
b15
b7
b0
…
n+8
b8
Set the head address specified by the
query as LSB.
…
Содержание EH-150 Series
Страница 1: ...HITACHI PROGRAMMABLE CONTROLLER Serial Communication Module EH SIO APPLICATION MANUAL NJI 443F X ...
Страница 2: ......
Страница 10: ...M E M O ...
Страница 30: ...Chapter 4 Installation 4 10 M E M O ...
Страница 156: ...Chapter 7 System setup 7 12 M E M O ...
Страница 164: ...Chapter 8 Daily and Periodic Inspection 8 8 M E M O ...