TwinCAT PLC Library Hydraulics - Version 1.4 — 5.1 FAQs (from V3.0)

Knowledge Base NOTE! If only the usual function blocks (encoder, generator, finish, drive) for the axis are to be called, a function block of type MC_AxStandardBody_BkPlcMc should be used for simplicity. NOTE! Commissioning of an actual pressure determination with function blocks of type MC_AxRtReadPressureSingle_BkPlcMc or MC_AxRtReadPressureDiff_BkPlcMc is described in the documentation for the function block. FAQ #5: How is the control value for an axis created? In each cycle, the PLC application must call a function block of type MC_AxRuntime_BkPlcMc [ } 167] , or alternatively a suitable controller function block (e.g. a pressure regulator) for each axis.

The parameter nProfileType in ST_TcHydAxParam [ } 93] specifies the procedure that is to be used to generate the control value. Velocity control values are calculated here according to the type, and depending on other parameters associated with the axis and on the movement data. These control values are, however, normalized to the abstract numerical range ±1.0, and have not yet been prepared for immediate output to I/O hardware. NOTE! If only the usual function blocks (encoder, generator, finish, drive) for the axis are to be called, a function block of type MC_AxStandardBody_BkPlcMc [ } 181] should be used for simplicity. FAQ #6: How is the control value for an axis prepared for output?

After calling the MC_AxRuntime_BkPlcMc [ } 167] function block, a function block of type MC_AxRtFinish_BkPlcMc [ } 175] must be called for each axis. This function block assembles a number of velocity components (control value, controller output, offset compensation, overlap compensation), and also takes into account in the bends in the feed forward characteristic curve. Numerical adjustment is usually necessary prior to output to an I/O module. An MC_AxRtDrive_BkPlcMc [ } 125] function block is to be called for each axis for this purpose. The value of nDrive_Type in ST_TcHydAxParam [ } 93] selects the hardware-specific sub-function-block to be used.

The variables of types ST_TcPlcDeviceInput [ } 104] and ST_TcPlcDeviceOutput [ } 106] must be created for each axis, and contain elements that are to be linked to the set value and control variables of the I/O hardware. NOTE! If only the usual blocks (encoder, generator, finish, drive) for the axis are to be called, a block of type MC_AxStandardBody_BkPlcMc [ } 181] should be used for simplicity. FAQ #7: How is the control value output to an axis? A range of devices and equipment might be functioning as actuators, applying a variety of physical principles to create a variable velocity that depends on an electrical magnitude.

This magnitude determines the type of I/O components that must be used. The variables of types ST_TcPlcDeviceInput [ } 104] and ST_TcPlcDeviceOutput [ } 106] must be created for each axis, and contain elements that are to be linked to the variables of the I/O hardware. Here are a few examples: PLC Library Hydraulics 225 Version: 1.4