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