Multiply MUL

Dest = A × B.

TagAfter two scans
Boxes26
Items24
PerBox4

How it works

While the rung is true, writes Source A × Source B to the destination each scan. A fault, such as a divide by zero, leaves the destination unchanged.

How it's used

Use MUL to scale a count, such as boxes into items.

TagValue
Boxes6
PerBox4
Items24

6 boxes of 4 make 24 items.

Operands

OperandData typeRead or write
ADINT, REAL or a numberReads
BDINT, REAL or a numberReads
DestDINT, REALWrites

Common mistakes

  • Expecting a huge result to wrap roundA result too big for Dest is a fault and Dest is not changed.

Learn it in a lesson