MOBY Commands
4-11
FC 56
J31069-D0155-U001-A0-7618
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
1
Address
Name
Type
Commentary
0.0
STRUCT
+0.0
File
ARRAY [1..64]
All file names of an MDS can be processed with
a command.
*0.0
STRUCT
+0.0
File_name
ARRAY [1..8]
File name (8 ASCII characters)
*1.0
CHAR
+8.0
Attribute
BYTE
Attribute for this file. The attribute is not
set until the data have been written to the
MDS.
00H
01H
02H
04H
05H
No attribute
Read only. The file can only be read.
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.
Fixed length. The file length cannot be changed with write
commands such as UPDATE, WRITE or APPEND.
Same meaning as 01H
+9.0
File_length_M
BYTE
MSB
Actual length of the
”d
”
d d i
h
+10.0
File_length_I
BYTE
g
”data” appended in the
following ARRAY and
+11.0
File_length_L
BYTE
LSB (least significant
byte)
following ARRAY and
the data to be written
+12.0
Skip
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
2
+14.0
Data
ARRAY [0..99]
Reserved area for the write data of a file
(here 100 bytes)
*1.0
BYTE
=114.0
END_STRUCT
=1710.0
END_STRUCT
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_ skip = data ARRAY. In our UDT, file_ skip must always be 100.
Acknowledgment data in the QUEUE-WRITE command
The QUEUE-WRITE command does not create user data in the acknowledgment.
Summary of Contents for MOBY FC 56
Page 12: ...Introduction 1 6 FC 56 J31069 D0155 U001 A0 7618 ...
Page 63: ...5 1 FC 56 J31069 D0155 U001 A0 7618 Sample Applications 5 ...
Page 80: ...Sample Applications 5 18 FC 56 J31069 D0155 U001 A0 7618 ...
Page 90: ...Entry Exit Check of an MDS in an SLG Field 6 10 FC 56 J31069 D0155 U001 A0 7618 ...
Page 94: ...System Configuration 7 4 FC 56 J31069 D0155 U001 A0 7618 ...
Page 100: ...Commissioning Guidelines 8 6 FC 56 J31069 D0155 U001 A0 7618 ...
Page 101: ...9 1 FC 56 J31069 D0155 U001 A0 7618 Error Messages and Trouble Shooting 9 ...
Page 152: ...Programming MOBY ASM on PROFIBUS DP V1 B 30 FC 56 J31069 D0155 U001 A0 7618 ...