Function for initialization of an axis that is controlled by function block AXM.FB_AxisModuleTpi.
The axis specified with iq_stSubModuleItf is given a text name via this function. The name is combined with the associated layer’s name to identify detected errors, log entries, and result text of other function blocks.
The axis’s logger can also be enabled with the i_xLogEnable input. What is to be logged is specified with the i_wLogDataFilter input. This input is definied and every bit position stands for a specific event to record. The ET_LogDataFilter enumeration type can be used to specify which events are to be logged as follows:
A complete filter can be setup by combining the individual filters with an “OR” statement or by using the FC_InitLogDataFilter function as follows:
Input |
Data type |
Description |
---|---|---|
i_sName |
STRING[80] |
Text name of the axis |
i_xLogEnable |
BOOL |
Activating the logger function. |
i_wLogDataFilter |
WORD |
Specifies the events to be recorded. |
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_stSubModuleItf |
The default module interface of the associated axis |
|
iq_stMachineItf |
The default module interface of the layer containing the axis |