Try a PLC free — no signup
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;

Free · no signup to try

Run this block in your browser

Try the instruction on a live rung before you copy it into a project — nothing to install.

Try it in your browser — no signup

Opens plcsimulationsoftware.com — same team

Prefer ready-made code? Ladder Logic Pack — $29 on Gumroad

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.

Free · no signup to try

Wire this block up and run it

Drop the instruction into a rung, press Run and watch it execute in your browser — then adapt it to your vendor tool.

Try it in your browser — no signup

Opens plcsimulationsoftware.com — same team

Prefer ready-made code? Ladder Logic Pack — $29 on Gumroad