6 - 5 6 - 5
MELSEC-Q
6 PROGRAMMING
(2) Programming example using the intelligent function module device
(U \G )
Set the D/A conversion enabled channel (initial setting)
0
X12
80
X0F
Error
flag
107
END
X0
Module
READY
Error code display and reset processing
SET
Y0F
Error clear
request
Y0F
104
Error
clear
request
X0F
Error
flag
RST
Y0F
Error clear
request
Output the error code to Y20 to Y2B
by BCD code.
G0
MOV
H0
Y9
SET
Operating
condition
setting request
X0
32
Module
READY
Y9
Operating
condition
setting
request
RST
Y9
Operating
condition
setting request
X11
54
X0
Module
READY
CH1 Digital
value
Digital write program
G1
MOV
K500
CH2 Digital
value
G2
MOV
K1000
D13
MOV
G19
Set Y9 (operating condition
setting request) from ON to OFF
to validate the initial setting.
Clear the error code.
X9
Operating
condition
setting completed
33
Y1
CH1 Output
enable/disable
Y2
CH2 Output
enable/disable
Enables analog output for CH1
and CH2.
X10
Set analog output to enable.
Set CH1 and CH2 to D/A conversion
enable.
U0\
U0\
U0\
CH3 Digital
value
U0\
Write the digital values for CH1
and CH2 into Q62DA.