X90 mobile modules
X90 mobile system User's manual V 1.20 - Translation of the original manual
213
Receiving data from a module (input)
When receiving data, the transmit array is generated by the module, transferred via Flatstream and must then be
reproduced in the receive array. The structure of the incoming data stream can be set with the mode register. The
algorithm for receiving the data does not change in this regard.
_data_01
_data_02
_data_03
_data_04
_data_05
_data_xx
. . .
RxBytes
InputMTU must be
added at the end of the
receive array
(increase InputSequenceAck
to end correctly)
If counter
InputSequence
is increased:
Receive array
Type: USINT
InputMTU
Type: USINT
PLC / Bus controller
InputMTU is
adapted cyclically to the
receive buffer
via X2X
_data_01
_data_02
_data_03
_data_04
_data_05
_data_xx
. . .
*TxBytes
Module-internal
transmit array
Type: USINT
Module-internal
transmit buffer
Type: USINT
Module
Cycl.
Module increases the
InputSequence counter
If permitted:
Module fills the internal
transmit buffer with the
next sequence of the
transmit array
Figure 49: Flatstream communication (input)
Algorithm
0) Cyclic status query:
- The CPU must monitor InputSequenceCounter.
Cyclic checks:
- The module checks InputSyncAck.
- The module checks InputSequenceAck.
Preparation:
- The module forms the segments and control bytes and creates the transmit array.
Action:
- The module transfers the current element of the internal transmit array to the internal transmit buffer.
- The module increases InputSequenceCounter.
1) Receiving (as soon as InputSequenceCounter is increased):
- The CPU must apply data from InputMTU and append it to the end of the receive array.
- The CPU must match InputSequenceAck to InputSequenceCounter of the sequence currently being processed.
Completion:
- The module monitors InputSequenceAck.
→ A sequence is only considered to have been transferred successfully if it has been acknowledged via InputSequenceAck.
- Subsequent sequences are only transmitted in the next bus cycle after the completion check has been carried out successfully.