This function will update the default module interface for the machine.
The command tables list is transferred via the i_pstListOfCmdTables input. The structure is passed as a pointer so only the structure’s starting address is passed instead of the whole structure. Command tables are added to the command tables list with the FC_UpdateCmdTableListElementSimpleTen function.
The SubModuleAddInterface is specified with the i_pdwSubModulesAddItf input. The AXM.FC_UpdateSubModuleInterfaceEight function is used to update each axis in the SubModuleAddInterface.
The axes are specified with the i_pstSubModulesItf input. The structure is passed as a pointer so only the structure’s starting address is passed instead of the whole structure. The AXM.FC_UpdateSubModuleInterfaceEight function is used to update each axis in the SubModuleInterface.
The pointers within the SubModuleInterface structure are updated if the i_xOnlineChange input is TRUE. The input must be set TRUE, if a online change is recognized. It is easiest to do this using the following function:
The StandardModuleInterface for the machine is specified with the iq_stMachineItf input.
Input |
Data type |
Description |
---|---|---|
i_xOnlineChange |
BOOL |
The machine interface is updated whenTRUE |
i_udiNumberOfSubModules |
UDINT |
Specifies the quantity of sub-modules contained by this module |
i_pstSubModulesItf |
POINTER TO ST_StandardModuleInterface |
Specifies the pointer to the default module interface for the axes |
i_pdwSubModulesAddItf |
POINTER TO DWORD |
Specifies the pointer to the sub module add interface |
i_udiNumberOfCmdTables |
UDINT |
Specifies the quantity of command tables |
i_pstListOfCmdTables |
POINTER TO ST_CmdTable |
Specifies the pointer to the command table list |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General, library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> diagnostic message |
Input/Output |
Data type |
Description |
---|---|---|
iq_stMachineItf |
ST_StandardModuleInterface |
Specifies the default module interface for the machine |