(b) Example of a program that reads the sensing level information
The sensing level is a device parameter for the ASLINKAMP or ASLINKSENSOR only.
The slave module of address 20 is the system configuration which replaces the ASLINKER M12 connector
type (mixed type) with the ASLINKAMP or ASLINKSENSOR.
This section describes an example of a program that replaces with photoelectric transmission type of the
ASLINKSENSOR. Photoelectric transmission type operates based on the combination of the two types;
"Transmission floodlight type" and "Transmission light receiving type".
When the slave module of address 20 is replaced with the ASLINKSENSOR, it replaces with two slave
modules of "Transmission floodlight type" and "Transmission light receiving type" (Both of them are address
20.). Therefore, the system is configured with seven slave modules.
The following shows an example of a program that reads the sensing level 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, Appendix 2 (15) (a)
The sensing level of the slave module (address 20) is stored in 41st (Un\G12616) of 48 words of Parameter
storage area 7 (Un\G12576 to Un\G12623). ( Page 111, Appendix 2 (15) (b))
Parameter storage location memory
number of the slave module (address 20)
Interlock the read program.
Add 40 to the parameter storage location
start address of the slave module (ID 214
address 20) and store the address of the
sensing level to Z 1).
Store the sensing level to D 2).
Reading the sensing level