FC_InitModuleStandardInterface - General Information

Overview

Type:

Function

Available as of:

V1.1.0.0

Support for:

PacDrive pilot template architecture

Task

Function for initialization of an axis that is controlled by function block AXM.FB_AxisModuleTpi.

Description

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:

Interface

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

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

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

ST_StandardModuleInterface

The default module interface of the associated axis

iq_stMachineItf

ST_StandardModuleInterface

The default module interface of the layer containing the axis

Return Value

Data type

Description

BOOL

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok