FC_SendCmd - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

Send CMDs and / or StartSteps for CMD tables to a module.

Description

If the iq_xAction input becomes True and the CMD and StartStep in StandardModuleInterface are 0, the iq_diCMD and iq_diStartStep inputs are copied into the corresponding variables of StandardModuleInterface and iq_xAction is set to FALSE.

An alternative verification is made if the iq_xAction and iq_xOverwrite inputs are activated. Whether or not the iq_diCMD or iq_diStartStep inputs are equal to the corresponding variables in StandardModuleInterface is checked. If the condition is fulfilled, then the iq_diCMD and iq_diStartStep inputs are copied into the corresponding variables of StandardModuleInterface and iq_xAction is set to FALSE.

Interface

Output

Data type

Description

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

Input/Output

Data type

Description

iq_xAction

BOOL

TRUE: The command shall be issued.

iq_xOverwrite

BOOL

TRUE: The active command shall be overwritten.

iq_diCmd

DINT

The command to be issued

iq_diStartStep

DINT

The start step for the command

iq_stStandardModuleItf

ST_StandardModuleInterface

The interface of the module to be activated

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

Command was successfully send.