ITcPlcPou

To handle POUs and their content within a TwinCAT 3 project, the interfaces ITcPlcPou, ITcPlcDeclaration and ITcPlcImplementation may be used. For example, if you would like to create a new function block for a PLC project and fill it with code, you can use these interfaces to do so. For more information, please refer to our best practise article about "How to access and create PLC-Objects".

Properties

ITcPlcPou properties

Get / Set

Description

Available since

DocumentXml

Yes / Yes

Gets/Sets PLC code of a POU in XML format (not PLCopen XML)

TwinCAT 3.1

ReturnType

Yes / No

Return type of the POU, for example the return type of a function. May be any data type known to the PLC, for example BOOL, DINT, ... . The return type is being set when creating the POU via the CreateChild() method.

TwinCAT 3.1

Version information

Requirements

Required TwinCAT version

This interface is supported in TwinCAT 3.1 and above