Addition +

Operator - Performs an addition of all inputs.

Inputs

Input

Data Type

Range

Unit

Default

Description

IN1

ANY

 

 

 

First input.

IN2

ANY

 

 

 

Second input.

Outputs

Output

Data Type

Range

Unit

Description

Q

ANY

 

 

Result: IN1 + IN2.

Remarks

  • All inputs and the output must have the same type.
  • The addition can be used with strings.
    • The result is the concatenation of the input strings.

FBD Language Example

FFLD Language Example

IL Language Example

Op1: FFLD  IN1
     ADD IN2
     ST  Q    (* Q is equal to: IN1 + IN2 *)
Op2: FFLD  IN1
     ADD IN2
     ADD IN3
     ST  Q    (* Q is equal to: IN1 + IN2 + IN3 *)

ST Language Example

Q := IN1 + IN2;
MyString := 'He' + 'll ' + 'o';   (* MyString is equal to 'Hello' *)

See Also