Subtract

Function

This statement subtracts the sum of “In 2” … “In n” inputs from the input value “In A!”

You can also use this function to reverse a signal.


The Addition statement is one of the dynamic control icons.

It has two inputs by default, but the user can add up to n (recommended limit 32) inputs in the slot sheet view, selecting the Add Slot function of the context menu.


Formula

“Out” = “In A” - (“In B” + “In C” + through “In n”)


 

Fig. 70.   Wire-sheet Icon

Fig. 71.   Property Sheet

Fig. 72.   Slot Sheet


Inputs and Outputs

Table 49.   Inputs

Inputs

Type

Functional description

In A

numeric

Analog input value. None of the inputs have mandatory connections.

In B

numeric

Analog input value

In n

user defined

Add up to n (recommended limit 32) inputs in the slot sheet

In Enabled

boolean

If the input “In Enabled” is set to false disabled in the slot sheet, the output “Out” will be disabled and is set to the value “0”.


Table 50.   Outputs

Outputs

Type

Functional description

Out

numeric

One analog output “Out” = result of subtraction


Parameter List

No parameters.