Appends new data to the data part of the packet.
- data (Object)
- Data to be inserted.
- type (VariantType)
- How the inserted data should be interpreted.
DataType parameter determines the format, in which the data is appended.
If the data is given in a hexadecimal string, every byte is separated with a space.
Error is returned, if appended data is empty, or in an unknown form.
'Append data as number which takes one byte. GXPacket1.Append "10", GX_VT_BYTE 'Append data as string which takes two bytes. (One byte for each char) GXPacket1.Append "10", GX_VT_STR 'Append data as hex string which takes two bytes. GXPacket1.Append "10 00", GX_VT_HEX_STR
Assembly: Gurux.Client (Module: Gurux.Client) Version: 5.0.0.1