Siemens MOBY FC 56 Technical Description page 69

Table of Contents

Advertisement

5.5
Specifying the Data Structure
The developer can also define the MOBY data structure in different ways
depending on the structure of the application. Below are some examples of
possible data structures.
1st example
Four SLGs are parameterized. One command is assigned to each SLG. MOBY
parameters (DB 56), MDS commands (DB 57), and data (DB 58) are assigned to
different data blocks. The declaration view is shown.
Block: DB56; MOBY parameters
Address
Name
0.0
+0.0
SLG ARRAY [1..4]
*300.0
=1200.0
Block: DB57; 4 MDS commands
Address
Name
0.0
+0.0
Command ARRAY [1..4]
*30.0
=120.0
Block: DB58; MOBY data
Address
Name
0.0
+0.0
Daten ARRAY [1..1024]
*1.0
=1024.0
After these data blocks have been defined, the "current value" of the data must be
processed appropriately with the menu "Ansicht ³ Datensicht."
FC 56
J31069-D0155-U001-A0-7618
Type
Starting Value
STRUCT
UDT10
END_STRUCT
Type
STRUCT
UDT50
END_STRUCT
Type
STRUCT
BYTE
END_STRUCT
Starting Value
Starting Value
Sample Applications
Commentary
Commentary
Commentary
5-7

Advertisement

Table of Contents
loading

Table of Contents