ITcPlcOnline

Inherits from: IUnknown

Online access to a logged-in PLC application in an ITcPlcIECProject. Provides login/logoff, start/stop/reset, and online status.

ITcPlcOnline 1:

Prerequisite

Logoff, Start, Stop, and Reset require a successful login beforehand. Without an active online connection, there is no application for you to use.

Properties

Property

Type

get/set

Description

IsLoggedIn

VARIANT_BOOL

get

Indicates whether the PLC is logged in. Returns VARIANT_FALSE if not connected.

OnlineApplicationState

PLC_APPSTATE

get

The application's execution state. Returns PLC_APPSTATE_NONE if not connected / null. See PLC_APPSTATE.

OnlineOperationState

PLC_OPSTATE

get

Online operation state as a set of flags. Returns PLC_OPSTATE_NONE if not connected / null. See PLC_OPSTATE.

Methods

Method

Description

Login

Logs in to the PLC controller using TwinCAT.

Logoff

Logs off from the PLC controller.

Start

Starts the PLC application.

Stop

Stops the PLC application.

Reset

Resets the controller (Cold / Origin).