FB_ModuleVisController

 

FB_ModuleVisController - General Information

Overview

Type:

Function block

Available as of:

V1.0.4.0

Versions:

Current version

Task

Support to display MultiBelt modules in the visualization of the template.

Description

To fully display the MultiBelt module in the template visualization, an instance of the FB_ModuleVisController POU has to be integrated into the SR_VisControl() program (see chapter Inserting a new MultiBelt Equipment Module).

Interface

Input

Data type

Description

i_xEnable

BOOL

A rising edge FALSE -> TRUE activates the POU, a falling edge TRUE -> FALSE deactivates the POU.

A deactivated POU does not execute any actions.

i_pstMachineStandardItf

POINTER TO TPL.ST_StandardModuleInterface

The address of the machine interface must be transferred to this input.

i_pstCurrentStandardItf

POINTER TO TPL.ST_StandardModuleInterface

The address of the interface of the selected module must be transferred to this input.

i_dwCurrentAddItf

DWORD

The address of the additional interface of the selected module must be transferred to this input.

i_xUpdateData

BOOL

TRUE: Another module has been selected.

i_udiCurrentJogTarget

UDINT

Not used.

Output

Data type

Description

q_xActive

BOOL

TRUE: The POU is active and has to be executed further.

FALSE: The POU is inactive.

q_xReady

BOOL

TRUE: The POU is ready to operate and can accept user commands.

FALSE: The function block is not ready to accept user commands.

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

q_sMsg

STRING[80]

Event-triggered message which gives more detailed information on the diagnostic state.

q_udiSetAsCurrentModule

UDINT

The number of the module that shall be selected.

q_udiSetAsJogTarget

UDINT

Not used.

Input/Output

Data type

Description

iq_stExceptionList

TPL.ST_ExceptionList

 

iq_stLogDataList

TPL.ST_LogDataList

 

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Disabled

29

The POU is disabled.

Disabled

Enumeration name:

Disabled

Enumeration value:

29

Description:

The POU is disabled.

The function block is disabled and executes no actions whatsoever. i_xEnable and q_xActive are set to FALSE