CMP (82)
CMP (82)
ID 82
Application: |
PLC |
SIM |
Group: MATH
Short description:
A function that compares two values of real variables.
Inputs (2):
no. |
type |
impulse |
mark |
notes |
1 |
R |
no |
a |
Real type input |
2 | R | no | b | Real type input |
Outputs (3):
no. |
type |
impulse |
mark |
notes |
1 |
B |
no |
a |
Marker A |
2 | B | no | a=b | Marker A=B |
3 | B | no | a>b | Marker A>B |
Settings: none
Function operation:
The CMP function compares the real values of the signals on inputs a and b, and then returns the result of their comparison, setting the state high on the corresponding output.
R registers and M markers used: none