Chapter 5 Control of EH-SIO
5 - 10
5.2.2 Detail of input register
Configuration of status register
The status register consists of 16 bits. A meaning is different for each bit.
Figure 5.9 Configuration of status register
Table 5.2 Contents of status register
It is set to "1" while having transmitted the data of the port 1 to CPU.
It is set to "1" when ready for sending the data of the port 1 to CPU.
It is set to "1" if initial setting of the port 1 is completed.
It is set to "1" when more than 1 byte of data is received at the port 1.
It is set to "1" when a serious failure error occurs in EH-SIO.
It is set to "1" when the error of a warning level occurs in the port 1.
It is set to "1" when an error occurs to the transmission data in the port 1.
The state of CD signal of a port 1. It is set to "1" at the time of High.
The state of CS signal of a port 1. It is set to "1" at the time of High.
The state of DR signal of a port 1. It is set to "1" at the time of High.
port1 Trns Instruction
Invalid
It is set to "1" when a port 1 is in the state of the TRNS command non-effect
(setup the dedicated procedure mode*
1
).
It is set to "1" when a port 1 has an error.
It is set to "1" when the send buffer for port 1 is empty.
It is set to "1" when data is in the receive buffer for the port 1.
It is set to "1" while having transmitted the data of the port 2 to CPU.
It is set to "1" when ready for sending the data of the port 2 to CPU.
It is set to "1" if initial setting of a port 2 is completed.
It is set to "1" when more than 1 byte of data is received at the port 2.
It is set to "1" when a serious failure error occurs in EH-SIO.
It is set to "1" when the error of a warning level occurs in the port 2.
It is set to "1" when an error occurs to the transmission data in the port 2.
The state of CD signal of a port 2. It is set to "1" at the time of High.
The state of CS signal of a port 2. It is set to "1" at the time of High.
The state of DR signal of a port 2. It is set to "1" at the time of High.
The communication I/F of Port2. It is set to "1" at the time of RS-422/485.
It is set to "0" at the time of RS-232C.
port2 Trns Instruction
Invalid
It is set to "1" when a port 2 is in the state of the TRNS command non-effect
(setup the dedicated procedure mode *
1
).
It is set to "1" when a port 2 has an error.
It is set to "1" when the send buffer for port 2 is empty.
It is set to "1" when data is in the receive buffer for port 2.
*1 Modbus slave mode, Hi-Protocol mode, Simple data link mode
*2 When RS-422 and 485 are used for communication I/F of a port 2, undefined. (always "1")
*3 This flag is added from software version 3.0.
Please refer to "7.2 Error indication" about the details of error flags (XMDE, XCDE, XDTE, and PTE).