Data Structure Definition - Siemens SIMATIC FC 45 Function Manual

Sensors
Table of Contents

Advertisement

6.6

Data structure definition

6.6
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
0.0
+0.0
*300.0
=1200.0
Block: DB47; 4 MDS commands
Address
0.0
+0.0
*10.0
=40.0
Block: DB48; MOBY data
Address
0.0
+0.0
*1.0
=1024.0
When the data blocks have been defined, the "actual value" of the data must be edited using
the "View → Data view" menu.
FC 45
Function manual, Release 03/2006 , J31069-D0167-U001-A2-7618
Name
Type
STRUCT
Write/
ARRAY [1..4]
read
device
UDT10
END_STRUCT
Name
Type
STRUCT
Command ARRAY [1..4]
UDT20
END_STRUCT
Name
Type
STRUCT
Data ARRAY [1..1024]
BYTE
END_STRUCT
6.6 Data structure definition
Initial value
Initial value
Initial value
Examples/applications
Comment
Comment
Comment
6-11

Advertisement

Table of Contents
loading

Table of Contents