3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-35
Program Example 1:
When X0=ON the program will skip from address 0 to N (label P1) automatically and continue
executing. Logic between 0 and N will be skipped and will not be executed.
When X0=OFF, all lines of code will be executed.
X0
X1
X2
CJ
P1
Y1
Y2
0
N
P1
P***
(CJ command)
Program Example 2:
There are five conditions where the CJ instruction can be used between the MC and MCR
instructions.
1.
Outside of an MC~MCR.
2.
Valid in the Loop P1 shown below
3.
In the same level N, inside of MC~MCR.
4.
Inside of MC, out of MCR.
5.
Jump from one MC~MCR to another MC~MCR.
X0
MC
N0
X2
X3
X1
M1000
M1000
P1
P0
CJ
CJ
MC
N1
N1
N0
P1
P0
Y1
Y0
MCR
MCR
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...