Queue-Write - Siemens MOBY I ASM 421 Technical Description

Interface module
Table of Contents

Advertisement

ASM 421 Technical Description
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:
0
1
2/3
4
5
6/7
CC CI ADB DBN DBL
xx 00 0000
'Q'
'I'
ADB
Option:
The following applies if the data carrier already contains an existing file structure:
Option = 0000H:
Option = 0001H:
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
2. One block is always reserved by the file handler if the length is 0 hex.
6GT2 002-0DA00
ASM 421 / V.24
6GT2 002-0DB00
ASM 421 / RS422
6GT2 002-0DC00
ASM 421 / TTY
8/9
10
11–12
13–18
0001
DBL
Option
xxxxxxxx
Disregard
8 bytes
1 byte
File name Attribute
The file structure is overwritten or deleted with the QUEUE-WRITE
command.
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.
address 000000 hex in the respective file.
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.
19–21
22–24
Length of the
xxxxxx
file entries
For WRITE:
length of
the user
data
3 bytes 1 byte
1 byte
Reserved
Length
Skip
Data entry
– 25 –
6GT2 097-3AH00-0DA2
25 ...
File entries
Number of bytes
corresponds to
"length"
Data
Additional data entries
Subject to change without notice!
RD: 03/02
J31069-D0142-U001-A0-7618

Advertisement

Table of Contents
loading

Table of Contents