AutomationView Documentation

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 MUL with the N (non-stored) qualifier, the multiplication runs every scan cycle while the step is active. This will cause the value to grow exponentially. Use ActionQualifier.P (pulse) if you only want to multiply once.


Syntax

Sequence Visual Editor

Sequence step with MUL instruction configured

Python

from automation_machine import ActionQualifier, ActionInstruction

step.add_action("variable_name", "Description", qualifier=ActionQualifier.P, instruction=ActionInstruction.MUL)

See Also