Skip to main content

CommonPacketFormat Class

NuGet: GHIElectronics.TinyCLR.EthernetIP.Scanner
Assembly: GHIElectronics.TinyCLR.EthernetIP.Scanner
Namespace: GHIElectronics.TinyCLR.EthernetIP.Scanner

Represents the EtherNet/IP Common Packet Format used to wrap CIP request/response data.

public class CommonPacketFormat

Methods

ArrayList()

public ArrayList Data = new ArrayList()

The CIP payload bytes carried in the data item.

Returns ArrayList Data = new

Tobytes()

public byte[] Tobytes()

Serializes this common packet format (including the optional socket address item) to a byte array.

Returns byte[]

Fields

ItemCount

public ushort ItemCount

The number of items in the packet (2, or 3 when a socket address item is present).

AddressItem

public ushort AddressItem

The address item type code (0x0000 = NULL, used for UCMM messages).

AddressLength

public ushort AddressLength

The byte length of the address item.

DataItem

public ushort DataItem

The data item type code (0xB2 = unconnected data item).

DataLength

public ushort DataLength

The byte length of the data item.

SockaddrInfoItem_O_T

public ushort SockaddrInfoItem_O_T

The socket-address-info item type code (0x8000 for O->T, 0x8001 for T->O).

SockaddrInfoLength

public ushort SockaddrInfoLength

The byte length of the socket-address-info item.

SocketaddrInfo_O_T

public SocketAddress SocketaddrInfo_O_T

The optional socket address info item; null when not included.