TwinCAT ADS Interface: Scope

 

The TwinCAT Scope provides an ADS-interface to act like an ADS-device. The commands described here can be used to operate Scope View.

Since a fixed ADS port is required for this, only the first instance of the Scope can be operated via ADS.

TwinCAT Scope : ADS port 14000 (decimal)
 

Index-Group ( Hex )

Description

Remark

0x00001000

Scope Root States

0x00002000

Scope Root Functions

0x00003000

Scope View

 

Scope Root States

Index-Offset ( Hex )

 

Access

 

Data type

 

Physical unit

 

Scope of Definition

Description

 

Remark

 

0x00000001

Read

BYTE

Get Online Mode

0: Scope is offline
1: Scope is online

0x00000001

Write

void

Set Scope to Online Mode

0x00000002

Write

void

Set Scope to Offline Mode

 

Scope Root Functions

Index-Offset ( Hex )

 

Access

 

Data type

 

Physical unit

 

Scope of Definition

Description

 

Remark

 

0x00000001

Write

char[]

Load *.scp File

( Scope Configuration Project )

D:\\TwinCAT\\scope\\achse2.scp

 

 

Scope View

Requirements

Index-Offset ( Hex )

 

Access

 

Data type

 

Physical unit

 

Scope of Definition

Description

 

Remark

 

0x00000100 + Id

Write

void

Manual Trigger

 

Issuing this command triggers the Scope. It must, however, be online.

0x00000200 + Id

Read/Write

Real64

Record Length

Specifies the duration of the recording

0x00001000 + Id

Write

char[]

Export data as an ASCII file

D:\\TwinCAT\\Scope\\Data\\Test.dat

0x00001010 + Id

Write

char[]

Export ScopeView

 

Note:

The Scope View properties can currently only be used if only one view is active in the application. In other words, the ID is always 1.