Type
| FunctionAvailable as standard (non-safety-related) and safety-related type (*_S). For the safety-related type, the safety-related data types (SAFE*) are expected at the formal parameters. |
Description
| Multiplies the operands connected to the inputs. |
Notes
|
- When the multiplication result exceeds the permissible range of the output value, an overflow occurs.
- Multiplication of a TIME value by a larger data type (type casting): Before the multiplication operation is performed, the larger data type (e.g., LINT, ULINT, LREAL) connected to IN2 is converted (casted) to the smaller TIME data type.
- Overloaded function. The function can operate on various input data types.
- The function provides implicit data type conversion at its input and output parameters according to the rules defined by the IEC 61131 standard.
- Further inputs can be added.
|
Parameters
| Inputs
IN1
Data type: | ANY_(SAFE)MAGNITUDE |
Description: | First input value. |
IN2
Data type: | ANY_(SAFE)NUM |
Description: | Second input value. |
Output
OUT
Data type: | ANY_(SAFE)MAGNITUDE |
Description: | Output value. |
|
Error behavior | Error behavior
The following table shows the errors which may occur while executing the function and the value returned by the function in the corresponding error case.
Error case | Output value RFC/NFC/AXC F 3152 | Output value AXC F 2152 |
Overflow for Int input values Overflow for IN1 = time value and IN2 = Int value | Overflow value | Overflow value |
Overflow for Real input values | Inf+- (depending on
input values) | Inf+- (depending on
input values) |
Overflow for IN1 = time value and IN2 = Real value (result > ULINT_MAX) | T#-1, LT#-1 | T#0, LT#0 |
Real input values: any input = NaN | NaN | NaN |
IN1 = time value and IN2 = Real value: any input = NaN | TIME_MIN, LTIME_MIN | T#0, LT#0 |
IN1/IN2 = any Real or IN1/IN2 = Inf+/Inf- | Inf+- (depending on
input values) | Inf+- (depending on
input values) |
IN1 = TIME value and IN2 = Real value: input Inf+ | TIME_MIN | T#-1 |
IN1 = TIME value and IN2 = Real value: input Inf- | TIME_MIN | T#1 |
IN1 = LTIME value and IN2 = Real value: input Inf+ | LTIME_MIN | LT#-1 |
IN1 = LTIME value and IN2 = Real value: input Inf- | LTIME_MIN | LT#1 |
|
Additional information
| EN/ENO behavior
The POU is only executed if TRUE is applied to the EN input. If EN = FALSE, the POU is not executed and ENO = FALSE indicates the inactivity.
If any of the errors listed under "Error behavior" occurs while executing the function, ENO is set to FALSE.
|