MC_CamTableSelect
The MC_CamTableSelect FB is used to determine the CamTableID of a cam table that is referenced by the filename of the cam table. The evaluated structure CamTableID can be used to run a MC_CamIn instance or other FBs with such an input.
Block diagram
Parameters of the FB
VAR_IN_OUT | |||
| Master | AXIS_REF | Axis reference to the master axis. |
| Slave | AXIS_REF | Axis reference to the slave axis. |
VAR_INPUT | |||
| Execute | BOOL | Selection at rising edge. |
| CamTable | MC_CAM_REF | Reference to cam table description. |
VAR_OUTPUT | |||
| Done | BOOL | If TRUE, identification structure for cam table is ready to use and valid. |
| Error | BOOL | Indicates if an error has occurred. |
| ErrorID | WORD | Error identification. |
| CamTableID | MC_CAM_ID | Identification structure of referenced cam table |
Behavior of the FB
- If filename and cam table identification number is given by input structure ‘CamTable’, evaluation of CamTableID output structure by given filename has higher priority. Then function block evaluates the cam table ID.
- Commanding is possible at any time regardless of the state of the master or slave axis.