Mitsubishi AJ65SBT2B-64AD User Manual page 72

Analog-digital converter module. a melsec
Table of Contents

Advertisement

5
PROGRAMMING
*1
Changing the initial setting
Processing on completion of the initial setting
Reading a digital output value
Processing in case of an error
Resetting Error reset request flag
Figure 5.18 Program example (when using the ACPU/QCPU (A mode) (dedicated instructions)) 3/3
5
- 20
5.6 Program Example When Using the ACPU/QCPU (A mode) (Dedicated Instructions)
* 1 The program enclosed by the dotted line is required only when changing the initial settings.
CH2 Average processing setting
(RWw1): Count average (16 times)
Initial data processing completion flag
(RY18): ON
Initial data setting request flag (RY19)
: ON
CH1 A/D conversion enable/disable
setting (RY00): A/D conversion disable
CH2 A/D conversion enable/disable
setting (RY01): A/D conversion disable
Initial data setting request flag (RY19)
: ON
Initial data processing completion flag
(RY18): OFF
Initial data setting request flag (RY19)
: OFF
Reads CH1 Digital output value (RWr0)
to D500
Reads CH2 Digital output value (RWr1)
to D501
Turns on Y63 when an error occurs
Error reset request flag (RY1A): ON
Error reset request flag (RY1A): OFF

Advertisement

Table of Contents
loading

Table of Contents