ITcPlcImplementation

Inherits from: IUnknown

Access to the implementation code of PLC code objects (POUs, actions, transitions).

ITcPlcImplementation 1:

Language setter not implemented

A language change is not permitted. If the language differs, the set access throws a NotSupportedException (declaration) or NotImplementedException (implementation). The language is determined by the object and is read-only.

Properties

Property

Type

get/set

Description

ImplementationText

BSTR

get/set

Implementation text. get: for ST, the implementation text; otherwise, from the XML; set: for ST, set and save the text. Returns "" if not connected. get: InsufficientAccessRightsException; set: DanglingAdapterException, InsufficientAccessRightsException, NotSupportedException (not an ST object).

ImplementationXml

BSTR

get/set

Implementation XML nodes (XPath depending on the ItemType). Returns "" if not connected. Set: DanglingAdapterException, ArgumentNullException("xmlFragement"), XmlException (invalid XML), AutomationException/XmlAutomationException (document/node missing).

Language

IECLANGUAGETYPES

get

IEC language of the object (cached from the object type). Set is not supported (see warning). Returns IECLANGUAGE_NONE if not connected. See IECLANGUAGETYPES.

Methods

(none)