FB_SmartInfeedModuleVisController

 

FB_SmartInfeedModuleVisController - General Information

Overview

Type:

Function Block

Available as of:

V1.0.0.0

Inherits from:

-

Implemented:

-

Versions:

Current version

Task

The SmartInfeed module VisController manages the visualizations of the modules of the SmartInfeed module.

Description

The VisController determines the data which are to be displayed in the visualization. It registers the entries of the visualization and transfers them to the interface of the module.

The POU manages all modules of type SmartInfeedModule. They only must be instanced once in the project.

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_udiCurrentJobTarget

UDINT

The number of the module selected for jogging.

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 accepts user commands.

FALSE: The POU is not ready to accept user commands.

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value not equal to ET_Diag.Ok corresponds to an error message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Error message

q_sMsg

STRING[80]

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

q_diSetAsCurrentModule

DINT

The number of the module to be selected.

q_udiSetAsJogTarget

UDINT

The number of the module to be selected for jogging.

Input/Output

Data type

Description

iq_stExceptionList

TPL.ST_ExceptionList

The exception list of the machine

iq_stLogDataList

TPL.ST_LogDataList

The logger list of the machine

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Disabled

5

The POU is disabled.

OK

Working

7

The POU is active.

InputParameterInvalid

CurrentAddItfInvalid

95

The current additional interface is invalid.

InputParameterInvalid

CurrentStandardItfInvalid

94

The current standard interface is invalid.

CurrentAddItfInvalid

Enumeration name:

CurrentAddItfInvalid

Enumeration value:

95

Description:

The current additional interface is invalid.

Issue

Cause

Solution

-

An invalid interface has been transferred at the i_dwCurrentAddItf input (0).

Make sure that the address of the additional interface of the selected module is transferred at the i_dwCurrentAddItf input.

CurrentStandardItfInvalid

Enumeration name:

CurrentStandardItfInvalid

Enumeration value:

94

Description:

The current standard interface is invalid.

Issue

Cause

Solution

-

An invalid pointer has been transferred at the i_pstCurrentStandardItf input (0).

Make sure that the address of the standard interface of the selected module is transferred at the i_pstCurrentStandardItf input.

Disabled

Enumeration name:

Disabled

Enumeration value:

5

Description:

The POU is disabled.

The module is disabled and does not execute any actions.

Working

Enumeration name:

Working

Enumeration value:

7

Description:

The POU is active.

The VisController manages the data for the visualization.