MUL (multiply)
The MUL instruction multiplies two or more Integer or Real values.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
MUL

Parameter | Parameter Type | Data Type | Description | |
---|---|---|---|---|
EN | Input | BOOL | When set to true, the instruction is enabled.
| |
i1 | Input | SINT USINT BYTE INT UINT WORD DINT | UDINT DWORD LINT ULINT LWORD REAL LREAL | Factor in Integer or Real data type. All inputs must be of the same data type. |
i2 | Input | SINT USINT BYTE INT UINT WORD DINT | UDINT DWORD LINT LINT LWORD REAL LREAL | Factor in Integer or Real data type. All inputs must be of the same data type. |
o1 | Output | SINT USINT BYTE INT UINT WORD DINT | UDINT DWORD LINT ULINT LWORD REAL LREAL | Product of the inputs in Integer or Real data type. Input and output must use the same data type. |
ENO | Output | BOOL | Enables output. Applies to ladder diagram programs. |
MUL examples
MUL function block diagram example

MUL ladder diagram program example

(* ST equivalence *) ao10 := ai101 * ai102; ao5 := (ai51 * ai52) * ai53;
Provide Feedback