Description: Creates and saves a new object definition, assigns an existing parent when found, and adds it to the global object container.
Calling convention: CIP_CreateObject("ParentName": Srting, "ObjectName": String, "DataTableName": String, ["ShortName": String='], ["ReasonTableName": String='])
Parameters:
ParentName: parent object name; an unknown name silently creates the object without a parent.
ObjectName: valid and currently unused new object name.
DataTableName: target data-table name; a missing argument pointer defaults to ObjectName despite being registered as required.
ShortName: optional short name; omission defaults to ObjectName.
ReasonTableName: optional reason-table name; omission defaults to ObjectName plus _REASON.
Returns: Undefined. Invalid or duplicate object names raise an exception; NULL parent or object names exit without a status.
Availability: Default; modifies persistent object configuration.
Example:
CIP_CreateObject("Plant", "LINE04", "DATA_LINE04", "Line 04", "REASON_LINE04");