MUL (Multiplication)
Multiplies the target variable by a value each time the action executes.
Description
The MUL instruction performs a multiplication operation on the target variable. When the action activates, it multiplies the current value of the variable by the specified factor.
This is useful for scaling operations, unit conversions, or applying gain factors during a process.
When using
MULwith theN(non-stored) qualifier, the multiplication runs every scan cycle while the step is active. This will cause the value to grow exponentially. UseActionQualifier.P(pulse) if you only want to multiply once.
Syntax
- step: the parent step object (from
self.add_step()) - variable_name: the numeric variable to modify
- qualifier: typically
ActionQualifier.Pto multiply once on step activation - instruction: must be
ActionInstruction.MUL
Sequence Visual Editor

Python
from automation_machine import ActionQualifier, ActionInstruction
step.add_action("variable_name", "Description", qualifier=ActionQualifier.P, instruction=ActionInstruction.MUL)
See Also
- ADD (Addition): add to a variable
- SUB (Subtraction): subtract from a variable
- DIV (Division): divide a variable
- Action Qualifiers Overview
- Instructions Overview