TwinCAT PLC Library Hydraulics - Version 1.4 — 4.4.1.5 MC_AxRtPosPiControllerEx_BkPlcMc (ab V3.0.40)

PLCopen Motion Control Integration of the function block in the application A function block of this type must be called after the actual value acquisition and control value generation. The function block superimposes its response with that of the control value generator and enters it in the ST_TcHydAxRtData [ } 99] . The MC_AxRtFinish_BkPlcMc [ } 175] function block to be positioned after the controller function block then considers the response automatically. NOTE! A value greater than 0 in FirstAuxParamIdx can be used to instruct the function block to use three consecutive values in the fCustomerData of the parameter structure as VeloLimit, LimitFilter and UpdateFilter.

If the address of a suitable ARRAY[..] OF STRING() is entered in Axis.pStAxAuxLabels, the parameters are automatically assigned a name. 4.4.1.5 MC_AxRtPosPiControllerEx_BkPlcMc (ab V3.0.40) The function block can be used as an alternative to the default position controller. It is called after the MC_AxRuntime_BkPlcMc() function block (setpoint generator and default position controller). This arrangement overwrites the responses of the default position controller. VAR_INPUT Reset: BOOL:=FALSE; I_Enable: BOOL:=FALSE; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR VAR_OUTPUT SetPos: LREAL; SetVelo: LREAL; Response: LREAL; InWindup: BOOL; END_VAR Reset :

This input deletes all internal and external controller responses. I_Enable: This input controls the activity of the I component. SetPos : [mm] The set position that becomes effective at the internal controller. SetVelo : [mm/s] The set velocity that becomes effective at the internal controller. Response : [mm/s] The controller response. InWindup : Here, the limitation of the I component that has become active is signaled. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred.

Purpose of the function block The default position controller integrated in the MC_AxRuntime_BkPlcMc() [ } 167] function block cannot meet the control requirements of some applications, due to its simple structure. The MC_AxRtPosPiControllerEx_BkPlcMc() function block is available for such applications. It supports the following control components: Position P controller Position I controller with threshold and Windup limit Position D controller (realized as velocity P controller) with attenuation time Condition feedback for the actual velocity PLC Library Hydraulics 123 Version: 1.4