Skip to content
Start free evaluation

PDComm.Secs1Message

Class

A SECS-I message: block header identity plus the message body.

public sealed record Secs1Message

Parameters

NameDescription
DeviceIdThe device ID (0 to 32767).
DirectionThe direction bit of the message.
StreamThe SECS-II stream number (0 to 127).
FunctionThe SECS-II function number.
ReplyExpectedWhether the W bit is set, meaning the sender expects a reply.
SystemBytesThe system bytes (transaction ID); the application chooses them for its own messages.
BodyThe message text, normally one encoded SECS-II item; split into blocks of up to 244 bytes on the wire. May be empty.

Members

Secs1Message

Constructor

A SECS-I message: block header identity plus the message body.

public Secs1Message(ushort DeviceId, Secs1Direction Direction, byte Stream, byte Function, bool ReplyExpected, uint SystemBytes, ReadOnlyMemory<byte> Body)

Parameters

NameDescription
DeviceIdThe device ID (0 to 32767).
DirectionThe direction bit of the message.
StreamThe SECS-II stream number (0 to 127).
FunctionThe SECS-II function number.
ReplyExpectedWhether the W bit is set, meaning the sender expects a reply.
SystemBytesThe system bytes (transaction ID); the application chooses them for its own messages.
BodyThe message text, normally one encoded SECS-II item; split into blocks of up to 244 bytes on the wire. May be empty.

Body

Property

The message text, normally one encoded SECS-II item; split into blocks of up to 244 bytes on the wire. May be empty.

public ReadOnlyMemory<byte> Body { get; init; }

DeviceId

Property

The device ID (0 to 32767).

public ushort DeviceId { get; init; }

Direction

Property

The direction bit of the message.

public Secs1Direction Direction { get; init; }

Function

Property

The SECS-II function number.

public byte Function { get; init; }

ReplyExpected

Property

Whether the W bit is set, meaning the sender expects a reply.

public bool ReplyExpected { get; init; }

Stream

Property

The SECS-II stream number (0 to 127).

public byte Stream { get; init; }

SystemBytes

Property

The system bytes (transaction ID); the application chooses them for its own messages.

public uint SystemBytes { get; init; }