Addition +
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
- In the FBD "Function Block Diagram" A function block diagram describes a function between input variables and output variables. A function is described as a set of elementary blocks Language, the block can have a maximum of 32 inputs.
FFLD Language Example
- In the FFLD "Free Form Ladder Diagram" Language, the input rung (EN) enables the operation.
- The output rung (ENO) keeps the same value as the input rung.
IL Language Example
- In the IL "Instruction List"
This is a low-level language and resembles assembly Language, the ADD instruction performs an addition between the current result and the operand.
- The current result and the operand must have the same type.
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