Mitsubishi Electric A1S66ADA User Manual page 42

Table of Contents

Advertisement

5 PROGRAMMING
X0040
Offset
setting
command
X0041
Gain
setting
command
X0042
Digital
setting
command
X0043
Digital
read
command
5 - 4
Offset/gain setting
Digital value setting/read
POINT
For modules of hardware version "C" or earlier, excessively large (or small) data
may be temporarily read out when a module reads a digital output value from the
PLC CPU.
To prevent this, refer to Appendix 3 and incorporate a sequence program for
ignoring illegal data into the original program.
For modules of hardware version "D" or later, such excessively large (or small) data
may not be read out.
P K
MOV
0
D0
D/A
conversion
offset
setting
P
K3
MOV
D0
Y0000
D/A
CH. 1
conversion
digital
offset
value
setting
setting
SET
Y000F
CH. 1
D/A
output
enable
P K
MOV
4000
D1
D/A
conversion
gain
setting
P
K3
MOV
D1
Y0000
D/A
CH. 1
conversion
digital
gain
value
setting
setting
K4
BIN
X0050
D20
Digital
Digital
value
setting
setting
storage
K3
MOV
D20
Y0000
Digital
CH. 1
setting
digital
storage
value
setting
P K3
MOV
X0000
D10
CH. 3
CH. 3
digital
analog
output
input
value
P
K3
MOV
X0010
D11
CH. 4
CH. 4
digital
analog
output
input
value
P
K3
MOV
X0020
D12
CH. 5
CH. 5
digital
analog
output
input
value
P
K3
MOV
X0030
D13
CH. 6
CH. 6
digital
analog
output
input
value
MELSEC-A
D/A conversion offset value
0 is input to Y00 to Y0B.
CH. 1 D/A conversion output
enable flag is turned ON.
D/A conversion gain value
4000 is input to Y00 to Y0B.
Input (X50 to X5F) from BCD
digital switch is converted to
bynary and then stored in D0.
D0 value is input to Y00 to Y0B.
CH. 3 digital output value is
read to D10.
CH. 4 digital output value is
read to D11.
CH. 5 digital output value is
read to D12.
CH. 6 digital output value is
read to D13.
5 - 4

Advertisement

Table of Contents
loading

Table of Contents