ITcSystemServer

The TwinCAT system can be controlled via the ITcSystemServer interface. ITcSystemServer has been designed as an OLE automation interface, so that it can also be used by script languages such as Visual Basic Script.

Methods in Vtable sequence

IUnknown methods

Description

QueryInterface

Returns a pointer to the interface requested.

AddRef

Increments the reference counter.

Release

Decrements the reference counter.

IDispatch methods

Description

GetTypeInfoCount

Supplies the number of "type information" interfaces, that an object offers (0 or 1).

GetTypeInfo

Gets the type information for an object.

GetIDsOfNames

Connects names of methods with optional arguments with a corresponding set of DISPIDs.

Invoke

Offers access to properties and methods of an object.

ITcSystemServer methods

Description

StartSystem

Starts the TwinCAT system.

StopSystem

Stops the TwinCAT system.

RestartSystem

Stop with subsequent start of the TwinCAT system.

SaveServerCfg

Requests all TwinCAT COM servers to save their configuration in the TwinCAT project file (*.tps).

SystemState

Property displaying the current state of the TwinCAT system.

AmsNetId

Property, with which the AmsNetId of a TwinCAT system can be queried.

RtcTimeDiff

Property, with which the current time difference between the Windows NT system time and the real-time clock of the PC is displayed.

AdjustSystemTimeToRtcTime

Synchronises the Windows NT system time with the real-time clock of the PC.