FB_CammingLookUp
This class is able to dynamically allocate memory and make it available as a table. Similarly, this function block acts as a LookUp table for the cam plate core function or the transformation table of a transformation axis.
Syntax:
FUNCTION_BLOCK FB_CammingLookUp EXTENDS FB_MessageBase
Initialization parameters of the FB_init constructor
Name | Type | Description |
---|---|---|
Points | INT | Defines the number of points = 0 enables subsequent assignment via |
OpMode | Defines the operation mode of the LookUp table = |
Properties
Name | Type | Access | Description |
---|---|---|---|
Equidistance | BOOL | Get, Set1 | In equidistant mode, the table assumes equal distances between the |
Interpolation | Get, Set1 | Interpolation mode of the table | |
InvalidPoint | BOOL | Get | Is set by a call to |
MinGuidingValue | LREAL | Get, Set | Smallest possible value for the |
MaxGuidingValue | LREAL | Get, Set | Largest possible value for the |
Overrun | BOOL | Get | Additional information on InvalidPoint: TRUE -> InvalidPoint is above the definition range. FALSE -> InvalidPoint is below the definition range. |
Points | LREAL | Get | Number of available points in the table |
Valid | BOOL | Get | The configuration of the table is validated and ready for use. |
OpMode 2 | Get | Operation mode of the table |
1Must be set before determining the number of points
2Obsolete
Methods
Name | Description |
---|---|
Returns an equidistant point in the table. | |
Returns any point consisting of a master and a slave value. | |
Translates a slave value to a matching master value. | |
Translates a master value to a matching slave value. | |
Sets an equidistant point in the table. | |
Sets any point consisting of a master and a slave value. | |
Defines the number of assignable points once. | |
Sets the master limit values of the table | |
Returns the master limit values of the table | |
Returns the number of points available in the table | |
GetValid()2 | Checks the table for validity |
2Obsolete
Interfaces
Type | Description |
---|---|
I_CammingLookUp | Standard interface on FB_CammingLookUp |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.55 | PC or CX (x64, x86) | Tc3_PlasticFunctions (>= v12.6.1.0) |