Wednesday, July 4, 2012
Comparison Instructions
Overview of Comparison Instructions
Description
IN1 and IN2 are compared according to the type of comparison you choose:
== IN1 is equal to IN2
<> IN1 is not equal to IN2
> IN1 is greater than IN2
< IN1 is less than IN2
>= IN1 is greater than or equal to IN2
<= IN1 is less than or equal to IN2
If the comparison is true, the RLO of the function is "1". It is linked to the RLO of a rung network by
AND if the compare element is used in series, or by OR if the box is used in parallel.
The following comparison instructions are available:
• CMP ? I Compare Integer
• CMP ? D Compare Double Integer
• CMP ? R Compare Real !--RELATED-POSTS-STARTS-->
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment