FB_XmlSrvObfuscationExport

The FB_XmlSrvObfuscationExport function block decrypts an obfuscated XML file and stores it unencrypted on the hard disk.
Inputs
VAR_INPUT
sNetId : T_AmsNetId;
ePath : E_OpenPath:= PATH_GENERIC;
sSrcPath : T_MaxString;
sDstPath : T_MaxString;
bExecute : BOOL;
tTimeout : TIME := T#1m0s0ms;
END_VARName | Type | Description |
|---|---|---|
sNetId | String containing the network address of the TwinCAT 3 XML Server. For the local computer (default) an empty string may be specified. | |
ePath | 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 | Path of the encrypted file. | |
sDstPath | 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. |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
nErrId : UDINT;
END_VARName | 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 |