ScopeGetRecordLen
The function block "ScopeGetRecordLen" allows the recording time for the Scope View that is currently configured in TwinCAT Scope View to be determined. Currently this function can only be used if only one view (such as Scope View 1) is active in the application. Internally, an instance of the ADSREAD function block is called.
VAR_INPUT
VAR_INPUT
bExecute :BOOL;
END_VAR
bExecute:: The function block is activated by a positive edge at this input.
VAR_OUTPUT
VAR_OUTPUT
bBusy :BOOL;
bError :BOOL;
iErrorId :UDINT;
fRecordLen :LREAL;
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.
fRecordLen: The recording time in seconds for the Scope View that is currently configured.
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v2.7.0 | PC or CX (x86) | Standard.Lib; PLCSystem.Lib; TcPLCAds.Lib; PLCHelper.Lib; TcPlcUtilities.Lib |
TwinCAT v2.8.0 | PC or CX (x86) | TcUtilities.Lib ( Standard.Lib; TcBase.Lib; TcSystem.Lib are included automatically ) |
TwinCAT v2.10.0 Build >= 1301 | CX (ARM) |