Subtract Function Block

This function block subtracts one input from other. Out = In A - In B.

Figure 1: Subtract - Function Block

Figure 2: Subtract - Property Sheet

If the result overflows the range of a single precision floating point number, the result becomes "null".

Figure 3: Subtract- Logic Diagram

Input

Input Name

Description

In A

This is a 32-bit floating point input slot

In B

(In & Par)

This is a 32-bit floating point input slot

Table 1:Inputs of Subtract Function

Output

Output Name

Description

Out

Output = In A-In B

Table 2:Output of Subtract Function

Parameter

Parameter Name

Description

In B Par

(In & Par)

If In B is "null", In B Par is used as parameter.

If In B Par set to "nan", it is treated like "null".

Ignore Inv In

If this option is set to true, function block considers only valid inputs while determining the subtraction of the inputs.

If this option is set to false, and any input becomes "null", the output becomes invalid.

Default is "true"

Out Save

Master Sync Enabled: If you set it to "true" the last output will be set as output for one cycle after the controller restarts. The application can use it to return to the same state before the controller restart.

Out: To enable or disable the Out feature.

Table 3:Parameters of Subtract Function

Examples

1.       Provide the output of InA-InB

Figure 4: Example-Subtract Function Block

Refer to General Description for general information about IRMN4 Function Blocks.