Chapter 11 Motion Control Instructions
11-297
11.6.5.3 DMC_ResetMFunction
FB/FC Explanation Applicable model
FB
DMC_ResetMFunction instruction resets the state of M code.
DMC_ResetMFunction
AxesGroup Done
DMC_ResetMFunction_instance
Execute
MFunctionID
Busy
Error
ErrorID
Input Parameters
Parameter name Function Data type
Validation timing
AxesGroup
The number of the axes
group
USINT
(The variable
value must be
When Execute
changes from
FALSE to TRUE.
Execute
executed when Execute
changes from FALSE to
BOOL
TRUE or FALSE
(FALSE)
-
MFunctionID
The number of the M
code
USINT
(The variable
value must be
When Execute
changes from
FALSE to TRUE.
Output Parameters
Parameter name Function Data type Valid range
Done
TRUE when the instruction execution is
completed.
BOOL TRUE / FALSE
Busy TRUE when the instruction is being executed. BOOL TRUE / FALSE
Error
TRUE when an error occurs in execution of
the instruction.
BOOL TRUE / FALSE
ErrorID
Contains the error code when an error
occurs. Please refer to section 12.2.
WORD -
Output Update Timing
Name Timing for changing to TRUE Timing for changing to FALSE
Done
When resetting M code is
finished.
When Execute changes from TRUE to FALSE after
the instruction execution is completed.
Busy
TRUE.
When Done changes to TRUE
When Error changes to TRUE
Error
When an input parameter is
illegal or an error occurs
during
the instruction
execution.
When Execute changes from TRUE to FALSE