FB_TableWriter - HeaderAddColumn (Method)

Overview

Type:

Method

Available as of:

1.1.2.0

Versions:

Current version

Task

Adding a column to the table including its configuration and label

Before adding a column, writing of the table header data must be prepared using HeaderStart(). After inserting all table header data, writing must be finished using HeaderFinish().

Interface

Input

Data type

Description

i_sName

STRING(Gc_udiTableWriterMaxNameLength)

Column attribute name

i_sTextEnglish

STRING(80)

Column label English

i_sTextGerman

STRING(80)

Column label German

i_uiWidth

UINT

Column width in PacDrive Diagnostics

Output

Data type

Description

q_etDiag

GD.ET_Diag

General, library-independent statement on the diagnostic.

A value unequal to GD.ET_Diag.Ok corresponds to an error message.

q_etDiagExt

ECO.ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = GD.ET_Diag.Ok -> status message

q_etDiag <> GD.ET_Diag.Ok -> error message

q_sMsg

STRING(80)

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

Return Value

Data type

Description

UDINT

>0: number of the created column