EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 68

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
35
Precautions Section 1-2
Example: The following example will move #200 to D200 if D100 contains
#10 and move #300 to D300 if D100 does not contain #10.
The Equals Flag will turn ON if D100 in the rung above contains #10. #200 will
be moved to D200 for instruction (1), but then the Equals Flag will be turned
OFF because the #200 source data is not 0000 hex. The MOV instruction at
(2) will then be executed and #300 will be moved to D300. A rung will there-
fore have to be inserted as shown below to prevent execution results for the
first MOVE instruction from being picked up.
(1)
(2)
Reflects MOV execution results.
Reflects CMP execution results.
Incorrect
Use
#10
D100
#200
D200
#300
D300
Correct
Use
#10
D100
#200
D200
#300
D300
Reflects CMP execution results.

Table of Contents

Related product manuals