EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 674

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...
641
Data Control Instructions Section 3-17
Precautions If the upper limit is less than the lower limit, an error will occur and the Error
Flag will turn ON.
If the input data (S) is greater than the upper limit, the Greater Than Flag will
turn ON.
If the output word D is 0000 hex, the Equals Flag will turn ON.
If the input data (S) is less than the lower limit, the Less Than Flag will turn
ON.
If the status of the leftmost bit of the output word D is “1,” the Negative Flag
will turn ON.
Example If D100 is 00B4 hex (180), then 180–200=FFEC hex (–20) will be output to
D300 because 180 is less than the lower limit of 200.
If D100 is 00E6 hex (230), then 0 will be output to D300 because 230 is within
the upper and lower limits.
If D100 is 015E hex (350), then 350–300=0032 hex (50) will be output to D300
because 350 is greater than the upper limit of 300.
Equals Flag = ON if the result is 0.
OFF in all other cases.
Less Than Flag < ON if the input data (S) is less than the lower limit.
OFF in all other cases.
Negative Flag N ON if the leftmost bit of the result is “1.
OFF in all other cases.
Name Label Operation
D100
D200
D300
D300 D300
D100
C: D200
D201
20
Upper limit
Lower limit: 200
Upper limit: 300
Upper
limit:
300
Lower
limit:
200
Lower limit
+

Table of Contents

Related product manuals