User`s manual

6 - 4 6 - 4
MELSEC-Q
6 PROGRAMMING
6.1.2 Programming example without using the utility package
(1) Programming example using the FROM/TO commands
Set the D/A conversion enabled channel (initial setting).
0
X12
82
X0F
Error
flag
113
END
Write the digital values for CH1
and CH2 into Q62DA.
X0
Module
READY
Error code display and reset processing
BCD D13 K3Y20
Error code
SET Y0F
Error clear
request
Y0F
110
Error
clear
request
X0F
Error
flag
RST Y0F
Error clear
request
Output the error code to Y20 to
Y2B by BCD code.
T0 H0 K1K0 H0
Y9SET
Operating
condition
setting request
X0
33
Module
READY
Y9
Operating
condition
setting
request
RST Y9
Operating
condition
setting request
X11
55
X0
Module
READY
CH1
Digital
value
Digital value write program
D11MOV K500
CH2
Digital
value
D12MOV K1000
CH1
Digital
value
T0 H0 K2K1 D11
Error code
FROMP H0 K1K19 D13
Set Y9 (operating condition
setting request) from ON to OFF
to validate the initial setting.
Set analog output to enable.
Clear the error code.
X9
Operating
condition
setting completed
37
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.