X90 mobile modules
X90 mobile system User's manual V 1.20 - Translation of the original manual
197
5.4.1.5.11 Flatstream
5.4.1.5.11.1 Transferring characteristic values via Flatstream
Automation Runtime applies Flatstream communication for the transferring characteristic values. The user is au-
tomatically provided with all characteristic values, already properly scaled. As a result, the registers for the char-
acteristic value Flatstream are not displayed in the I/O mapping.
When using Flatstream, the following should be noted:
•
The maximum bus cycle time should not exceed 10 ms.
•
The task cycle should either be the same speed and synchronous to the module's bus or faster.
Bus cycle time
Since the characteristic values are transferred over the Flatstream, a maximum bus cycle time of 10 ms should
not be exceeded. Otherwise, the data calculated by the module every 300 ms cannot be fully transferred on the
bus. If the current transfer is not completed when new characteristic values become available, then they will be
discarded. A cycle time of ≤10 ms is therefore required in order to ensure seamless measurements.
Task cycle time
It is important to note that the module normally changes the values in the Flatstream in every X2X Link cycle. To
optimize performance and avoid missing any values in the task, it is important to select a task cycle that is either
the same speed and synchronous to the module's bus or faster. This also applies to fieldbus connections between
the CPU and bus controller. If this is not possible for some reason, it is also possible to change the ForwardDelay
of the Flatstream (see
"The forward function on the X90CM480" on page 199
).
Registers for the characteristic value Flatstream
The following registers are needed to transfer characteristic values:
"ParameterInputSequence01" on page 206
"ParameterRxByte01-13" on page 204
"ParameterOutputSequence01" on page 205
This results in an
"InputMTU"
of 13 bytes and an
"OutputMTU"
of 0 bytes for the characteristic value Flatstream.
Structure of the characteristic value Flatstream
Each characteristic value transferred from the module via Flatstream has a length of 3 bytes with the high byte first.
See
"Characteristic values" on page 170
for the exact format. The stream has a total length of 240 bytes. First,
all characteristic values from channel 1 are transferred, then those from channels 2, 3 and 4. The 32 frequency
bands then follow next.
The RmsVelRaw and RmsVelEnvelope characteristic values and FrequencyBandxx are only transferred if they
are set to a velocity signal and the EnableVelocityCalculation bit for the respective channel is set. Otherwise, 0 is
output. EnableVelocityCalculation is configured in register
"SensorConfig" on page 158
.
Byte offset in the stream
Channel 1
Channel 2
Channel 3
Channel 4
Characteristic value
Channel parameters
0
36
72
108
"RmsAccRaw"
3
39
75
111
"RmsVelRaw"
6
42
78
114
"RmsAccEnvelope"
9
45
81
117
"RmsVelEnvelope"
12
48
84
120
"PeakHighFrequency"
15
51
87
123
"RmsHighFrequency"
18
54
90
126
"Iso10816"
21
57
93
129
"CrestFactorRaw"
24
60
96
132
"KurtosisRaw"
27
63
99
135
"PeakRaw"
30
66
102
138
"SkewnessRaw"
33
69
105
141
"RmsRaw"
Frequency band 1 - 32
144
"FrequencyBand01"
:
:
237
"FrequencyBand32"
5.4.1.5.11.2 Uploading buffers via Flatstream
The Flatstream for the buffer upload is provided by the module.