7 - 25
7.6.5 Exercise with the demonstration machine
(1) Sequence program
The sequence program converts values of the digital switches to analog
signals.
Set the start XY to 90 and the digital value for CH1 to D30 for Q62DAN as
explained before.
Project name Q62DAN
Program name MAIN
X2
0
D30K0MOVP
D30K4000MOVP
Y91
X90
END
X3
15
2
D30K2000MOVP
X4
X5
X90: Module READY signal
At power-on or reset of a programmable controller CPU, this signal turns
on if D/A conversion is ready to be executed. D/A conversion is executed
once this signal turned on.
Y91: CH1 Output enable/disable flag
Turning this flag on or off selects on each channel whether to output D/A
converted values or offset values.
ON: D/A converted value, OFF: Offset value
(2) Operation of the demonstration machine
Stop the CPU and click
on the toolbar.
The Online Data Operation dialog box is displayed. Click the
Parameter + Program
button, then click the Execute button to write data
to the CPU. After that, activate the CPU and check the following items.
(a) Turn on X2 to enable D/A outputs of CH1.
(b) Voltage is output according to X3 to X5.
(c) The D/A OUTPUT voltmeter displays the voltage value that the D/A
converter module outputs.