Sample Udt For Queue-Write Command - Siemens MOBY FC 56 Technical Description

Table of Contents

Advertisement

Structure of the file entries with the QUEUE-WRITE command
The following structure must be stored under the pointer
DAT_DB_number/DAT_DB_address. It contains both the file names and the
related data.
Table 4-6

Sample UDT for QUEUE-WRITE command

Address
Name
0.0
+0.0
File
*0.0
+0.0
File_name
*1.0
+8.0
Attribute
+9.0
File_length_M
+10.0
File_length_I
+11.0
File_length_L
+12.0
Skip
+14.0
Data
*1.0
=114.0
=1710.0
1
UDT is only an example. It is not part of the software project.
2
Example:
Skip = 0:
The file name of the next file entry must immediately follow the last valid data byte.
This UDT can only be used when all files have the same length (e.g., 100 bytes).
Skip = variable:
You can use the universal UDT structure shown for all file entries when the following is true:
file_length + skip = data ARRAY. In our UDT, file_length + skip must always be 100.
Acknowledgment data in the QUEUE-WRITE command
The QUEUE-WRITE command does not create user data in the acknowledgment.
FC 56
J31069-D0155-U001-A0-7618
Type
Commentary
STRUCT
ARRAY [1..64] All file names of an MDS can be processed with
a command.
STRUCT
ARRAY [1..8]
File name (8 ASCII characters)
CHAR
BYTE
Attribute for this file. The attribute is not
set until the data have been written to the
MDS.
00H
No attribute
01H
Read only. The file can only be read.
02H
Write once. The data may only be written once. New
data may be appended. The file cannot be deleted with
DELETE. The file can only be written with the automatic
APPEND function.
04H
Fixed length. The file length cannot be changed with write
commands such as UPDATE, WRITE or APPEND.
05H
Same meaning as 01H
BYTE
MSB
BYTE
BYTE
LSB (least significant
byte)
INT
Skip specifies how many bytes of the next file
entry follow the end of the previous file
entry.
Valid Value range: 0 to 255
ARRAY [0..99] Reserved area for the write data of a file
(here 100 bytes)
BYTE
END_STRUCT
END_STRUCT
1
Actual length of the
"data" appended in the
"d
following ARRAY and
following ARRAY and
the data to be written
MOBY Commands
g
"
d d i
h
2
4-11

Advertisement

Table of Contents
loading

Table of Contents