MC_ReadCamTableCharacteristics
The function block MC_ReadCamTableCharacteristics is used to calculate and read the characteristic parameters of a motion function. This includes minimum and maximum values of position, velocity, acceleration and jerk.
Inputs
VAR_INPUT
Execute : BOOL;
CamTableID : MC_CAM_ID;
END_VAR
Name | Type | Description |
---|---|---|
Execute | BOOL | The command is executed with a rising edge at Execute input. |
CamTableId | MC_CAM_ID | Table ID |
Options | ST_ReadCamTableCharacteristicsOptions | Reserved for future extensions |
Inputs/outputs
VAR_IN_OUT
CamTableCharac : MC_TableCharacValues;
END_VAR
Name | Type | Description |
---|---|---|
CamTableCharac | MC_TableCharacValues | Data structure with characteristic parameters of the motion function |
Outputs
VAR_OUTPUT
Done : BOOL;
Busy : BOOL;
Error : BOOL;
ErrorID : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
Done | BOOL | Becomes TRUE, if the calculation was carried out successfully. |
Busy | BOOL | The Busy output becomes TRUE when the command is started with Execute and remains TRUE as long as the command is processed. If Busy becomes FALSE again, the function block is ready for a new order. At the same time one of the outputs, Done or Error, is set. |
Error | BOOL | Becomes TRUE, as soon as an error occurs. |
ErrorID | UDINT | If the error output is set, this parameter supplies the error number. |