MC_AxRtGoErrorState_BkPlcMc (from V3.0)
(not recommended) This function block places the axis into a fault state.
Inputs
VAR_INPUT
Trigger: BOOL;
ErrorID: UDINT;
NoLogging: BOOL;
END_VAR
Name | Type | Description |
---|---|---|
Trigger | BOOL | A rising edge at this input places the axis in a fault state. |
ErrorID | UDINT | An encoded indication of the cause of the error is provided here. |
NoLogging | BOOL | TRUE at this input suppresses the output of a message. |
Inputs/outputs
VAR_INOUT
Axis: Axis_Ref_BkPlcMc;
END_VAR
Name | Type | Description |
---|---|---|
Axis | Axis_Ref_BkPlcMc | Here, the address of a variable of type Axis_Ref_BkPlcMc should be transferred. |
Behavior of the function block
The axis is placed into a fault state by a rising edge at the Trigger input.
Requirements:
- The value at the ErrorCode input is not equal to 0.
- The axis is not already in an error state.
If NoLogging is FALSE (default state), message containing information on the affected axis and the ErrorCode is generated during the transition of the axis to the error state. This default message should be replaced with a message that is meaningful for the application. In this case the default message should be suppressed by setting NoLogging to TRUE. |