Subtraction -

Operator - Performs a subtraction of all inputs.

Inputs

Input

Data Type

Range

Unit

Default

Description

IN1

ANY_NUM / TIME

 

 

 

First input.

IN2

ANY_NUM / TIME

 

 

 

Second input.

Outputs

Output

Data Type

Range

Unit

Description

Q

ANY_NUM / TIME

 

 

Result: IN1 - IN2.

Remarks

  • All inputs and the output must have the same type.

FBD Language Example

FFLD Language Example

IL Language Example

Op1: FFLD  IN1
     SUB IN2
     ST  Q    (* Q is equal to: IN1 - IN2 *)
Op2: FFLD  IN1
     SUB IN2
     SUB IN3
     ST  Q    (* Q is equal to: IN1 - IN2 - IN3 *)

ST Language Example

Q := IN1 - IN2;

See Also