
7. Programming
7.3. Function Block
108
2MLF-HO2A, 2MLF-HD2A High Speed Counter Module User's Guide
R200
Honeywell
May 2010
Function block is classified as follows according to output variable type.
Function Block Output variable
type
Operation description
GET_WORD
WORD
Reads WORD data from Global constant area
(MADDR).
GET_DWORD
DWORD
Reads DWORD data from Global constant area
(MADDR).
GET_INT
INT
Reads INT data from Global constant area
(MADDR).
GET_UINT
UINT
Reads UINT data from Global constant area
(MADDR).
GET_DINT
DINT
Reads DINT data from Global constant area
(MADDR).
GET_UDINT
UDINT
Reads UDINT data from Global constant area
(MADDR).
2.
Use of GET function block
a)
HSC module is equipped at slot 8 of basic base. While ‘Read1’ is on, it
transmits data of ‘_F08_CH0_CNT_ MODE’ to ‘Output data1’.
2MlI/2MLR CPU
module
HSC module
Output variable
(DATA)
Input variable (MADDR)
Global variable
Constant
value
Data
Output data1
_F08_CH0_CNT_MODE 0
Data1
Note
: Results of above two examples are same.