MC_CamTableSelect
The MC_CamTableSelect FB is used to determine the CAM table ID by its filename. This can then be used as the input for the MC_CamIn function block.
Blockdiagramm

Parameters of the FB
| VAR_IN_OUT | ||
| Variable name | Data type | Description | 
| Master | AXIS_REF | Axis reference of the master axis. | 
| Slave | AXIS_REF | Axis reference of the slave axis | 
| CamTable | MC_CAM_REF | This structure contains the filename of the CAM table. | 
| VAR_INPUT | ||
| Variable name | Data type | Description | 
| Execute | BOOL | The CAM table identifier is supplied on the rising edge. | 
| VAR_OUTPUT | ||
| Variable name | Data type | Description | 
| Done | BOOL | The CAM table identifier was supplied. | 
| Error | BOOL | Is TRUE when an error occurs in the FB. | 
| ErrorID | WORD | Error code. | 
| CamTableID | MC_CAM_ID | CAM table identifier | 
Behaviour of the FB
- If the filename and therefore the CAM table ID are assigned in the “CamTable” input, the filename has a higher priority, i.e. the associated CAM table ID is determined.
- Commanding is possible at any time regardless of the state of the master or slave axis.