FB_XmlSrvObfuscationExport

FB_XmlSrvObfuscationExport 1:

The FB_XmlSrvObfuscationExport function block decrypts an obfuscated XML file and stores it unencrypted on the hard disk.

FB_XmlSrvObfuscationExport 2: Inputs

VAR_INPUT
    sNetId      : T_AmsNetId;
    ePath       : E_OpenPath:= PATH_GENERIC;
    sSrcPath    : T_MaxString;
    sDstPath    : 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.

ePath

E_OpenPath

A variable of this type can be used to select a generic or TwinCAT system path on the target device for opening a file. The default is PATH_GENERIC.

sSrcPath

T_MaxString

Path of the encrypted file.

sDstPath

T_MaxString

Target path of the unencrypted file.

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_XmlSrvObfuscationExport 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