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 - 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 Language, the input rung (EN) enables Enable signal for the drive, Hardware-Enable with 24V signal to X8, Software-Enable command by setup Software, fieldbus or permanently set.
Both are required for enabling the drive. 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