Examples/applications
6.6 Data structure definition
FC 45
Function manual, Release 03/2006 , J31069-D0167-U001-A2-7618
6-11
6.6
6.6
Data structure definition
The developer can define different MOBY data structures depending on the structure of the
application. Some example structures are given below.
1st example
Four SLGs are parameterized. One command is assigned to each write/read device. MOBY
parameters (DB 45), MDS commands (DB 47), and data (DB 48) are assigned to different
data blocks. The declaration view is shown.
Block: DB45; MOBY parameters
Address
Name
Type
Initial value
Comment
0.0
STRUCT
+0.0
Write/
read
device
ARRAY [1..4]
*300.0
UDT10
=1200.0
END_STRUCT
Block: DB47; 4 MDS commands
Address
Name
Type
Initial value
Comment
0.0
STRUCT
+0.0
Command ARRAY [1..4]
*10.0
UDT20
=40.0
END_STRUCT
Block: DB48; MOBY data
Address
Name
Type
Initial value
Comment
0.0
STRUCT
+0.0
Data
ARRAY [1..1024]
*1.0
BYTE
=1024.0
END_STRUCT
When the data blocks have been defined, the "actual value" of the data must be edited using
the "View → Data view" menu.