Knowledge Base For TC2: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/zip/1599866507.zip For TC3: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007204192296331.zip The example shows how to control digital cams through an axis and MC_DigitalCamSwitch_BkPlcMc [ } 48] . In the example two cams are activated in TRACK_REF_BkPlcMc [ } 109] (maximum 32). The first cam is activated under three different conditions: 1. from position -1000 mm to 1000 mm and positive direction 2. from position 2000 mm to 3000 mm and positive direction 3. from position 3000 mm to 2500 mm and negative direction The second cam has only one condition: 1.
to be active in positive and negative direction for a time of 1.35 s from position 3000 mm. In addition to the switching conditions, a cam can also have a switch-on and switch-off delay. For cam 1, the switch-on delay is set to 0.125 s and the switch-off delay is set to 0.250 s. The conditions for switching a cam are specified in CAMSWITCH_REF_BkPlcMc [ } 69] . The output of a cam is specified in OUTPUT_REF_BkPlcMc [ } 92] . The axis must be commanded via the PlcMcManger (position greater than 3000 mm). Example 9: Joystick For TC2: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/zip/1599868683.zip For TC3:
https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007204192298891.zip The example demonstrates the use of the function block MC_MoveJoySticked_BkPlcMc [ } 62] . With this function block, the axis is moved in an endless motion at a velocity specified by JoyStick. Joystick is a normalized value between +/-1.0, which, multiplied by the commanded velocity, results in the set velocity. Example 10: Identification and linearization For TC2: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/zip/1599870859.zip For TC3:
https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007204192352651.zip The example describes the automatic characteristic curve measurement with MC_AxUtiAutoIdent_BkPlcMc [ } 192] and the use of the characteristic curve with MC_AxRtFinishLinear_BkPlcMc [ } 176] . The settings for the automatic characteristic curve measurement are accessible in the PlcMcManger under the LinDef tab and can be found in the structure ST_TcMcAutoIdent [ } 93] . In the example, you can choose between three different valve simulations using the global variable nTest. A suitable .dat file is loaded according to the selected simulation.
The parameters for the characteristic curve measurement are preset in the .dat file as required. Caution: If nTest is switched while the PLC is running, the PlcMcManager must be reconnected. The following scenarios can be selected via nTest: 1. Only the overlap and velocity ratio is missing 2. A zero overlap characteristic curve with bend is missing 3. A characteristic curve with overlap is missing The variable "bStartAuto" can be used to start MC_AxUtiAutoIdent_BkPlcMc [ } 192] . During the measurement the function block returns Busy, and the already measured characteristic curve is displayed on the LinTab tab.
If the measurement was successful, the characteristic curve can be used by the function block MC_AxRtFinishLinear_BkPlcMc [ } 176] . The characteristic curve is automatically saved and loaded in the .dat file of the axis. The function block MC_AxTableToAsciFile_BkPlcMc [ } 162] is available for exporting the characteristic curve in an ASCII-readable format. Example 11: Stop function blocks For TC2: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/zip/1599873035.zip For TC3: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007204192355211.zip PLC Library Hydraulics 257 Version: 1.4