FC_UpdateMachineInterface - General Information

Overview

Type:

Function

Available as of:

V1.1.0.0

Support for:

PacDrive pilot template architecture

Task

Function for updating the Default Module interface.

Description

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.

Interface

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

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_stMachineItf

ST_StandardModuleInterface

Specifies the default module interface for the machine

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