MC_TriggerError
This function block triggers an error in the target motion object.
Syntax
Definition:
FUNCTION_BLOCK MC_TriggerError
VAR_INPUT
MotionObject : Type_ErrorTriggerable;
Execute : BOOL;
ErrorCode : UDINT;
ControlError : BOOL;
END_VAR
VAR_OUTPUT
Done : BOOL;
Busy : BOOL;
Error : BOOL;
ErrorId : UDINT;
END_VAR
Inputs
|
Name |
Type |
Description |
|---|---|---|
|
MotionObject |
Interface pointer to the object on which the error should be triggered (e.g. Axis). | |
|
Execute |
BOOL |
Trigger the command with rising edge. |
|
ErrorCode |
UDINT |
Error code to be triggered |
|
ControlError |
BOOL |
Trigger a ControlError (MC has no control over the axis, i.e. hardware or communication fault). |
Outputs
|
Name |
Type |
Description |
|---|---|---|
|
Done |
BOOL |
Error has been successfully triggered. |
|
Busy |
BOOL |
Function block is not finished and new output values are to be expected. |
|
Error |
BOOL |
Error occurred within function block. |
|
ErrorId |
UDINT |
Error identifier |