Chapter 6 Communication Mode
6 - 70
Mod
b
u
s S
lav
e
Function code 0x0F (Force Multiple Coils)
For EH-SIO, this function code means “Write multiple outputs (Y)”. In case of broadcasting, the same output in
each slave will be written.
(1) Query
Please make the data field for the status of I/O number. Bit meaning 1 is ON and 0 is OFF. Data is handled as 1 byte.
If data less than 1 byte is specified, set 0 to the rest area. In case of broadcasting, please set the slave address as 00.
« Note »
It is necessary to change the bit number to hexadecimal number. (When using I/O mapping, the bit No. in a module
are hexadecimal number.)
For example, when data write from Y720 (u-0, s-7, bit No. –20 inside module), the start address is designated to
H0714.
(2) Response
When the query is processed normally, the response data will be the same as the query. In broadcasting, no response
will be returned.
« Note »
If requested address is not assigned as output, exception response will be returned.
(3) Example
Write following data to Y4A00 – Y4A15 (16 points) in the slave 31.
Query
Response
Field name
Example
(HEX)
Field name
Example
(HEX)
Slave address
1 F
Slave address
1 F
Function code
0 F
Function code
0 F
Coil head address (upper)
4 A
Coil head address (upper)
4 A
Coil head address (lower)
0 0
Coil head address (lower)
0 0
Coil number (upper)
0 0
Coil (upper)
0 0
Coil number (lower)
1 0
Coil number (lower)
1 0
Number of bytes
0 2
Error check
[CRC]
Change data (upper)
2 1
Change data (lower)
4 3
Error check
[CRC]
When the query is executed properly, data that excludes the number of bytes and data area from the query are
returned.
Y u s
Change to a hexadecimal number
Remains as is
Remains as is
Y4A00
OFF
ON
Y4A15
ON
OFF
OFF
OFF
OFF
OFF
ON
ON
OFF
OFF
ON
OFF
OFF
OFF
Summary of Contents for EH-150 Series
Page 2: ......
Page 10: ...M E M O ...
Page 30: ...Chapter 4 Installation 4 10 M E M O ...
Page 156: ...Chapter 7 System setup 7 12 M E M O ...
Page 164: ...Chapter 8 Daily and Periodic Inspection 8 8 M E M O ...