X20 system modules • Digital signal processing modules • X20DS1928
X20 system User's Manual 3.10
1421
4.16.5.10.10.2 Message, segment, sequence, MTU
The physical properties of the bus system limit the amount of data that can be transferred during one bus cycle.
With FlatStream communication, all messages are viewed as part of a continuous data stream. Long data streams
must be broken down into several fragments that are sent one after the other. To understand how the receiver puts
these fragments back together to get the original information, it is important to understand the difference between
a message, a segment, a sequence and the MTU.
Message:
A message refers to information exchanged between two partner stations. The length of a message is not restricted
by the FlatStream communication method. Nevertheless, module-specific limitations must be considered.
Segment (logical division of a message):
A segment has a finite size and can be understood as a section of a message. The number of segments per
message is arbitrary. So that the recipient can correctly reassemble the transferred segments, each segment
is preceded by a byte with additional information. This control byte contains information such as the length of
a segment and whether the approaching segment completes message. This makes it possible for the receiving
station to interpret the incoming data stream correctly.
Sequence (how a segment needs to be arranged physically):
The size of a sequence corresponds exactly to the number of activated Rx or Tx bytes (later: "MTU"). The trans-
mitting station splits the transmit array into valid sequences. These sequences are then written successively to
the MTU and transferred to the receiving station where they are put back together again. The receiver stores the
incoming sequences in a receive array, obtaining an image of the data stream in the process.
With FlatStream communication, the number of sequences sent are counted. Sequences transferred successfully
must be acknowledged by the receiving station to ensure the integrity of the transmission.
MTU (Maximum Transmission Unit) - Physical transport:
MTU refers to the activated USINT registers used with FlatStream. These registers can accept a sequence and
pass it on to the receiving station. A separate MTU is defined for each direction of communication. The OutputMTU
defines the number of FlatStream Tx bytes, and the InputMTU specifies the number of FlatStream Rx bytes. The
MTUs are transported cyclically via the X2X bus, increasing the load with each additional activated USINT register.
Properties:
FlatStream messages are not transferred cyclically or in 100% real time. Many bus cycles may be needed to trans-
fer a certain message. Although the Rx and Tx registers are exchanged between the transmitter and the receiv-
er cyclically, they are only processed further if explicitly accepted by the "InputSequence" or "OutputSequence"
register.
Behavior in the event of an error (brief summary):
The protocol for X2X and POWERLINK networks specifies that the last valid values should be retained when
disturbances occur. With conventional communication (cyclic/acyclic data queries), this type of error can generally
be ignored.
In order for communication to also take place without errors using FlatStream, all of the sequences issued by the
receiver must be acknowledged. If "Forward" functionality is not used, then subsequent communication is delayed
for the length of the disturbance.
If "Forward" functionality is being used, the receiving station receives a transmission counter that is incremented
twice. The receiver stops, i.e. it no longer returns any acknowledgments. The transmitting station uses the Se-
quenceAck to determine that the transmission was faulty and all affected sequences will have to be repeated.
Summary of Contents for X20 System
Page 2: ......