Mitsubishi Electric A1S66ADA User Manual page 49

Table of Contents

Advertisement

APPENDIX
App - 5
Program example
In the following program example, an error of 100 or more in digital value is judged as
abnormal.
As the value used for judgment, set "(input variation per scan) + (digital value for error
40)" or more.
(1) System configuration
Install the A1S66ADA on "Slot 0" of the main base.
(2) Devices used by the user
1) Digital output value read command signal.............................................M0
2) Digital output value read switching signal..............................................M1
3) Digital output value comparison data read interlock signal...................M2
4) Digital output value comparison source data storage data register......D0
5) Digital output value comparison data storage data register..................D1
6) D0-D1 difference storage data register..................................................D2
7) Normal digital output value storage data register..................................D10
• Checking the hardware version
A
1S66ADA
D/A A/D
V+
C
COM
H
1
I +
Module front
RUN
OFFSET
GAIN
Hardware version
MELSEC-A
Digital output value (comparison source
data) of Channel 3 is read to D0.
Digital output value (comparison data)
is read at next scan, and mode shifts to
comparison control.
Digital output value (comparison data)
of Channel 3 is read to D1.
Difference between comparison source
data and comparison data is stored into
D2.
If comparison result is normal, read
data are stored into D10 and D0.
If comparison result is abnormal, mode
shifts to comparison source data read
control.
App - 5

Advertisement

Table of Contents
loading

Table of Contents