E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-50
Program Example 1:
After loop A operates 3 times, the program after the
last NEXT instruction will be scanned. For every
complete cycle of loop A, loop B will execute 4
times. Therefore, the total number of times that
loop B operates will be 3
×
4
=
12 times.
FOR
K3
FOR
K4
NEXT
NEXT
A
B
Program Example 2:
When X7 = Off, the ELC will execute the program between the FOR ~ NEXT loop. When X7 = On,
the CJ instruction jumps to P6 and does not execute the logic between the CJ and P6, which
includes the FOR/NEXT loop.
X7
M0
M0
P6
MOV
FOR
MOV
D0
D0
K3
K0
Y10
INC
NEXT
X10
D0
D1
CJ
P6
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...