Chapter 6 Communication Mode
6 - 67
Function code 0x04 (Read Input Registers)
For EH-SIO, this function code means “Read status of internal output (WM)”. Broadcasting is not supported.
(1) Query
The start address of the internal output (WM) and the number of internal outputs to be read are specified by the
query.
« Note »
A start address should specify I/O number of WM. (For WM3F1, the address is specified as H03F1.)
(2) Response
Response is sent back automatically according to query. Response is returned in an order from the high byte of the
specified address.
« Note »
If requested address or a part of data is not assigned as WM range, exception response will be returned.
(3) Example
Read the status of WM1F2-WM1F4 (3 words) in the slave 18.
Input register head address (upper)
Input register head address (lower)
Input register data 1 (upper)
Input register number (higher rank)
Input register data 1 (lower)
Input registers number (lower)
Input register data 2 (upper)
Input register data 2 (lower)
Input register data 3 (upper)
Input register data 3 (lower)
Data of WM1F2-WM1F4 is stored in an order from the high byte.