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

Knowledge Base FAQ #12: How do I monitor the communication with an I/O device? ST_TcPlcDeviceInput [ } 104] and ST_TcPlcDeviceOutput [ } 106] variables provide an element with the name uiBoxState . If the Bus Couplers or the interface cards of the power units used offer a corresponding variable and the variable assumes the value 0 with undisturbed communication in the fieldbus used, a link should be created. This is possible, for example, with Beckhoff Lightbus and Real-time Ethernet . If an MC_Power_BkPlcMc [ } 26] function block is used for the axis, the function block monitors the uiBoxState and reports problems with the communication. In such a case the axis is put in an error state.

EtherCAT offers enhanced options. FAQ #13: How do I assign my own labels to customer-specific axis parameters? The Axis_Ref_BkPlcMc [ } 67] structure uses the pAuxLabels pointer to support the application of an array of texts, which are displayed by the PlcMcManager. These texts can be loaded by the MC_AxUtiStandardInit_BkPlcMc [ } 182] function block when the application is started from a file. To this end this function block must be provided with the address of an ST_TcMcAuxDataLabels [ } 103] variable and a suitable file. It goes without saying that it is also possible to define the elements of the ST_TcMcAuxDataLabels [ } 103] variable through direct assignment from the application.

In this case, the file is not required. NOTE! A number of controller function blocks of the library define the arrays texts automatically. FAQ #14: How do I control a current valve? In contrast to a 4/2 or 3/2 directional proportional valve or a servo valve, a current valve is controlled with a 0..10 V signal (if a valve output stage is present) or actuated with a load-independent current of 0...I Nominal . In this control, only the magnitude of the velocity is transferred. The direction is transferred not with the sign, but by other means. This usually requires digital signals, which are used for controlling switching valves.

The ST_TcPlcDeviceOutput [ } 106] structure provides elements such as bBrakeOff , bMovePos and bMoveNeg for this purpose. For generating an absolute control value, bDrive_AbsoluteOutput should be set in the axis parameters. NOTE! This also enables the use of conventional frequency converters with asynchronous motor, encoder and brake, if the converter provides an analog input. FAQ #15: Which axis variables should be logged with the Scope? The following signal composition is recommended: Always: actual axis position : Axis_Ref_BkPlcMc. ST_TcHydAxRtData [ } 99] .fActPos: in actual value units, as specified by the encoder scaling. Only for gear or synchronization coupling, cam plate:

set axis position : Axis_Ref_BkPlcMc.ST_TcHydAxRtData.fSetPos: in actual value units, as specified by the encoder scaling. Particularly during commissioning: actual velocity value : Axis_Ref_BkPlcMc.ST_TcHydAxRtData.fActVelo: velocity in physical representation. Particularly during commissioning: residual distance or target position : Axis_Ref_BkPlcMc.ST_TcHydAxRtData.fDistanceToTarget or Axis_Ref_BkPlcMc.ST_TcHydAxRtData.fTargetPos: in actual value units, as specified by the encoder scaling. Only if pressure/force logging is active: various actual pressure and force values : in Axis_Ref_BkPlcMc.ST_TcHydAxRtData:

as required fActPressure fActPressureA fActPressureB fActForce fValvePressure fSupplyPressure: pressures and forces, unit is defined through parameterization of the logging function blocks. Particularly during commissioning: velocity control value : Axis_Ref_BkPlcMc.ST_TcHydAxRtData.fActVelo: velocity in physical representation. Particularly during commissioning: controller output : Axis_Ref_BkPlcMc.ST_TcHydAxRtData.fLagCtrlOutput: velocity in physical representation. PLC Library Hydraulics 229 Version: 1.4