
2.4 Instruction Details
1
2
3-113
Chapter 2 Instructions
Note: The double coils in different STG instruction blocks operate properly. How-
ever, when several STG instructions turn ON simultaneously, priority is given to the
one programmed last.
■ Conditional branching
When input relay 0000 (start SW) turns ON, output relay 0500 turns ON. Then, as
programmed for conditional branching, output relay 0501 turns on for 1 second
when 0001 turns ON, and 0502 turns ON for 2 seconds when 0002 turns ON. After
each operation is completed, the program returns to the conditional branch and
repeats the same steps.
Coding
1100
0001
1001
JMP
1100
DIFU
1000
STG
0002 1002
JMP
0500
T000
1000
JMP
#00010
T000
0501
1001
STG
T001
1000
JMP
#00020
T001
0502
1002
STG
1000
SET
0000
Line No. Instruction Operand
0000 LD 0000
0001 DIFU 1100
0002 CON
0003 AND 1100
0004 SET 1000
0005 STG 1000
0006 OUT 0500
0007 CON
0008 MPS
0009 AND 0001
0010 JMP 1001
0011 MPP
0012 AND 0002
0013 JMP 1002
0014 STG 1001
0015 OUT 0501
0016 CON
0017 TMR 000 #00010
0018 CON
0018 AND T000
0020 JMP 1000
0021 STG 1002
0022 OUT 0502
0023 CON
0024 TMR 001 #00020
0025 CON
0026 AND T001
0027 JMP 1000
STG / JMP
KVNKA Chap 02_4bP.p65 08.3.11, 0:00 PM113
Comentarios a estos manuales