4-122 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
4
last channel description is required to pad the sample buffer out to the 24 bits specified in
the number of channels parameter.
Since all 24 channels are configured there are no more channel descriptions needed and we
have reached the end of our block.
The following table summarizes the values contained in a single sample based upon the above
channel descriptions and control block:
Channel Number Channel Contents
1%I0001
2 - 4 Zeros
5Input Module Point 13
6Input Module Point 14
7Input Module Point 15
8%Q0009
9%Q0010
10 - 17 Input Module Points 1 - 8
18 - 24 Zeros
Data Block
This is the format of the resulting data block from the control block described above. Note that it
begins at register 201 as described by the segment offset parameters in the control block.
Offset Register Parameter Description Value (dec) Value (hex)
0%R0201 Current sample offset #: 59 003B
1 202 Trigger sample offset #: 0 0000
2 - 5 203 – 206 Trigger time (BCD) 0
0
0
0
0000
0000
0000
0000
6 - 768 207 – 975 Samples Buffer: sample data. sample data.
Current sample offset is 59 meaning that we are 59 samples into the sample buffer (not 59
registers). With 3 bytes per sample we are actually at; 59 * 3 = 177 bytes or the hi byte of the 88th
register. Since we have not met the trigger conditions yet the trigger sample and trigger time are 0
and the boolean output is not set. The sample buffer contains 512 samples where 59 is the newest
sample and 60 is the oldest sample.