API Optional vInfo parameter Depending on theitem subtypeof the new child item,someadditional informationmay berequiredto create the child item. This information can be provided via the vInfo parameter. Also see about this 2 ITcSmTreeItem [ } 37] 6.2.6 ITcSmTreeItem::DeleteChild Deletes a child item. HRESULT DeleteChild(BSTRbstrName); Parameters Automation Interface 63 Version: 1.2 Child: Item sub type vInfo parameter(s) E-Bus box / terminal / module (item sub type 9099) Contains the Identity Object (CoE 1018h, VendorId, ProductCode and optional RevisionNo and SerialNo) of the EtherCAT box. The type of the variant must be an array of LONG (VT I4|VT ARRAY, 2-4 elements).
_ _ Alternatively contains a BSTR of the following formats (with %X = value in hex notation, e.g. "V00000002 P044c2c52 R00000000"): _ _ • V%X P%X R%X S%X _ _ _ • V%X P%X R%X _ _ • V%X P%X _ Especially for Beckhoff E-Bus terminals / modules, please read the corresponding E-Bus article [} 43]. Interbus box. (item sub type 2002) Contains the IdentCode and LengthCode of the Interbus box. The type of the variant must be an unsigned short (VT I2), the low byte contains the _ IdentCode the high byte the LengthCode. AX2000 (item sub type 5007) CANDrive (item sub type 5006) Optionally contains a bool value (VT BOOL) and if _ set an additional variable for the `Following Error`will be created.
DeviceNET (item sub type 5203) TcDNSSlave (item sub type 5250) CX1500 (item sub type 1042) FC520X Slave (item sub type 1043) Optionally contains the file path to an EDS file (VT BSTR). _ BK3000 and all other PROFIBUS box types Optionally contains the file path to an GSD file (VT BSTR). _ Variable Optionally contains the bit address of the new variable. The type of the variant can be a SHORT or a LONG (VT I2 or VT I4). _ _ PLC POU Functionblock (item sub type 604) Contains IEC language type as Integer, as defined by IECLANGUAGETYPES. PLC POU Function (item sub type 603) Contains a string[2] array, which hols the following values:
• array[0] = IEC language type as Integer, as defined by IECLANGUAGETYPES. • array[1] = return data type of function. May be any PLC data type, for example DINT, BOOL, ... bstrName [in] Item name of the child item that should be deleted.