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

PLCopen Motion Control FirstAuxParamIdx : Here a range in the Axis_Ref_BkPlcMc [ } 67] . ST_TcHydAxParam [ } 93] .fCustomerData can be activated as parameter interface. InWindup : This output becomes TRUE if the I component is limited by WindupLimit . kP : The gain factor of the P component. Tn : The integral action time of the I component. ReadingMode : The actual value to be controlled can be specified here. Axis_Ref_BkPlcMc [ } 67] . ST_TcHydAxRtData [ } 99] . fActPressure is selected as default value. PreSet : Here you can specify a default value for calculating an initial value for the I component of the controller. The I component is preloaded with this value on activation.

WindupLimit : Here you can specify a limit value for the I component. Such a limitation prevents extreme behavior of the I component in situations where the path does not respond to controller outputs. 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 function block investigates the axis interface that has been passed to it every time it is called. TRUE at Reset puts the function block in an idle state, irrespective of the other control signals.

Both the P component and the I component are then deleted. Enable can be used to specified whether the function block assumes the active state. The input ReadingMode determines which variable is assigned the parameter to be controlled in the stAxRtData structure. iTcHydPressureReadingDefault, iTcHydPressureReadingActPressure: fActPressure is controlled. iTcHydPressureReadingActForce: fActForce is controlled. Any other value deactivates the controller. NOTE! The set value has to be specified in fSetPressure in the stAxRtData structure of the axis. First, the function block determines whether it has to assume or quit the active state. To this end the Enable signal is evaluated.

A rising edge causes the I component to be initialized with PreSet . If the output value matching ST_TcHydAxRtData [ } 99] .in fSetPressure is known, it can be utilized for reaching the compensated state more quickly. A P component is then calculated with kP, an I component with Tn . The sum of these controller components is output as control value in ST_TcHydAxRtData [ } 99] .fSetSpeed. Since this controller assumes the function of a control value generator, it cancels ST_TcHydAxRtData [ } 99] .fLagCtrlOutput. The MC_AxRtFinish_BkPlcMc [ } 175] function block to be positioned after the controller function block then considers the response automatically.

The transition to the inactive state results in deletion of the controller components. Integration of the function block in the application A function block of this type must be called after the actual value and actual pressure acquisition. It handles the full control of the axis and replaces any function block for control value generation that may be present. A program example [ } 219] #15 is available. NOTE!

If a function block for control value generation and an MC_AxCtrlPressure_BkPlcMc function block are present, these function blocks should either be called alternatively, or the MC_AxCtrlPressure_BkPlcMc function block must follow after the control value function block, so that it overwrites the outputs of this function block. Not all generator types allow both options. PLC Library Hydraulics 116 Version: 1.4