Wednesday, July 4, 2012

CMP ? D Compare Double Integer

CMP ? D    Compare Double Integer


Parameter       Data Type     Memory Area        Description
box input        BOOL        I, Q, M, L, D       Result of the previous logic operation
box output      BOOL        I, Q, M, L, D       Result of the comparison, is only processed
                                                                 further if the RLO at the box input = 1
IN1                INT           I, Q, M, L, D        First value to compare
                                       or constant          
IN2                 INT            I, Q, M, L, D      Second value to compare
                                        or constant 

Description 
CMP ? D (Compare Double Integer) can be used like a normal contact. It can be located at any
position where a normal contact could be placed. IN1 and IN2 are compared according to the type of
comparison you choose.
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.


Output Q4.0 is set if the following conditions exist:
•  There is a signal state of "1" at inputs I0.0 and at I0.1
•  And MD0 >= MD4
•  And there is a signal state of"1" at input I0.2



Almost same compare real Just symbol will change.........

!--RELATED-POSTS-STARTS-->

No comments:

Post a Comment