AX-Series Motion Controller Instructions Manual Chapter 2
144
Name Function Data Type Output Range (Default Value)
ErrorID
Record the error code when an error
occurs.
Refer to Appendix for error code
SMC_ERROR* SMC_ERROR (SMC_NO_ERROR)
RecordedPosition
Display the axis position recorded
at the time of trigger signal being
True.
LREAL LREAL(0)
CommandAborted
True when the instruction is aborted
by MC_AbortTrigger.
BOOL
True/False (False)
*Note: SMC_ERROR: Enumeration (Enum)
Output Updating Time
Timing for Shifting to True
Timing for Shifting to False
Done
When the trigger signal is True and the axis
position has been recorded.
When Execute turns from True to False.
If Execute is False and Done turns to True,
Done will be True for only one scan cycle
and immediately shift to False.
Busy
When Execute is triggered to be True.
When Error turns to True.
When CommandAborted turns to True.
Error
When an error occurs in the execution
conditions or input values for the instruction.
When Execute turns from True to False.
(Error Code is cleared)
ErrorID
CommandAborted
When the function block is interrupted by
MC_AbortTrigger.
When Execute turns from True to False.
If Execute is False and CommandAborted
turns to True, CommandAborted will be
True for only one scan cycle and
immediately shift to False.
Inputs/Outputs
Name Function Data Type
Setting Value
(Default Value)
Timing to Take Effect
Axis Specify the axis. AXIS_REF_SM3*
1
AXIS_REF_SM3 -
TriggerInput Trigger signal TRIGGER_REF*
2
TRIGGER_REF
When Execute turns to True and Busy is
False.
*Note:
1. AXIS_REF_SM3(FB): Every function block contains this variable, which works as the starting program for function blocks.
2. TRIGGER_REF: Structure (STRUCT)
Name Function Data Type
Setting range
iTriggerNumber Trigger channel INT
0: Touch Probe 1, rising edge
1: Touch Probe 1, falling edge
2: Touch Probe 2, rising edge