![Siemens MOBY I ASM 421 Скачать руководство пользователя страница 27](http://html.mh-extra.com/html/siemens/moby-i-asm-421/moby-i-asm-421_technical-description_377253027.webp)
ASM 421 Technical Description
6GT2 097-3AH00-0DA2
– 25 –
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.3
QUEUE-WRITE
This command combines several WRITE commands into one command. This gives you the following
advantages:
1. Writing of several files is faster since writing is not dependent on the serial transmission to the ASM.
2. The files are provided with a fixed length.
3. Filling in any pattern is possible.
4. Attributes can be assigned.
This function cannot be executed unless the addressed MDS has been formatted correctly. In addition,
this command is aborted with error message C006 if the addressed MDS leaves the transmission window
prematurely (handling same as for the FORMAT command).
Telegram to the file handler:
’Q’
CC CI ADB DBN DBL
xx 00 0000
ADB
DBL
Option
xxxxxxxx
0
1
2/3
4
5
6/7
8/9
10
11–12
22–24
’I’
0001
xxxxxx
Length of the
File entries
Disregard
For WRITE:
length of
the user
data
File name
Attribute
Length
Reserved
Data
Skip
8 bytes
1 byte
3 bytes
1 byte
1 byte
Number of bytes
corresponds to
“length”
Data entry
13–18
19–21
25 ...
file entries
Additional data entries
Option:
The following applies if the data carrier already contains an existing file structure:
Option = 0000H:
The file structure is overwritten or deleted with the QUEUE-WRITE
command.
Option = 0001H:
The file structure is added to the existing file structure with the
QUEUE-WRITE command. A check is made to determine whether the file
to be set up already exists.
File name:
File name
Attribute:
Attribute for this file. The attribute is not set until the data have been written.
Reserved:
1 byte is reserved.
Skip:
Skip specifies how many bytes are between the previous file entry and the next file entry.
Example: skip = 00hex (i.e., the file name of the next file entry immediately follows the data of the
previous file entry).
Length:
Length in bytes of the subsequent data for the specified file.
Data:
The data to be written. These data can also be a filling pattern. The amount of data in bytes must
correspond to the “length” parameter.
Note:
1. The start address of the QUEUE-WRITE command always starts at the
address 000000 hex in the respective file.
2. One block is always reserved by the file handler if the length is 0 hex.
Since the file entry does not contain data when the length = 0, the
QUEUE-WRITE command corresponds to a multiple execution of the
CREATE command in this case.