Download Q-series basic Course(for GX Developer)

Transcript
Path name
Project name
Program name
A: SCHOOL
QEX3
MAIN
Ladder Example
A program for switching between manual and automatic operations can be made using
the MC and MCR instructions.
• When selecting manual operation by turning X7 OFF
1) The system goes into low-speed operation mode when X2 is turned ON.
2) The system goes into high-speed mode when X3 is turned ON.
• When selecting automatic operation by turning X7 ON, the system operates in
low-speed mode for 3 s after X0 is turned ON. Then it operates in high-speed mode
for 10 s and stops.
High speed
Low Speed
10 s
3s
0
N0
3
6
9
10
N0
13
Manual
X7
MC
M10 Need no key input
X2 M82
X3 M81
MCR
Automatic
X7
M11
X0
MC
19
M12
Y70
N0
Need no key input
T1
MC
N1
Need no key input
M72
M71
27
T0
M72
34
35
M10
M81
Instruction for manual low-speed
M82
Instruction for manual high-speed
N0
M11
Y70
Y70
N1
N0
MCR
M71
Automatic start
M12
M71
K30
T0
Instruction for auto low-speed
M72
K100
T1
Instruction for auto high-speed
N0
Y71
Low speed operation
Y72
High speed operation
M81
38
M72
M82
4 - 21