PLCopen Motion Control NOTE! The generator function block of the axis should still be called cyclically. It deals with position control and updates further internal variables . 4.4.7.8 MC_AxStandardBody_BkPlcMc (V3.0) This function bllock calls a function block of each of the following types: MC_AxRtEncoder_BkPlcMc [ } 135] , MC_AxRuntime_BkPlcMc [ } 167] , MC_AxRtFinish_BkPlcMc [ } 175] and MC_AxRtDrive_BkPlcMc [ } 125] . VAR_OUTPUT Error: BOOL; ErrorID: UDINT; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Error : The occurrence of an error is indicated here. ErrorID : An encoded indication of the cause of the error is provided here. Axis :
Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Behaviour of the function block The usual components of the axis are called, depending on the value in ST_TcHydAxParam [ } 93] . If one of the called function blocks reports an Error it is echoed, together with its ErrorID , at the outputs of this function block. NOTE! In the event of multiple problems, they are prioritized according to the following sequence: encoder, generator, finish, drive. 4.4.7.9 MC_AxUtiCancelMonitoring_BkPlcMc (from V3.0) Monitoring of a function is aborted. NOTE!
Many function blocks can still be activated based on the PLCopen definitions, even if an activity was already started for the axis by the same or another function block. In most cases this behavior can be utilized, and the monitoring does not have to be aborted. VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR VAR_INPUT Execute: BOOL; END_VAR PLC Library Hydraulics 181 Version: 1.4 Note A number of function blocks require the option of monitoring for correct and full pro- cessing of their function. Monitoring may only be aborted in function blocks for which this possibility is explicitly stated.