IDataItemList.CreateAndAdd (METH)ΒΆ

METHOD CreateAndAdd : SysTypes.RTS_IEC_RESULT

Creates a new item for monitoring and immediately adds it to the list.

Note

Usually items are monitored in total. If you want to expand the items (to prevent problems with different alignment etc.) then consider using the method IDataItemListExpanding.CreateAndAddExpanding instead.

InOut:

Scope

Name

Type

Comment

Return

CreateAndAdd

SysTypes.RTS_IEC_RESULT

An error code representing the result of the operation. In case of success, ERR_OK will be returned

Input

pstSymbol

POINTER TO STRING

The symbolic name of the variable to activate. Here the name of the variable on the local PLC/HMI is expected.