FC_UpdateSingleSubModuleInterface

 

FC_UpdateSingleSubModuleInterface - General Information

Overview

Type:

Function

Available as of:

V1.1.0.0

Support for:

PacDrive3 pilot template architecture

Versions:

Current version

Task

Function for updating the sub module add interface structure.

Description

The function updates a DWORD value in an array. The value entered in this field is the address of the AxisModuleInterface of an AxisModule. The address is written to the i_udiSubModule­Constant position in the array.

Any interface can be accessed via this array since the addresses of other modules can also be entered. You can distinguish between the different types of interface using ModuleType contained in the standard interface.

This update must be performed if an online change takes place. If the input i_xOnlineChange is set TRUE it is recognized by the function block. As default, the output of the TPL.FB_DetectOn­lineChange function block should be connected to the i_xOnlineChange input.

Interface

Input

Data type

Description

i_xOnlineChange

BOOL

The sub module add interface is updated when true

i_pdwSubModuleAddInterfaces

POINTER TO DWORD

Specifies a pointer to the sub module add interface

i_udiSubModuleConstant

UDINT

Specifies the position in the sub module add interface to place the axis interface

Input/Output

Data type

Description

iq_stAxisModuleItf

ST_ModuleInterface

Specifies an axis’s interface structure to add to the sub module add interface