FC_NextStep

 

FC_NextStep - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

Function for setting a command within a command table that shall be sent to the module after the previous command has been processed.

Description

The function helps to initialize tables easily.

The function writes the value of iq_udiStepIndex to the iq_iStepIndex variable and adds 1. The slave field index of the table is assigned with this variable;

10 is added to the value of iq_diStep in the iq_diStep variable. It is written back in iq_diStep. This is the identification of an additional step for the FB_ModuleController.

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_udiStepIndex

UDINT

Input/output for the variable for managing the index within the command table.

iq_diStep

DINT

Input/output for the variable for managing the step number of the command to be entered.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The applied variables for managing the index and the step number successfully have been prepared for the entry of the command, which is send to the respective module after the previous command has been processed.