Operation Manual EMGZ490A
30.08.2019
24
7.5
Data Blocks
In a controller, data blocks can be configured. As FBs they can be easier apply and
monitored by the computer. Basically data blocks are structures that may contain
different variables. Below three data blocks (DB1, DB2, DB3) were defined.
DB1 – FMS_ACYCLIC_DB:
Name
Type
Start Value
Comment
Index
INT
0
FMS specific index
VALUE_READ
DINT
L#0
Input value
VALUE_WRITE DINT L#0
Output
value
DB2 – FMS_TRIGGER_DB:
Name
Type
Start Value
Comment
READ_TRIGGER BOOL FALSE
Trigger acyclic read instruction
WRITE_TRIGGER
BOOL
FALSE
Trigger acyclic write instruction
DB3 – FMS_CYCLIC_DB:
Name
Type
Start Value
Comment
ACT_VAL_ADC
WORD
W#16#0
Feedback in ADC
ACT_VAL_NEWTON DWORD
DW#16#0
Feedback in Newton
ACT_VAL_POUND
DWORD
DW#16#0
Feedback in Pound
ACT_VAL_UNIT
DWORD
DW#16#0
Feedback in configured unit
STATUS BYTE
B#16#0
Operation
status
The following graph (Fig. 7) shows the connection between FBs and DBs, respectively
how the access from FB to individual DBs is done.
Fig. 7: Connection between functional blocks and data blocks
E490013