MC_SetReferenceFlag_BkPlcMc (from V3.0)
(Function is not defined by PLCopen) The function block defines the referencing flag of the axis.
Inputs
VAR_INPUT
Execute: BOOL;
ReferenceFlag: BOOL;
END_VAR
Name | Type | Description |
---|---|---|
Execute | BOOL | A rising edge at this input sets the referencing flag of the axis. |
ReferenceFlag | BOOL | The new state of the referencing flag of the axis. |
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. |
Outputs
VAR_OUTPUT
Done: BOOL;
Busy: BOOL;
Error: BOOL;
ErrorID: UDINT;
END_VAR
Name | Type | Description |
---|---|---|
Done | BOOL | This indicates successful processing of the command. |
Busy | BOOL | This output is TRUE while the command is being processed. |
Error | BOOL | The occurrence of an error is indicated here. |
ErrorID | UDINT | An encoded indication of the cause of the error is provided here. |
Behavior of the function block
A rising edge at Execute causes the referencing flag in ST_TcHydAxRtData.nStateDWord to be updated. To this end, the respective bit is cleared or set with dwTcHydNsDwReferenced, depending on ReferenceFlag. The successful execution of the function is indicated with Done. A falling edge at Execute clears all the pending output signals.