Functions, function blocks and types (from V3.0)
All the functions, function blocks and data types present in the library are listed here. |
You will find answers to frequently asked questions and notes on the use of the library, setting up, problem analysis and example projects in the Knowledge Base.
Some of the components listed here are not intended to be used by an application. Their presence, interface and behavior is therefore not guaranteed. Because, however, a TwinCAT PLC library is strictly open, it is not possible to hide these internal components. It is, nevertheless, essential to avoid calling these components, identified with (internal use only) or (not recommended), directly from an application. If one of these components would, in practice, be useful for you, please make contact with our Support Department. We will then examine the possibility of making the function block available to you, independently of the library, and for you to then take the responsibility for using it.
If the library contains function blocks, types or constants that are not listed in the documentation, then these are elements that have not yet been approved, and are the subject of current software maintenance and development work. These elements must never be directly used in an application, because they are, as a general rule, not yet tested.
The hydraulic library only offers a restricted range of functions, even in connection with electrical drives. TwinCAT NC PTP, NC I and CNC offer a significantly broader spectrum and more comprehensive support for commissioning and diagnosis. |
A number of libraries are available, which deal with a typical axis configuration or special functionalities. These libraries require the TcPlcHydraulics library and have to be ordered separately. |
Name | Description |
---|---|
TcPlcLibHydraulics_30_2R2Vgantry.LIB | in preparation |
TcPlcLibHydraulics_30_4R3Vgantry.LIB | in preparation |
PLC open Motion Control
The function blocks listed here are oriented towards:
Technical Specification
PLCopen - Technical Committee 2 - Task Force
Function blocks for motion control
Part 1 Version 1.1 and Part 2 Version 0.99F (definition not yet finalized)
The names of these function blocks begin with MC_ and end with _BkPlcMc.
Parts of the PLCopen definitions have not yet been finalized. Future versions of the library may be subject to modifications. |
- Names, behavior or even existence of functions, function blocks or derived data types
- Names, behavior, types or existence of input or output signals
Administrative Function blocks
Name |
Description |
---|---|
The function block initializes a variable of type ST_TcPlcMcCamId, thereby preparing a cam plate for the coupling of two axes. | |
Function block to control an external actuator. | |
The actual position of an axis is determined. | |
The actual force or the actual pressure of an axis is determined. | |
The actual velocity of an axis is determined. | |
The current error code of an axis is found. | |
The boolean parameters of an axis are read. | |
The current state of a digital output of a cam controller is determined. | |
The non-boolean parameters of an axis are read. | |
The state of the axis is decoded. | |
The axis is placed in a state ready for operation. | |
The axis is placed in a state ready for operation and is stationary. | |
The axis override is set. | |
The actual position of the axis is set. | |
The referencing flag of the axis is defined. (Function is not defined by PLCopen) | |
The boolean parameters of an axis are written. | |
The current state of a digital output of a cam controller is defined. | |
The non-boolean parameters of an axis are written. |
Motion Function Blocks, Single Axis
Name | Description |
---|---|
Generation of software cams as a function of position, direction of movement and velocity of an axis. | |
Stopping a movement without reaching the target position. (Function is not defined by PLCopen) | |
Stopping a movement without reaching the target position. | |
Initiation and monitoring of homing. | |
Stopping a movement without reaching the target position. (Function is not defined by PLCopen) | |
Start and monitoring of a positioning process at a specifiable velocity to absolutely stated target co-ordinates. | |
Starting and controlling of an axis movement with a proportional control unit. (Function is not defined by PLCopen) | |
Start and monitoring of a positioning process at a specifiable velocity over an absolutely stated distance. | |
Start and monitoring of a positioning process at a specifiable velocity but with no specified target. | |
Stopping of a movement with a pure time ramp. | |
Stopping a movement without reaching the target position. |
Motion Function blocks, Multiple Axis
Name |
Description |
---|---|
The function block starts and monitors a cam plates coupling between two axes. | |
The function block releases a cam plate coupling between two axes. | |
Start and monitoring of the gear coupling of two axes. | |
On-the-fly gear coupling of two axes. | |
Cancelling the gear coupling of two axes. |
System Function Blocks
Name | Description |
---|---|
Preparation of the control value of the axis for output on a hardware module, mapping information. | |
Determination of the actual position of the axis from the input information of a hardware module, mapping information. | |
Adaptation of the generated control value to the special features of the axis. | |
Adjustment of the generated control value to the special features of the axis, taking into account a characteristic curve. | |
Position value generation and position control of the axis. | |
Control value generation for the axis. | |
Position control of the axis. |
System function blocks, other actual values
Name |
Description |
---|---|
Determination of the differential actual force of an axis. | |
Determination of the one-sided actual force of an axis. | |
Determination of the differential actual pressure of an axis. | |
Determination of the one-sided actual pressure of an axis. |
System Function Blocks, Parameter
Name | Description |
---|---|
The application is given the capacity to function as an ADS server. | |
The function block decodes ADS read accesses for an ADS server. | |
The function block decodes ADS write accesses for an ADS server. | |
The application is given the capacity to function as an ADS server. | |
Loading the label texts for the client-specific axis parameters from a file. | |
Load the parameters for an axis from a file. | |
Write the parameters for an axis into a file. | |
Delayed writing of the axis parameters. | |
Reading the contents of a register from the EL terminal, which is used as drive interface for the axis. | |
Reading the contents of a register from the EL terminal, which is used as encoder interface for the axis. | |
Reading the contents of a register from the KL terminal, which is used as drive interface for the axis. | |
Reading the contents of a register from the KL terminal, which is used as encoder interface for the axis. | |
Writing a parameter set into the register of a KL terminal, which is used as drive interface for the axis. | |
Writing a parameter set into the register of a KL terminal, which is used as encoder interface for the axis. | |
Writing the contents of a register into the EL terminal, which is used as drive interface for the axis. | |
Writing the contents of a register into the EL terminal, which is used as encoder interface for the axis. | |
Writing the contents of a register into the KL terminal, which is used as drive interface for the axis. | |
Writing the contents of a register into the KL terminal, which is used as encoder interface for the axis. | |
The function block exports a linearization table to a file in ASCI format. | |
The function block exports a linearization table to a file in binary format. | |
The function block imports a linearization table from a file in ASCI format. | |
The function block imports a linearization table from a file in binary format. |
System Function Blocks, Controllers
Name | Description |
---|---|
Automatic zero balance. | |
Controller for pressure build-up control. | |
Extended controller for a pressure controller with a build-up action. | |
MC_AxCtrlPullbackOnPressure_BkPlcMc | Controller for pressure displacement control. |
Controller for pressure relief control. | |
Monitoring the movement of a stepper motor axis. | |
MC_AxCtrlVelocity_BkPlcMc | Controller for the axis velocity. |
MC_AxCtrlVeloMoving_BkPlcMc | Controller for the axis velocity. |
System Function blocks, TableFunctions
Name |
Description |
---|---|
Reading the content of table from a text file. | |
Reading the content of table from a binary file. | |
Function block for determining the slave values assigned to a master value with the aid of a table. | |
Writing the contents of a table to text file. | |
Writing the contents of a table to a binary file. |
System Function blocks, Message Logging
Name |
Description |
---|---|
An axis-related message is entered in the LogBuffer of the library. | |
Clear and initialize all entries in the LogBuffer. | |
A message is entered in the LogBuffer of the library. | |
Ensure the minimum number of free messages in the LogBuffer of the library. | |
Reading a message from the LogBuffer of the library. | |
Transferring messages from the LogBuffer of the library into the Windows event viewer. |
System function blocks, runtime functions
Name | Description |
---|---|
Monitoring of the distance between the referencing cam and zero pulse. | |
Processing of the command buffer. | |
The function simplifies setting and deleting of a protective function in the status double word of an axis. | |
(not recommended) The axis is placed into an error state. | |
Monitoring the movement of an axis. | |
Direct output of a control value. | |
Supplying an axis with command variables, which do not originate from the axis' own generator. | |
Calls the usual sub-components for an axis (encoder, generator, finish, drive). | |
Automatic determination of axis parameters. | |
MC_AxUtiAutoIdentSlave_BkPlcMc | in preparation: Automatic determination of slave axis parameters. |
Determination of the derivative of value through numeric differentiation over than one cycle. | |
Calculation of a first-order low-pass. | |
Calculation of a second-order low-pass. | |
Generation of a rise-limited ramp. | |
Determination of a sliding average value. | |
Initialization and monitoring of axis components. | |
A function generator. | |
Updates the operating frequency of a time base for one or several function generators. | |
Updates a time base for one or several function generators. |
Data types: Enumerations
Name |
Description |
---|---|
This enumeration returns codes for the internal states of the control value generators. | |
The constants in this enumeration are used to identify the hardware used to output the control values for an axis. | |
The constants in this enumeration are used to identify the hardware used to acquire the actual values for an axis. | |
This enumeration supplies codes for the current state of an axis. | |
This enumeration supplies codes for the referencing method used by an axis. | |
The constants listed here are used for numbering parameters. | |
The constants in this list determine which actual value in the ST_TcHydAxRtData structure of the axis is to be updated with the result of a pressure or force measurement. | |
The constants listed here are used for identifying control value generators. | |
In preparation: The constants in this list are used to identify buffered axis commands. | |
The constants in this list are used for controlling blending according to PLC Open. | |
This enumeration supplies codes for the direction of movement if this information is not contained in other data or cannot be in determined on the basis of the situation. | |
This enumeration returns codes for specification of the referencing method. | |
The constants in this list are used for identifying the modes during axis startups. |
Data types: Structures
Name |
Description |
---|---|
A variable of this type contains all the necessary variables or pointers to variables that are associated with an axis. | |
A variable of this type is transferred to an MC_DigitalCamSwitch_BkPlcMc function block. | |
A variable of this type contains the description of a cam plate prepared for coupling. | |
A variable of this type contains the description of a provided cam plate. | |
A variable of this type contains output data of an MC_DigitalCamSwitch_BkPlcMc function block. | |
A variable of this type contains parameters for defining the output signals of a function generator. | |
A variable of this type contains parameter for defining a time base for a function generator. | |
A variable of this type contains the parameters for an MC_AxUtiAutoIdent_BkPlcMc function block. | |
A variable of this type contains label texts for the client-specific axis parameters. | |
A variable of this type contains all the parameters for an axis. | |
A variable of this type contains the runtime data for an axis. | |
A variable with this structure forms the LogBuffer of the library. | |
A variable with this structure contains a message of the LogBuffer of the library. | |
This structure contains the input image variables of an axis. | |
This structure contains the output image variables of an axis. | |
This structure contains a parameter set for a KL terminal. | |
This structure contains a parameter for a KL terminal. | |
In preparation. |