Chapter 5. Function Block Diagram (FBD)
Function
Description
Scales an input parameter and places the result in an output location.
For details, refer to Math Functions in Chapter 4.
Subtraction. Subtracts one or up to seven numbers from the input IN1 and places the
result in an output location.
For details, refer to
The output is calculated when the instruction is performed without Overflow, unless an invalid
operation occurs.
5.9.1
Overflow
If an operation on integer operands results in overflow, the output value wraps around.
Examples:
If the ADD operation, 32767 + 1, is performed on signed integer operands, the result is -32768
▪
If the SUB operation, -32767 – 1, is performed on signed integer operands, the result is 32767
▪
If an ADD_UINT operation is performed on 65535 + 16, the result is 15.
▪
258
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
Subtract
below.
GFK-2950C