6 - 3 6 - 3
MELSEC-Q
6 PROGRAMMING
6.1.2 Programming example
Set analog output to enable
0
Y1
CH1 Output
enable/disable
X12
40
X0F
Error
flag
66
END
X10
Error code display and reset processing
BCD
D13
K3Y20
Error code
SET
Y0F
Error clear
request
Y0F
63
Error
clear
request
X0F
Error
flag
RST
Y0F
Error clear
request
Clear the error code.
Output the error code to Y20 to Y2B
by BCD code.
Y2
CH2 Output
enable/disable
X11
18
X0
Module
READY
Digital value write program
MOV
K500
D11
CH1 Digital
value
MOV
K1000 D12
CH2 Digital
value
Write the digital values for CH1
and CH2 in D11 and D12 that
have been automatically refreshed.
Enables analog output for CH1
and CH2.