Flat流模式 - Flatstream mode

<< 点击显示目录 >>

主页  振动监测 > X20(c)CM4810使用手册 > 寄存器说明 - Register description  > Flat 流 - Flatstream  > Flat流通信 - Flatstream communication > Flat流模式的寄存器 - Registers for Flatstream mode >

Flat流模式 - Flatstream mode

 

Name:

FlatstreamMode

Name:

Flat流模式

 

In the input direction, the transmit array is generated automatically. This register offers 2 options to the user that allow an incoming data stream to have a more compact arrangement. Once enabled, the program code for evaluation must be adapted accordingly.

在输入方向上,传输数组是自动生成的。这个寄存器为用户提供了2个选项,允许输入的数据流有一个更紧凑的排列。一旦启用,必须对评估的程序代码进行相应调整。

 

Information:

注意:

 

All B&R modules that offer Flatstream mode support options "Large segments" and "MultiSegmentMTUs" in the output direction. Compact transfer must be explicitly allowed only in the input direction.

所有提供Flat流模式的B&R模块在输出方向上支持“Large segments(大分段)”和“MultiSegmentMTUs(多分段MTU)”的选项。只有在输入方向上必须明确允许紧凑传输。

 

 

Bit structure:

位结构:

Bit

Description

描述

Value

Information

说明

0

MultiSegmentMTU

多分段MTU

0

Not allowed (default)

不允许 (default)

1

Permitted

允许

1

Large segments

大分段

0

Not allowed (default)

不允许 (default)

1

Permitted

允许

2 - 7

Reserved

保留

 

Standard

标准的

By default, both options relating to compact transfer in the input direction are disabled.

默认情况下,与输入方向上的紧凑传输相关的两个选项都处于禁用状态。

The module only forms segments that are at least one byte smaller than the enabled MTU. Each sequence begins with a control byte so that the data stream is clearly structured and relatively easy to evaluate.

该模块仅形成至少比启用的 MTU 小一个字节的段。每个序列都以一个控制字节开始,因此数据流结构清晰,相对容易评估。

Since a Flatstream message is permitted to be any length, the last segment of the message frequently does not fill up all of the MTU's space. By default, the remaining bytes during this type of transfer cycle are not used.

由于允许 Flatstream 消息为任意长度,因此消息的最后一段通常不会填满 MTU 的所有空间。默认情况下,这种类型的传输周期中的剩余字节不被使用。

fsm_def.en

Fig.: Message arrangement in the MTU (default)

图: MTU 中的消息排列(默认)

 

MultiSegmentMTUs allowed

允许MultiSegmentMTUs(多分段MTU)

With this option, InputMTU is completely filled (if enough data is pending). The previously unfilled Rx bytes transfer the next control bytes and their segments. This allows the enabled Rx bytes to be used more efficiently.

使用此选项,InputMTU 将完全填充(如果有足够的数据等待)。之前未填充的Rx字节传输下一个控制字节和它们的段。这使得启用的Rx字节可以更有效地被使用

fsm_msm.en

Fig.: Arrangement of messages in the MTU (MultiSegmentMTUs)

图: MTU中消息的排列(多段MTU)

 

Large segments allowed:

允许Large segments(大分段):

When transferring very long messages or when enabling only very few Rx bytes, then a great many segments must be created by default. The bus system is more stressed than necessary since an additional control byte must be created and transferred for each segment. With option "Large segments", the segment length is limited to 63 bytes independently of InputMTU. One segment is permitted to stretch across several sequences, i.e. it is possible for "pure" sequences to occur without a control byte.

当传输很长的消息或只启用很少的Rx字节时,默认情况下必须创建大量的段。由于必须为每个段创建和传输一个额外的控制字节,总线系统的压力比必要的要大。使用“Large segments(大段)”选项时,段长度限制为63字节,与InputMTU无关。允许一个段跨越多个序列,即“纯”序列可以在没有控制字节的情况下出现。

 

Information:

注意:

 

It is still possible to split up a message into several segments, however. If this option is used and messages with more than 63 bytes occur, for example, then messages can still be split up among several segments.

但是,仍然有可能将一条消息分割成若干段。例如,如果使用此选项,并且出现超过63个字节的消息,则消息仍然可以在多个段中分割。

 

fsm_grs.en

Fig.: Arrangement of messages in the MTU (large segments)

图: MTU中消息的排列(大段)

 

Using both options

使用两个选项

Using both options at the same time is also permitted.

同时使用这两个选项也是允许的。

fsm_all.en

Fig.: Arrangement of messages in the MTU (large segments and MultiSegmentMTUs)

图: MTU中消息的排列(large segments 大段和 MultiSegmentMTUs 多段MTU)