EasyManua.ls Logo

Mitsubishi Electric NZ2EX2B-60AD4 - Page 166

Mitsubishi Electric NZ2EX2B-60AD4
254 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
164
(6) Program example
1. Create the following programs with GX Works2.
Program for the main A/D converter module
Program for the extension A/D converter module
Main A/D converter module
Read CH1 Digital operation value.
Read CH2 Digital operation value.
Read CH3 Digital operation value.
Read Input signal error detection flag.
Read Alert output flag.
Processing at the time of occurrence of CH2
upper limit alert
Processing at the time of occurrence of CH2
lower limit alert
Processing at the time of disconnection of CH1
Processing at the time of disconnection of CH3
Turn on Maximum value/minimum value read
flag.
Read the maximum value/minimum value
of CH1 to CH3.
Processing when maximum value/minimum
value read is completed with an error
Processing when maximum value/minimum
value read is completed successfully
Turn on Maximum value/minimum value reset
request.
Turn off Maximum value/minimum value reset
request.
Extension A/D converter module
Read CH2 Digital operation value.
Read CH3 Digital operation value.
Read CH4 Digital operation value.
Read Input signal error detection flag.
Read Alert output flag.
Processing at the time of occurrence of CH2
upper limit alert
Processing at the time of occurrence of CH2
lower limit alert
Processing at the time of disconnection of CH1
Turn on Maximum value/minimum value read
flag.
Read the maximum value/minimum value
of CH1 to CH4.
Processing when maximum value/minimum
value read is completed with an error
Processing when maximum value/minimum
value read is completed successfully
Turn on Maximum value/minimum value reset
request.
Turn off Maximum value/minimum value reset
request.
Read CH1 Digital operation value.

Table of Contents

Related product manuals