beckhoff TE1000 TwinCAT 3 — 5.16 ITcPlcReferences

API | ITcPlcTaskReference Return value 5.15 ITcPlcTaskReference | ITcPlcTaskReference ITcPlcTaskReference describes how to link a PLC task to a task module Tree Item. Chain of inheritance IUnknown └── ITcPlcTaskReference Interface versions 5.15.1 ITcPlcTaskReference | ITcPlcTaskReference Inherits from: IUnknown Linking a PLC task to a task module Tree Item. get: Path of the linked task module; set: searches for the target Tree Item, validates the task type, and assigns it. Properties Methods (none) 5.16 ITcPlcReferences | ITcPlcReferences ITcPlcReferences is a dispatch collection of library and placeholder references. Chain of inheritance IDispatch └── ITcPlcReferences TE1000 100 Version:

1.7.0 Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Version Newly introduced Index ITcPlcTaskReferenc e Property LinkedTask. ITcPlcTaskReference Property Type get/set Description LinkedTask BSTR get/set ItemPath to the linked ITcSmTreeItem (task module). get: returns "" if not connected / no task. set: returns an error if not connected: TSM E ITEMNOTFOUND _ _ (path not found) or TSM E INVALIDITEMTY _ _ PE (target is not a task).