ScopeSaveAs

The function block "ScopeSaveAs" allows a Scope View Configuration Project (*.scp ) to be saved under the specified file name. Internally, an instance of the ADSWRITE function block is called.
VAR_INPUT
VAR_INPUT
bExecute :BOOL;
sFilePath :STRING;
tTimeout :TIME := DEFAULT_ADS_TIMEOUT;
END_VAR
bExecute:: The function block is activated by a positive edge at this input.
sFilePath:: The full path with the name of the file (e.g.: 'C:\TwinCAT\Scope\Achse1.scp' ).
tTimeout:: Maximum time allowed for the execution of the function block.
VAR_OUTPUT
VAR_OUTPUT
bBusy :BOOL;
bError :BOOL;
iErrorId :UDINT;
END_VAR
bBusy: When the function block is activated this output is set. It remains set until and acknowledgement is received.
bError: If an ADS error should occur during the transfer of the command, then this output is set once the bBusy output is reset.
iErrorId: Supplies the ADS error number when the bError output is set.
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v2.8.0 Build > 740 TwinCAT v2.9.0 Build > 925 | PC or CX (x86) | TcUtilities.Lib ( Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically ) |
TwinCAT v2.10.0 Build >= 1301 | CX (ARM) |