TwinCAT PLC Library Hydraulics - Version 1.4 — 4.4.1.2 MC_AxCtrlPressure_BkPlcMc (from V3.0)

PLCopen Motion Control In combination with an MC_AxStandardBody_BkPlcMc [ } 181] function block, all responses of the MC_AxCtrlAutoZero_BkPlcMc function block are delayed by one PLC cycle. Usually this is no problem. If this offset does cause problems, the individual function blocks for encoder etc. should be used, and the MC_AxCtrlAutoZero_BkPlcMc function block should be called immediately before the MC_AxRtFinish_BkPlcMc [ } 175] function block. 4.4.1.2 MC_AxCtrlPressure_BkPlcMc (from V3.0) The function block controls the pressure applied to an axis such that a specified default value is established and maintained in the actual value selected by ReadingMode .

In most cases the actual pressure can be logged with function blocks of type MC_AxRtReadPressureSingle_BkPlcMc [ } 158] or MC_AxRtReadPressureDiff_BkPlcMc [ } 156] . VAR_INPUT Enable: BOOL:=FALSE; Reset: BOOL:=TRUE; FirstAuxParamIdx: INT:=0; kP: LREAL:=0.0; Tn: LREAL:=0.0; ReadingMode:E_TcMcPressureReadingMode:=iTcHydPressureReadingDefault; PreSet: LREAL:=0.0; WindupLimit:LREAL:=0.0; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR VAR_OUTPUT Error: BOOL; ErrorID: UDINT; InWindup: UDINT; END_VAR Enable : TRUE at this input activates the controller. Reset : TRUE at this input resets the controller. The memory of the I component is cleared. PLC Library Hydraulics 115 Version:

1.4 Attention Dangerous axis movement If situations occur during axis operation, in which the axis has a controller enable pending but does not display its normal motion behavior, the MC AxCtrlAutoZero BkPlcMc function _ _ block must be disabled. Possible causes for such a situation including function block startup with or without transition to pressure control or reduction of or switch-off of the sup- ply. If this is not taken into account, the value of fZeroCompensation in ST TcHydAxParam _ [} 93] may run in any direction until the specified limit is reached. As soon as the axis is re- sponsive again at a later stage, a dangerous motion may be unavoidable.

In this case the positioning behavior will be severely affected. If the function block is called without En- ableOnMoving, it may no longer be able to automatically correct the shifted offset. In this case the axis will stop outside the target window and never report the motion as complete, or only after a long time.