SUB (64)
SUB (64)
ID 64
Application: |
PLC |
SIM |
Group: MATH
Short description:
A function that performs the subtraction of two numbers.
Inputs (2):
no. |
type |
impulse |
mark |
notes |
1 |
I |
no |
a |
Long int input no 1 |
2 |
I |
no |
b |
Long int input no 2 |
Outputs (2):
no. |
type |
impulse |
mark |
notes |
1 |
I |
no |
a-b |
Subtraction results |
2 | B | no | limit | Marker of exceeding the range of long int |
Settings: none
Function operation:
The SUB function performs the subtraction of two numbers. The limit output informs about exceeding the long int range (−2 147 483 648 - +2 147 483 647 (with sign)).
R registers and M markers used: none