Mitsubishi Electronics Q68ADI ユーザーズマニュアル
6 - 4 6 - 4
MELSEC-Q
6 PROGRAMMING
6.2 Programming Example without Using the Utility Package
(1) Programming example using the FROM/TO commands
Set the A/D conversion enabled channel (initial setting)
0
X10
139
Error
reset
signal
reset
signal
X0F
Error
flag
flag
170
END
Read digital output values for
CH1 to 3
CH1 to 3
X0
Module
READY
READY
Error code display and reset processing
BCD
D14
K3Y20
Error code
SET
Y0F
Error clear
request
Error clear
request
Y0F
167
Error
clear
clear
request
X0F
Error
flag
flag
RST
Y0F
Error clear
request
Error clear
request
Output the error code to Y20
to Y2B by BCD code.
to Y2B by BCD code.
T0
H0
K1
K0
H8
CH1 to CH3 are A/D conversion
enabled
enabled
T0
H0
K1
K2
K50
Set the average number of times
for CH2 to 50 times
for CH2 to 50 times
T0
H0
K1
K3
K1000
Set the average time for CH3 to
1000 ms
1000 ms
T0
H0
K1
K9
H604
Specify averaging processing
Y9
SET
Operating
condition
setting request
setting request
Y9
101
Operating
condition
condition
setting
request
request
X9
Operating
condition
condition
setting completed
RST
Y9
Operating
condition
setting request
condition
setting request
X11
104
Read
digital
values
digital
values
X0
Module
READY
READY
CH1
Digital
output
Digital
output
Digital output value read processing
X0E
A/D
conversion
completed
flag
conversion
completed
flag
FROM
H0
K1
K11
D11
CH2
Digital
output
Digital
output
FROM
H0
K1
K12
D12
CH3
Digital
Digital
output
FROM
H0
K1
K13
D13
Error code
FROM
H0
K1
K19
D14
Set Y9 (operating condition
setting request) from ON to OFF
and enable the initial setting
setting request) from ON to OFF
and enable the initial setting
Clear the error code.