Programming Example Without Using The Utility Package - Mitsubishi Q62DA User Manual

Logic, melsec-1 series
Hide thumbs Also See for Q62DA:
Table of Contents

Advertisement

6 PROGRAMMING

6.2 Programming Example without Using the Utility Package

Set the D/A conversion enabled channel (initial setting).
X0
0
Module
READY
X0
Y9
X9
33
Module
Operating
Operating
READY
condition
condition
setting
setting completed
request
Set analog output to enable
X10
37
Digital value write program
X11
X0
55
Module
READY
Error code display and reset processing
X12
X0F
82
Error
flag
Y0F
X0F
110
Error
Error
clear
flag
request
113
6 - 4
(1) Programming example using the FROM/TO commands
T0
H0
K0
H0
SET
Operating
condition
setting request
RST
Operating
condition
setting request
CH1 Output
enable/disable
CH2 Output
enable/disable
MOV
K500
MOV
K1000
T0
H0
K1
D11
CH1
Digital
value
FROMP H0
K19
D13
Error code
BCD
D13
Error code
SET
RST
MELSEC-Q
K1
Set CH1 and CH2 to D/A conversion
enable.
Y9
Set Y9 (operating condition
setting request) from ON to OFF
to validate the initial setting.
Set analog output to enable.
Y9
Y1
Enables analog output for CH1
and CH2.
Y2
D11
CH1
Digital
value
Write the digital values for CH1
D12
and CH2 into Q62DA.
CH2
Digital
value
K2
K1
Output the error code to Y20 to
Y2B by BCD code.
K3Y20
Y0F
Error clear
request
Clear the error code.
Y0F
Error clear
request
END
6 - 4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q68daiQ64daQ68davGx configurator-daSw0d5c-qdau-e

Table of Contents