MUL (Multiplication)
Multiplies two numeric values and outputs the product.
The MUL function block multiplies two input values and outputs the product. It is used for scaling analog values, calculating areas/volumes, applying conversion factors, and production rate calculations in PLC programs.
Parameters
Inputs
| Name | Type | Description |
|---|---|---|
| IN1 | ANY_NUM | First factor |
| IN2 | ANY_NUM | Second factor |
Outputs
| Name | Type | Description |
|---|---|---|
| OUT | ANY_NUM | Product (IN1 * IN2) |
Ladder Logic Example
// Ladder Logic - MUL (Scaling) // // |----[MUL]----| // | IN1: Raw_Analog | // | IN2: Scale_Factor | // | OUT: Scaled_Value |
Structured Text Example
Scaled_Value := Raw_Analog * Scale_Factor; Total_Length := Piece_Count * Piece_Length;
20 Production-Ready Ladder Logic Templates
Stop writing the same rungs from scratch. Get copy-paste-ready templates for motor control, PID loops, safety interlocks, conveyors, and more.
Platform-Specific Implementation
Siemens (TIA Portal)
Use MUL instruction in TIA Portal.
Allen-Bradley (Studio 5000)
Use MUL instruction in Studio 5000.
CODESYS
Use * operator in ST or MUL function block.
Common Applications
- Analog signal scaling
- Unit conversion
- Production rate calculation
- Area/volume calculation
- Cost calculation
Frequently Asked Questions
What is MUL (Multiplication) in PLC programming?
Multiplies two numeric values and outputs the product. The MUL function block multiplies two input values and outputs the product. It is used for scaling analog values, calculating areas/volumes, applying conversion factors, and production rate calculations in PLC programs.
What are common applications of MUL (Multiplication)?
MUL (Multiplication) is commonly used for: Analog signal scaling, Unit conversion, Production rate calculation, Area/volume calculation, Cost calculation.
How do I use MUL (Multiplication) in different PLC platforms?
Siemens: Use MUL instruction in TIA Portal. Allen-Bradley: Use MUL instruction in Studio 5000. CODESYS: Use * operator in ST or MUL function block.
Related Function Blocks
DIV (Division)
Divides first input by second input, outputs the quotient.
View Reference →ADD (Addition)
Adds two or more numeric values and outputs the sum.
View Reference →SUB (Subtraction)
Subtracts second input from first input, outputs the difference.
View Reference →MOD (Modulo)
Returns the remainder after integer division of two values.
View Reference →ABS (Absolute Value)
Returns the absolute (non-negative) value of the input.
View Reference →Stop Writing Ladder Logic From Scratch
Get 20 production-ready ladder logic templates for $29 -- download instantly and use them on your next project today.
Instant download - 30-day money-back guarantee - Use on unlimited projects