6 - 1 6 - 1
MELSEC-Q
6 PROGRAMMING
6
6 PROGRAMMING
Using a sample system configuration shown below, details of the D/A conversion
module program are explained in the following two scenarios: when the utility package
is used and when the utility package is not used.
System configuration used in the program explanation
(1) System configuration
Po
we
r s
u
p
p
ly
m
o
d
u
le
QnCP
U
Q62DA
QX
10
QY
1
0
X/Y0
to
X/YF
X/Y10
to
X/Y1F
X/Y20
to
X/Y2F
(2) Program conditions
If a digital value writing error occurs while a digital value is being written into the
CH1 or CH2 digital value area for Q62DA, read the error code.
(a) Contents of initial setting
• Analog output enabled channel .......................................... CH1 and CH2
(b) Devices used by the user
• Output enable .................................................................... X10
• Digital value write signal .................................................... X11
• Error code reset signal ....................................................... X12
• Error code display (3-digit BCD) ........................................ Y20 to Y2B
• CH1 digital value ................................................................ D11
• CH2 digital value ................................................................ D12
• Error code ......................................................................... D13