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

Knowledge Base NOTE! The signal selection in ScopeView is simplified if the Axis_Ref_BkPlcMc variables contain a name that begins with aaa_. This approach is used in the sample programs and ensures that the variables can be found quickly in the symbol list. NOTE! In the signal composition of ScopeView, channels can be temporarily disabled. In this way it is possible to maintain a comprehensive configuration but limit logging to data that are currently of interest. FAQ #16: What is the purpose of the variable nDebugTag in Axis_Ref_BkPlcMc? This variable is used by nearly all library function blocks to store a unique ID for the duration of their execution.

To this end the content that was found is stored in a local variable of the function block and restored immediately before the function block is exited. Should the program crash, or if there is a suspicion that there was a problem in a library function block, the nDebugTag variables of all axes should be checked. If a value 0 is present, the function block was affected by the crash, and the reason should be investigated. The numeric values used are listed in the library under "Global constants". In addition, the contents of ST_TcHydAxRtData [ } 99] . sTopBlockName should be determined. Usually, the name of the function block called directly by the application can be found here. FAQ #17:

What has to be taken into account when Sercos drives are used? If Sercos drives (from V3.0.26) are used, the following rules must be followed: The Sercos master interface (e.g. FC7501 etc.) must be allocated the name "SercosMaster" in the System Manager. Otherwise neither control of the Sercos phase nor parameter and diagnostics communication is possible. Only a Sercos segment with the library can be used. In the System Manager, the drive devices at the Sercos Segment should be allocated the name under which they are known to the library by calling the MC_AxUtiStandardInit_BkPlcMc() function block.

Otherwise neither control of the Sercos phase nor parameter and diagnostics communication is possible. The input variable SystemState [ } 126] of the Sercos master interface should be linked for each drive device of the Sercos segment. If one or several drives at the Sercos segment are reset, the segment can interrupt the fieldbus. In this case, the Sercos master interface will undergo a corresponding phase change. Usually, the startup up to phase 4 will be automatic. Then: ◦the axis addressed by the reset will be error-free, as long as there are no ongoing problems. ◦all other axes at the Sercos segment will be in error state (fieldbus failure, axis not ready for operation).

Once the triggering reset of the first axis has been processed, the other axes can usually be brought into an error-free state through a reset without a phase change. This behavior is determined by characteristics of the Sercos fieldbus and cannot be influenced by the library. It must be taken into account in the application in a suitable manner. Depending on certain parameter settings of the drive actuator, axis parameters are determined automatically or have to be specified manually: ◦S-0-0076, bits 0 to 2 specify the weighting type of the position data. Supported features: ◦a) 0 0 1 translatory weighting: S-0-0123 defines the rotation resolution (encoder-interpolation).

The revolutional feed rate is calculated from this number and the weighting (S-0-0077, S-0-0078). ◦b) 0 1 0 rotary weighting: S-0-0079 defines the rotation resolution (encoder-interpolation). The revolutional feed rate has to be set manually. ◦S-0-0044, bits 0 to 2 specify the weighting type of the velocity data. Supported features: ◦a) 0 0 1 translatory weighting: The velocity control value is converted to a velocity in encoder increments per time, based on the revolutional feed rate and the rotation resolution. This information is offset against the velocity resolution (S-0-0045, S-0-0046) and output. PLC Library Hydraulics 230 Version: 1.4