addEx2

[ Function ]

public static addEx2(
    symbolName: string,
    settings: TcHmi.Server.Historize.IEntrySettings,
    options: TcHmi.Server.Historize.ISetting | null,
    requestOptions: TcHmi.Server.IRequestOptions | null,
    callback?: null | ((this: void, data: TcHmi.IResultObject) => void) = null
): TcHmi.IErrorDetails;

Adds an icon to the server's Historize configuration.

Parameter

Name

Type

Description

symbolName

string,

The name of the symbol.

settings

TcHmi.Server.Historize.IEntrySettings

The settings of the entry in the Historize configuration.

options

TcHmi.Server.Historize.ISetting, null

Options

requestOptions

TcHmi.Server.IRequestOptions, null

Server request options

callback [ optional ]

null | (data: TcHmi.IResultObject) => void

Asynchronous callback function that is triggered once the action has been completed.

Return value

Type

Description

TcHmi.IErrorDetails

Returns confirmation as to whether the operation was successfully sent.

addEx2 1:

Available from version 1.10.670.0

Example – JavaScript

var settings = {
    INTERVAL: 'PT0.1S',
    MAXENTRIES: 10000,
    ROWLIMIT: 10000,
    RECORDINGENABLED: true,
};
TcHmi.Server.Historize.addEx2('PLC1.MAIN.nInt2', settings, { domain: 'TcHmiSqliteHistorize' }, {timeout: 2000}, function (data) {
    if (data.error === TcHmi.Errors.NONE) {
        // Success
    } else {
        // Error
    }
});