Learn PLCs free
Math OperationsBeginnerIEC 61131-3

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

NameTypeDescription
IN1ANY_NUMFirst factor
IN2ANY_NUMSecond factor

Outputs

NameTypeDescription
OUTANY_NUMProduct (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

S

Siemens (TIA Portal)

Use MUL instruction in TIA Portal.

AB

Allen-Bradley (Studio 5000)

Use MUL instruction in Studio 5000.

C

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.

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.

20
Ready-Made Templates
LD + ST
Both Languages Included
$29
One-Time Purchase
Get Instant Access -- $29

Instant download - 30-day money-back guarantee - Use on unlimited projects

Free PLC simulator

Wire this block up and run it

Drop the instruction into a rung, hit Run, and watch it execute in your browser. 12 guided lessons across 8 PLC dialects — free account, no credit card.

Practice PLCs free →