![Siemens MOBY I ASM 421 Technical Description Download Page 33](http://html.mh-extra.com/html/siemens/moby-i-asm-421/moby-i-asm-421_technical-description_377253033.webp)
ASM 421 Technical Description
6GT2 097-3AH00-0DA2
– 31 –
RD: 03/02
6GT2 002-0DA00
ASM 421 / V.24
Subject to change without notice!
6GT2 002-0DB00
ASM 421 / RS422
6GT2 002-0DC00
ASM 421 / TTY
J31069-D0142-U001-A0-7618
3.4.6
QUEUE-READ
The QUEUE-READ command is used to read several files (max. of 15) with one command from the MDS.
The complete MDS with all files can also be read as an option.
Telegram to the filehandler:
'E'
KK KI ADB DBN DBL
xx 00 0000
0001
DBL
Option
In reserve
Length
Data
0
1
2/3
4
5
6/7
8/9
10
11/12
13/21
22/24
25..254
The user data contain the files to be read
(max. of 16 file entries).
Length of the subsequent data
starting at byte 25 (in hex format)
'I'
0001
Length of the subsequent data in the telegram
Number of subcommands is always 0001 with the command. The filehandler
supplies the correct number (ADB) in the first acknowledgment telegram.
'E' = QUEUEREAD:
Several files can be read with one command.
0000
No option. The data contain the files to be read.
0001
(Res. for QUEUE-WRITE)
0002
All files of the MDS are read. No data starting at byte 25.
Length is 000000 (bytes 22 to 24).
0004
If the actual file length is longer than the file length reserved in the data,
no error message is generated.
0008
The user data contain the files that are not to be read. This means that
all files of the data memory are read except the files specified in the
command. The “length” parameter in the file entry can be disregarded
for this option.
0010
The read file data are organized by word and are directly appended to
each other. This means that a skip byte with the value 20hex is added to
odd length files. The “skip” parameter has the value 0001 in the acknowl-
edgment. With this option “length” must always be set to FFFFFF in the
file entries.
The options are bit-coded. Several options can be set at the same time.
Example: 000C, 0012, 0018, and so on.
File name
Res. = 00
Length
Reserved
Other file entries
One file entry = 14 bytes
8 bytes
1 byte
3 bytes
2 bytes
FFFFFF
Read the complete file.
xxxxxx
Reserved data length in the acknowledgment telegram.
The file data in the acknowledgment are always
xxxxxx bytes (xxxxxx
max
= 4096).
The result is shown below.
File length
< xxxxxx:
The acknowledgment telegram is filled with 20hex up to the parameter-
ized length xxxxxx. The number of filled bytes is supplied by the filehan-
dler in the data word “skip.”
File length
> xxxxxx:
The file data are only supplied in the acknowledgment telegram up to a
length of xxxxxx. The remaining data are cut off. When option 0004 is
set there is no error message. Otherwise the QUEUE-READ is termi-
nated at this point with error F006.
The file name must
always be specified.
Data: