Table of Contents

Class Scope

Namespace
TwinSharp
Assembly
TwinSharp.dll

Class to interact with a TwinCAT 2 scope. Note: not compatible with TwinCAT 3.

public class Scope
Inheritance
Scope
Inherited Members

Constructors

Scope(AmsNetId)

Creates a new instance of the Scope class. The AmsNetId should typically point to a TwinCAT 2 runtime.

public Scope(AmsNetId amsNetId)

Parameters

amsNetId AmsNetId

Properties

OnlineMode

Gets or sets the online mode of the scope. If true, the scope is online and can be triggered. If false, the scope is offline.

public bool OnlineMode { get; set; }

Property Value

bool

Methods

LoadConfigurationFile(string)

Load *.scp File (Scope Configuration Project)

public void LoadConfigurationFile(string filename)

Parameters

filename string

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

ManualTrigger()

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

public void ManualTrigger()