Machine Expert > V2.1 > Software > Bibliotecas, Plantillas y Ejemplos > Bibliotecas > Application Libraries > PD_Template Library Guide > Functions > FC_FirstCmdTable > FC_FirstCmdTable - General Information

FC_FirstCmdTable - General Information

Overview

Type:

Function

Available as of:

V1.0.4.0

Task

The function determines the first table of a list of command tables.

Description

The function helps to easily initialize a list of command tables.

The function writes a 1 into the iq_udiTableIndex variable. This is the designation of the first command table 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_udiTableIndex

UDINT

Input/output for the variable for managing the index of the command table within a list of command tables.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value

Description

OK

Ok

0

Ok

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Ok

The applied variable for managing the index of a command table within a list of command tables was successfully prepared for the entry of the first command table.