FB_XmlSrvEnableObfuscation

FB_XmlSrvEnableObfuscation 1:

The FB_XmlSrvEnableObfuscation function block enables the obfuscation mode. XML files are then only stored on the hard disk with AES-256 encryption.

FB_XmlSrvEnableObfuscation 2: Inputs

VAR_INPUT
    sNetId      : T_AmsNetId;
    sUserName   : T_MaxString;
    sPassword   : T_MaxString;
    bExecute    : BOOL;
    tTimeout    : TIME := T#1m0s0ms;
END_VAR

Name

Type

Description

sNetId

T_AmsNetId

String containing the network address of the TwinCAT 3 XML Server. For the local computer (default) an empty string may be specified.

sUserName

T_MaxString

Username

sPassword

T_MaxString

Password

bExecute

BOOL

The function block is activated by a positive edge at this input.

tTimeout

TIME

Maximum time allowed for the execution of the function block.

FB_XmlSrvEnableObfuscation 3: Outputs

VAR_OUTPUT
    bBusy   : BOOL;
    bError  : BOOL;
    nErrId  : UDINT;
END_VAR

Name

Type

Description

bBusy

BOOL

This output is set when the function block is activated and remains set until feedback is received.

bError

BOOL

This output is set up after the bBusy output has been reset if there has been an error in transmission of the command.

nErrId

UDINT

If the bError output is set, this parameter returns the TwinCAT 3 XML Server error number.

Requirements

Development Environment

Target platform

PLC libraries to include

TwinCAT v3.1 Build 4024.55

PC or CX (x86, x64, Arm®)

Tc2_XmlDataSrv