Knowledge Base For TC3: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007204192206731.zip The example illustrates a configuration with arrays of function blocks and structures. The range of functions corresponds to example 1. Example 3: Pressure-controlled braking For TC2: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/zip/1599857803.zip For TC3: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007204192209291.zip The example shows how the pressure regulator MC_AxCtrlSlowDownOnPressure_BkPlcMc [ } 119] throttles the feed rate of an axis depending on the pressure.
In this example, the controller becomes active when the actual pressure exceeds the set pressure. Since the result is transferred via an application code to "fLagCtrlOutput", the controller must be called after the setpoint generator. Otherwise, fLagCtrlOutput would be overwritten by the position controller in MC_AxRuntime_BkPlcMc [ } 167] . If a command is started in the PlcMcManager with a velocity of 100 mm/s and a position of 500 mm, for example, the scope shows that the pressure increases continuously with increasing position. At a position of 400 mm, the system has reached the set pressure of 50 bar and stops. Example 5: Move function blocks For TC2:
https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/zip/1599859979.zip For TC3: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007204192288651.zip In this example, various function blocks are used for motion control. If the variable bStart becomes TRUE, the state machine starts the axis with MC_MoveAbsolute_BkPlcMc [ } 60] to the position 500 mm. When the axis has reached the target and the target window conditions are met (in PosRang, in TargetRange for TargetFilterTime and in BrakeDistance), a MC_MoveVelocity_BkPlcMc [ } 64] automatically starts with a velocity of 400 mm/s.
This velocity remains active for 5 seconds and is then terminated with MC_Stop_BkPlcMc [ } 66] , so that the axis comes to a standstill. This is followed by a relative movement of 100 mm with MC_MoveRelative_BkPlcMc [ } 63] and a move to position 0.0 mm. Different acceleration and deceleration ramps are used in the different motion profiles. Example 6: Time ramp generator For TC2: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/zip/1599862155.zip For TC3: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007204192291211.zip An axis without encoder cannot be controlled via the standard setpoint generator.
For this type of axis, iTcMc_ProfileTimeRamp [ } 172] provides an alternative setpoint generator. If the variable "bUp" or "bDown" is TRUE in the global variables, the axis moves at the specified velocity (here 500 mm/s) to the first limit switch (DigCamP – for positive/ DigCamM – for negative) and then slows down to the corresponding creep velocity. After reaching DigCamPP – for positive/ DigCamMM – for negative the output is deleted. Example 7: Override and function generator For TC2: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/zip/1599864331.zip For TC3:
https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007204192293771.zip Demonstration of the function block MC_SetOverride_BkPlcMc [ } 37] . Global variables (bOverrideSinusoidal, fOverrideCycleTime, fOverrideMinValue, fOverrideMaxValue) can be used to specify the sequence, the period and the limitations of a signal generator, which modifies the override. Function blocks of type MC_FunctionGeneratorFD_BkPlcMc [ } 159] , MC_FunctionGeneratorTB_BkPlcMc [ } 161] and MC_FunctionGeneratorSetFrq_BkPlcMc [ } 160] are used for generating the override. Example 8: Digital cam controller PLC Library Hydraulics 256 Version: 1.4