ComputeCharacteristics
Computes cam table characteristics such as extreme slave dynamics for a given nominal master velocity.
Returns 0 on success or a non-zero error code.
Syntax
Definition:
METHOD ComputeCharacteristics : UDINT
VAR_INPUT
NominalMasterVelocity : LREAL;
Destination : Reference To CamCharacteristics;
END_VAR
Inputs
|
Name |
Type |
Description |
|---|---|---|
|
NominalMasterVelocity |
LREAL |
Nominal master velocity used for computing absolute slave dynamics. |
|
Destination |
Reference To CamCharacteristics |
Reference to a CamCharacteristics structure to receive the computed results. |
Return value
UDINT
Possible error codes
For this function block, the following values, among others, are possible for the ErrorId output:
Error(Hex) | Error(Dec) | Error type | Description |
|---|---|---|---|
0x8120 | 33056 | Environment | Invalid configuration for object (e.g., in TwinCAT 3 Engineering (XAE)). The static configuration of the object (parameters, init values, linked symbols) is incomplete or invalid, so the object cannot reach the target state. |
0x8189 | 33161 | Function Block | Invalid reference passed to function block. An invalid reference (or pointer) was used in a function block call. This can happen if a reference type is used before it was initialized. |
An overview of all NC error codes can be found here: