FC_SetCamUserTableId - General Information
Type: |
Function |
Available as of: |
V1.1.0.0 |
Support for: |
PacDrive3 pilot template architecture |
Versions: |
Current version |
Function for initialization of an axis that is controlled by the FB_AxisModule function block.
This function is used to assign a table identification number to a MultiCam table. The axis interface structure, used to hold parameters for an axis, contains five MultiCam tables. Each table requires a table identification number that allows the table to be selected by using this number. The MultiCam tables in the axis interface structure are stored in an array that is index from 0 to 4. The i_etParId input is used to select one of these tables and the i_diUserTableId input is used to assign an identification number to the selected table.
The ET_ParId enumeration type can be used to select one of the MultiCam tables. The names in the enumeration represent five typical cam profiles.
oAXM.ET_ParId.Idle := 0
oAXM.ET_ParId.Start := 1
oAXM.ET_ParId.Cont := 2
oAXM.ET_ParId.Stop := 3
oAXM.ET_ParId.User := 4
The table identification numbers are typically picked to match the index of the MultiCam tables so table 3 is given an identification number of 3 and so forth. The FC_InitCamPoint function is used to assign, for instance, cam information to MultiCam tables.
The i_diTableSelectNr input of the FC_InitCamParameter function is used to select one of the MultiCam tables as the default table to use when an axis is placed in one of the camming operating modes.
The value of the function is set equal to the assigned table identification number.
Input |
Data type |
Description |
---|---|---|
i_etParId |
ET_ParId |
Selects one of the five MultiCam tables (0 to 4) |
i_diUserTableId |
DINT |
Specifies the number that will be used to identify the selected MultiCam table |
Output |
Data type |
Description |
---|---|---|
FC_SetCamUserTableId |
DINT |
Indicates the table identification number of the selected table |
Input/Output |
Data type |
Description |
---|---|---|
iq_stAxisInterface |
ST_ModuleInterface |
Specifies the axis interface structure of the associated axis |