141
CHAPTER 10 PROGRAMMING
10
10.2 When Using the Module in a Standard System Configuration
10.2 When Using the Module in a Standard System
Configuration
The following shows program examples for the system configuration and usage conditions of the A/D converter
module.
(1) System configuration
The following shows an example of the system configuration when using the module in a standard system
configuration.
For configuring the same I/O assignment as the system above, when using the L02CPU, set the I/O assignment
of the A/D converter module within X/Y30 to 3F. Also, set the I/O assignment of the LX40C6 within X/Y40 to 4F,
and the same of the LY42NT1P, within X/Y50 to 8F.
(2) Programming condition
This program reads digital output values enabled for A/D conversion at CH1 to CH3 in the A/D converter
module.
CH1 executes sampling processing, CH2 executes averaging processing every 50 times and CH3 executes
A/D conversion every 10 moving averages. If an error occurs in the module, an error code is displayed in BCD
notation.
Power supply module (L61P)
Input module (LX40C6)
Output module (LY42NT1P)
A/D converter module (L60AD4)
END cover (L6EC)
CPU module (L26CPU-BT)
X/Y00
to
X/Y0F
X/Y30
to
X/Y3F
X/Y40
to
X/Y4F
X/Y50
to
X/Y8F
X/Y10
to
X/Y2F