(2) Program examples
This section provides examples of programs that read the status details and sensing level information.
Parameter of a threshold value can be written in the same way as parameter read.
(a) Example of a program that reads the status details (I/O disconnection)
The following shows an example of a program that reads the status details of the slave module (address 20)
when the start I/O number of the master module is assigned to X/Y00 to X/Y1F.
For details on the parameter storage area, refer to the following.
Page 110, Section (15) (a)
The status details of the slave module (address 20) is stored in 40th (Un\G12567) of 48 words of Parameter
storage area 6 (Un\G12528 to Un\G12575). ( Page 111, Section (15) (b))
Parameter storage location memory
number of the slave module (address 20)
Reading the status details
Interlock the read program.
Specification method using the
parameter storage location start address
Add 39 to the parameter storage location
start address of the slave module (ID 214
address 20) and store the address of status
details to Z 1).
Store the status details to D 2).
Detect the I/O disconnection of the status
Turn on bit b2 of status details.
Detect the status error.
Turn on any of the bits of status details.