Customized Function Blocks For Datasite
Customized Function Blocks For Datasite
Customized Function Blocks For Datasite
DataSite
Catalog Numbers 1758-FLO301, 1758-FLO302, 1758-
RTU201, 1758-RTU202
Reference Manual
Important User Information
Solid state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines for the Application,
Installation and Maintenance of Solid State Controls (publication SGI-1.1 available from your local Rockwell Automation sales office or online at
http://literature.rockwellautomation.com) describes some important differences between solid state equipment and hard-wired electromechanical
devices. Because of this difference, and also because of the wide variety of uses for solid state equipment, all persons responsible for applying this
equipment must satisfy themselves that each intended application of this equipment is acceptable.
In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use or application of this
equipment.
The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and requirements associated
with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for actual use based on the examples and
diagrams.
No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or software described in this
manual.
Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation, Inc., is prohibited.
Throughout this manual, when necessary, we use notes to make you aware of safety considerations.
WARNING
Identifies information about practices or circumstances that can cause an explosion in a hazardous environment, which may
lead to personal injury or death, property damage, or economic loss.
IMPORTANT Identifies information that is critical for successful application and understanding of the product.
ATTENTION
Identifies information about practices or circumstances that can lead to: personal injury or death, property damage, or
economic loss. Attentions help you identify a hazard, avoid a hazard, and recognize the consequence.
SHOCK HAZARD
Labels may be on or inside the equipment, such as a drive or motor, to alert people that dangerous voltage may be present.
BURN HAZARD
Labels may be on or inside the equipment, such as a drive or motor, to alert people that surfaces may reach dangerous
temperatures.
Allen-Bradley, Datasite, Rockwell Automation, and TechConnect are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
Table of Contents
Table of Contents Preface
Who Should Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Purpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 1
Customized Function Blocks for B_AERR_CLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1758-RTU Controllers B_ERR_CLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
B_ERR_GET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
BIT_EXPAND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
BIT_MERGE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
BLOCK_ADD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
BLOCK_CLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
CAL_LINE_N . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
CAL_LINE_X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
CLOCK_GET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
CLOCK_SET. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
COM_MSG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
COM_MSG_STATUS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
COM_US_CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
COM_US_SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
EN_LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
EN_NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
EN_RS485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
EV_CALE_CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
EV_CLK_CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
EV_GET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
EV_RTC_SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
EV_SEC_CFG. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
EV_TIME_CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
HARTB_ADD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
HARTB_AEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
HARTB_CLR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
HARTB_EC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
HARTB_EG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
HARTT_CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
HARTT_ST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
PW_SHDN. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
REG_MOVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
REG_R_REAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
REG_R_STR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
REG_R_UDINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
REG_R_UINT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
REG_W_REAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
REG_W_STR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
REG_W_UDINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
REG_W_UINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
SWAP_DWORD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
SWAP_WORD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
SYS_AD_GET. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
SYS_ERR_GET. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
SYS_ERR_RST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Chapter 2
Customized Function Blocks for B_AERR_CLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
1758-FLO Controllers B_ERR_CLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
B_ERR_GET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
BIT_EXPAND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
BIT_MERGE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
BLOCK_ADD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
BLOCK_CLR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
COM_MSG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
COM_MSG_STATUS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
COM_US_CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
COM_US_SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
CAL_LINE_N . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
CAL_LINE_X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
CLOCK_GET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
CLOCK_SET. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
EN_LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
EN_NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
EN_RS485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
ENRON_CFG. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
GET_3_PARA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
GET_7_PARA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
GET_C_ALL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
GET_C_TIME. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
GET_C_TODAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
GET_C_YESTERDAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
GET_ENG_VAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
GET_FLOW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
GET_GX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
GET_MR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
HARTB_ADD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
HARTB_AEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
HARTB_CLR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
HARTB_EC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
HARTB_EG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
HARTT_CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
HARTT_ST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
PW_SHDN. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
REG_MOVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
REG_R_REAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
REG_R_STR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
REG_R_UDINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
REG_R_UINT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
REG_W_REAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
REG_W_STR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
REG_W_UDINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
REG_W_UINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
SWAP_DWORD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
SWAP_WORD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
SYS_AD_GET. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
SYS_ERR_GET. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
SYS_ERR_RST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Read this preface to familiarize yourself with the rest of the manual. It provides
information concerning:
Who Should Use this Use this manual if you are responsible for programming or troubleshooting
DataSite controllers.
Manual
You should have a basic understanding of electrical circuitry and familiarity
with relay logic. If you do not, obtain the proper training before using this
product.
Purpose of this Manual This manual is a reference guide that describes the customized function blocks
you can use in DataSite Workbench for programming DataSite controllers.
Related Documentation The publications listed in this table contain more information on the DataSite
controllers.
This chapter provides information on the customized function blocks you can
use in DataSite Workbench for programming the 1758-RTU DataSite
controllers.
B_AERR_CLR Function
Statement Instance
B_AERR_CLR
44642
B_ERR_CLR Function
Statement Instance
B_ERR_CLR
NUM
44643
Parameter Explanation
B_ERR_GET Function
Statement Instance
B_ERR_GET
ERR
NUM
CON
44644
Parameter Explanation
BIT_EXPAND Function
Statement Instance
BIT_EXPAND
B00
B01
B02
B03
B04
B05
B06
B07
IN
B08
B09
B10
B11
B12
B13
B14
B15 44955
Parameter Explanation
BIT_MERGE Function
Statement Instance
BIT_MERGE
B00
B01
B02
B03
B04
B05
B06
B07
VAL
B08
B09
B10
B11
B12
B13
B14
B15
44956
Parameter Explanation
BLOCK_ADD Function
Statement Instance
BLOCK_ADD
PORT
ADR
SIG
TIME
B_NO
M
NUM
44646
Parameter Explanation
BLOCK_CLR Function
Statement Instance
BLOCK_CLR
44645
CAL_LINE_N Function
where
Statement Instance
CAL_LINE_N
X
X1
X0
N
N1
N0
44641
Parameter Explanation
CAL_LINE_X Function
where
Statement Instance
CAL_LINE_X
N
N1
N0
X
X1
X0
44640
Parameter Explanation
CLOCK_GET Function
Statement Instance
CLOCK_GET
HOUR
MINU
SEC
YEAR
MON
DAY
WEEK
44647
Parameter Explanation
CLOCK_SET Function
Statement Instance
CLOCK_SET
SET
HOUR
MINU
SEC
YEAR
MON
DAY
WEEK
44648
Parameter Explanation
COM_MSG Function
Statement Instance
COM_MSG
EN
PORT
ADR
SIG
NUM
44957
Parameter Explanation
COM_MSG_STATUS Function
Statement Instance
COM_MSG_STATUS
TYPE STAT
44958
Parameter Explanation
COM_US_CFG Function
Statement Instance
COM_US_CFG
ID
SET
45586
Parameter Explanation
COM_US_SET Function
Statement Instance
COM_US_SET
ID
45587
Parameter Explanation
EN_LED Function
Statement Instance
EN_LED
EN
44638
Parameter Explanation
EN_NET Function
Statement Instance
EN_NET
EN
44637
Parameter Explanation
EN_RS485 Function
Statement Instance
EN_RS485
EN
44636
Parameter Explanation
EV_CALE_CFG Function
Use this function block together with the function block EV_RTC_SET to
configure a calendar event. EV_RTC_SET is used to enable settings in the
CFG function blocks based on the real-time clock.
Statement Instance
EV_CALE_CFG
ENAB
MODE
44651
Parameter Explanation
EV_CLK_CFG Function
Use this function block together with the function block EV_RTC_SET to
configure an alarm event. EV_RTC_SET is used to enable settings in the CFG
function blocks based on the real-time clock.
Statement Instance
EV_CLK_CFG
EN
MON
DAY
HOUR
MIN
SEC
44652
Parameter Explanation
EV_GET Function
Get the state of system events, RTC events, and second-based events.
Statement Instance
EV_GET
SYS
RTC
RTCN
44796
Parameter Explanation
EV_RTC_SET Function
Enable real-time clock events. That is, to enable all event configurations.
Use this function block to enable settings in the CFG function blocks based
on the real-time clock.
Statement Instance
EV_RTC_SET
44653
EV_SEC_CFG Function
Use this function block together with the function block EV_RTC_SET to
configure a Time event. EV_RTC_SET is used to enable settings in the CFG
function blocks based on the real-time clock.
Statement Instance
EV_SEC_CFG
EN
44649
Parameter Explanation
EV_TIME_CFG Function
Use this function block together with the function block EV_RTC_SET to
configure a Time event. EV_RTC_SET is used to enable settings in the CFG
function blocks based on the real-time clock.
Statement Instance
EV_TIME_CFG
EN
MODE
44650
Parameter Explanation
HARTB_ADD Function
Statement Instance
HARTB_ADD
ID
ADR
CMD
TIME NO
CD
DD
UT
ST
44632
Parameter Explanation
HARTB_AEC Function
Statement Instance
HARTB_AEC
44633
HARTB_CLR Function
Statement Instance
HARTB_CLR
44631
HARTB_EC Function
Clear errors of the HART scan data block corresponding to the NUM.
Statement Instance
HARTB_EC
NUM
44634
Parameter Explanation
HARTB_EG Function
Statement Instance
HARTB_EG
ERR
NUM
CON
44635
Parameter Explanation
If you encounter the communication error, check the connection between the
HART port and the HART instrument, and the settings for the HART scan
block.
HARTT_CFG Function
Configure the triggering of the HART Scan function via the HART channel.
Statement Instance
HARTT_CFG
EN
ID
ADR
CMD
CD
DD
UT
ST
45588
Parameter Explanation
HARTT_ST Function
Statement Instance
HARTT_ST
ID STAT
45589
Parameter Explanation
PW_SHDN Function
Shut down the controller, and enable or disable the RTC alarm wake-up mode.
Statement Instance
PW_SHDN
RTC
HOUR
MINU
44639
SEC
Parameter Explanation
REG_MOVE Function
Statement Instance
REG_MOVE
T
NUM
SWAP
44665
Parameter Explanation
REG_R_REAL Function
Statement Instance
REG_R_REAL
ADR
OUT
SWAP
44661
Parameter Explanation
REG_R_STR Function
Statement Instance
REG_R_STR
ADR
LEN BUF
SWAP
45590
Parameter Explanation
REG_R_UDINT Function
Statement Instance
REG_R_UDINT
ADR
OUT
SWAP
44663
Parameter Explanation
REG_R_UINT Function
Statement Instance
REG_R_UINT
ADR OUT
44659
Parameter Explanation
REG_R_UINT
REG_W_REAL Function
Statement Instance
REG_W_REAL
ADR
SWAP
VAL
44662
Parameter Explanation
REG_W_STR Function
Statement Instance
REG_W_STR
ADR
BUF
LEN
45591
SWAP
Parameter Explanation
REG_W_UDINT Function
Statement Instance
REG_W_UDINT
ADR
SWAP
VAL
44664
Parameter Explanation
REG_W_UINT Function
Statement Instance
REG_W_UINT
ADR
VAL
44660
Parameter Explanation
REG_W_UINT
SWAP_DWORD Function
Byte manipulation operations. High byte and low byte exchange positions in a
word.
Statement Instance
SWAP_DWORD
IN OUT
44959
Parameter Explanation
SWAP_WORD Function
Byte manipulation operations. High byte and low byte exchange positions in a
word.
Statement Instance
SWAP_WORD
IN OUT
44960
Parameter Explanation
SYS_AD_GET Function
Read out the integer value and engineering value of the system’s analog/digital
(A/D) conversion.
Statement Instance
SYS_AD_GET
AD_N
CHL
AD_F
44666
Parameter Explanation
SYS_ERR_GET Function
Statement Instance
SYS_ERR_GET
ERR
44667
Parameter Explanation
SYS_ERR_RST Function
Statement Instance
SYS_ERR_RST
44668
This chapter provides information on the customized function blocks you can
use in DataSite Workbench for programming the 1758-FLO DataSite
controllers.
B_AERR_CLR Function
Statement Instance
B_AERR_CLR
44642
B_ERR_CLR Function
Statement Instance
B_ERR_CLR
NUM
44643
Parameter Explanation
B_ERR_GET Function
Statement Instance
B_ERR_GET
ERR
NUM
CON
44644
Parameter Explanation
BIT_EXPAND Function
Statement Instance
BIT_EXPAND
B00
B01
B02
B03
B04
B05
B06
B07
IN
B08
B09
B10
B11
B12
B13
B14
B15 44955
Parameter Explanation
BIT_MERGE Function
Statement Instance
BIT_MERGE
B00
B01
B02
B03
B04
B05
B06
B07
VAL
B08
B09
B10
B11
B12
B13
B14
B15
44956
Parameter Explanation
BLOCK_ADD Function
Statement Instance
BLOCK_ADD
PORT
ADR
SIG
TIME
B_NO
M
NUM
44646
Parameter Explanation
BLOCK_CLR Function
Statement Instance
BLOCK_CLR
44645
COM_MSG Function
Statement Instance
COM_MSG
EN
PORT
ADR
SIG
NUM
44957
Parameter Explanation
COM_MSG_STATUS Function
Statement Instance
COM_MSG_STATUS
TYPE STAT
44958
Parameter Explanation
COM_US_CFG Function
Statement Instance
COM_US_CFG
ID
SET
45586
Parameter Explanation
COM_US_SET Function
Statement Instance
COM_US_SET
ID
45587
Parameter Explanation
CAL_LINE_N Function
where
Statement Instance
CAL_LINE_N
X
X1
X0
N
N1
N0
44641
Parameter Explanation
CAL_LINE_X Function
where
Statement Instance
CAL_LINE_X
N
N1
N0
X
X1
X0
44640
Parameter Explanation
CLOCK_GET Function
Statement Instance
CLOCK_GET
HOUR
MINU
SEC
YEAR
MON
DAY
WEEK
44647
Parameter Explanation
CLOCK_SET Function
Statement Instance
CLOCK_SET
SET
HOUR
MINU
SEC
YEAR
MON
DAY
WEEK
44648
Parameter Explanation
EN_LED Function
Statement Instance
EN_LED
EN
44638
Parameter Explanation
EN_NET Function
Statement Instance
EN_NET
EN
44637
Parameter Explanation
EN_RS485 Function
Statement Instance
EN_RS485
EN
44636
Parameter Explanation
ENRON_CFG Function
Statement Instance
ENRON_CFG
ID
EN
45572
STAT
Parameter Explanation
GET_3_PARA Function
Statement Instance
GET_3_PARA
N AGA3
44669
Parameter Explanation
The structure of the process input parameters of the orifice plate (AGA3) is as
follows:
AGA3_PARA
STRUCT
fAGA_Pb : REAL; contract base pressure
fAGA_Tb : REAL; contract base temperature
fDp_Cutoff : REAL; low flow cut-off differential pressure
usPressType : UINT; pressure sensor type, 0-Gauge, 1-Absolute
fBarometric : REAL; barometric Pressure
usTapLocation : UINT; tap location, 0-upstream, 1-downstream
usOrifice_Type : UINT; orifice plate material, 0-Stainless Steel,
1-Carbon Steel, 2-Monel
fdr_Orifice : REAL; orifice diameter in reference temperature
fTr_Dr_Orifice : REAL; reference temperature of orifice plate diameter
usPipe_type : UINT; pipe tube material, 0-Stainless Steel,
1-Carbon Steel, 2-Monel
fDr_Pipe : REAL; pipe Tube diameter in reference temperature
fTr_Dr_Pipe : REAL; reference temperature of pipe tube diameter
usRD_type : UINT; relative density condition type
fRD : REAL; relative density
fRD_Ref_P : REAL; reference pressure for relative density
fRD_Ref_T : REAL; reference temperature for relative density
usUnit : UINT; unit
usZ_Mode : UINT; AGA8 method
END_STRUCT
This data structure is formed automatically after this function block in the
WorkBench data dictionary is selected.
GET_7_PARA Function
Statement Instance
GET_7_PARA
N AGA7
44670
Parameter Explanation
AGA7_PARA
STRUCT
fAGA_Pb : REAL; contract base pressure
fAGA_Tb : REAL; contract base temperature
usPressType : UINT; pressure sensor type, 0-Gauge, 1-Absolute
fBarometric : REAL; barometric pressure
usRD_type : UINT; relative density condition type
fRD : REAL; relative density
fRD_Ref_P : REAL; reference pressure for relative density
fRD_Ref_T : REAL; reference temperature for relative density
usUnit: UINT; unit
usZ_mode : UINT; AGA8 method
END_STRUCT
This data structure is formed automatically after this function block in the
WorkBench data dictionary is selected.
GET_C_ALL Function
Statement Instance
GET_C_ALL
N ALL
44671
Parameter Explanation
CUMU_ALL
STRUCT
QM_ALL : UDINT; total mass flow
QNV_ALL : UDINT; total volume flow in base conditions
QNF_ALL : UDINT; total volume flow in flowing conditions
END_STRUCT
This data structure is formed automatically after this function block in the
WorkBench data dictionary is selected.
GET_C_TIME Function
Statement Instance
GET_C_TIME
N TIME
44672
Parameter Explanation
CUMU_TIME
STRUCT
CNT_HOUR : UDINT; flow time of this hour
CNT_LHOUR : UDINT; flow time of last hour
CNT_DAY : UDINT; flow time of current day
CNT_YDAY : UDINT; flow time of previous day
END_STRUCT
This data structure is formed automatically after this function block in the
WorkBench data dictionary is selected.
GET_C_TODAY Function
Statement Instance
GET_C_TODAY
N Qtd
44673
Parameter Explanation
CUMU_TODAY
STRUCT
QM_TODAY : REAL; mass flow accumulated quantity of today
QVN_TODAY : REAL; volume flow accumulated quantity of today in
base conditions
QVF_TODAY : REAL; volume flow accumulated quantity of today in
flowing conditions
END_STRUCT
This data structure is formed automatically after this function block in the
WorkBench data dictionary is selected.
GET_C_YESTERDAY Function
Statement Instance
GET_C_YESTERDAY
N Qtd
44674
Parameter Explanation
CUMU_YESTERDAY
STRUCT
QM_YESTERDAY : REAL; mass flow accumulated quantity of yesterday
QVN_YESTERDAY : REAL; volume flow accumulated quantity of
yesterday in base conditions
QVF_YESTERDAY : REAL; volume flow accumulated quantity of
yesterday in flowing conditions
END_STRUCT
This data structure is formed automatically after this function block in the
WorkBench data dictionary is selected.
GET_ENG_VAL Function
Statement Instance
GET_ENG_VAL
N ENG
44675
Parameter Explanation
ENG_VAL
STRUCT
DP_IN : REAL; engineering value of differential pressure(AGA3)/
pulse count per second(AGA7)
P_IN : REAL; pressure
T_IN : REAL; temperature
END_STRUCT
This data structure is formed automatically after this function block in the
WorkBench data dictionary is selected.
GET_FLOW Function
Statement Instance
GET_FLOW
N RATE
44676
Parameter Explanation
FLOW_INSTAN
STRUCT
QMH : REAL; mass flow rate per hour
QVNH : REAL; volume flow rate per hour in base condition
QVFH : REAL; volume flow rate per hour in flowing condition
END_STRUCT
This data structure is formed automatically after this function block in the
WorkBench data dictionary is selected.
GET_GX Function
Statement Instance
GET_GX
N COMP
44677
Parameter Explanation
GAS_COMP
STRUCT
X_CH4 : REAL; Methane
X_N2 : REAL; Nitrogen
X_CO2 : REAL; Carbon Dioxide
X_C2H6 : REAL; Ethane
X_C3H8 : REAL; Propane
X_H2O : REAL; Water
X_H2S : REAL; Hydrogen Sulfide
X_H2 : REAL; Hydrogen
X_CO : REAL; Carbon Monoxide
X_O2 : REAL; Oxygen
X_IC4H10 : REAL; i-Butane
X_NC4H10 : REAL; n-Butane
X_IC5H12 : REAL; i-Pentane
X_NC5H12 : REAL; i-Pentane
X_NC6H14 : REAL; n-Hexane
X_NC7H16 : REAL; n-Heptane
X_NC8H18 : REAL; n-Octane
X_NC9H20 : REAL; n-Nonane
X_NC10H22 : REAL; n-Decane
X_HE : REAL; Helium
X_AR : REAL; Argon
END_STRUCT
This data structure is formed automatically after this function block in the
WorkBench data dictionary is selected.
GET_MR Function
Statement Instance
GET_MR
N MR
44678
Parameter Explanation
MEASURE_RANGE
STRUCT
DP_BASE : REAL; the b value of differential pressure(AGA3),
for turbine (AGA7), b=0
DP_K : REAL; the k value of differential pressure (AGA3),
for turbine (AGA7), k is the k factor of turbine
P_BASE : REAL; the b value of pressure
P_K : REAL; the k value of pressure
T_BASE : REAL; the b value of temperature
T_K : REAL; the k value of temperature
END_STRUCT
This data structure is formed automatically after this function block in the
WorkBench data dictionary is selected.
HARTB_ADD Function
Statement Instance
HARTB_ADD
ID
ADR
CMD
TIME NO
CD
DD
UT
ST
44632
Parameter Explanation
HARTB_AEC Function
Statement Instance
HARTB_AEC
44633
HARTB_CLR Function
Statement Instance
HARTB_CLR
44631
HARTB_EC Function
Clear errors of the HART scan data block corresponding to the NUM.
Statement Instance
HARTB_EC
NUM
44634
Parameter Explanation
HARTB_EG Function
Statement Instance
HARTB_EG
ERR
NUM
CON
44635
Parameter Explanation
If you encounter the communication error, check the connection between the
HART port and the HART instrument, and the settings for the HART scan
block.
HARTT_CFG Function
Configure the triggering of the HART Scan function via the HART channel.
Statement Instance
HARTT_CFG
EN
ID
ADR
CMD
CD
DD
UT
ST
45588
Parameter Explanation
HARTT_ST Function
Statement Instance
HARTT_ST
ID STAT
45589
Parameter Explanation
PW_SHDN Function
Shut down the controller, and enable or disable the RTC alarm wake-up mode.
Statement Instance
PW_SHDN
RTC
HOUR
MINU
44639
SEC
Parameter Explanation
REG_MOVE Function
Statement Instance
REG_MOVE
T
NUM
SWAP
44665
Parameter Explanation
REG_R_REAL Function
Statement Instance
REG_R_REAL
ADR
OUT
SWAP
44661
Parameter Explanation
REG_R_STR Function
Statement Instance
REG_R_STR
ADR
LEN BUF
SWAP
45590
Parameter Explanation
REG_R_UDINT Function
Statement Instance
REG_R_UDINT
ADR
OUT
SWAP
44663
Parameter Explanation
REG_R_UINT Function
Statement Instance
REG_R_UINT
ADR OUT
44659
Parameter Explanation
REG_W_REAL Function
Statement Instance
REG_W_REAL
ADR
SWAP
VAL
44662
Parameter Explanation
REG_W_STR Function
Statement Instance
REG_W_STR
ADR
BUF
LEN
45591
SWAP
Parameter Explanation
REG_W_UDINT Function
Statement Instance
REG_W_UDINT
ADR
SWAP
VAL
44664
Parameter Explanation
REG_W_UINT Function
Statement Instance
REG_W_UINT
ADR
VAL
44660
Parameter Explanation
SWAP_DWORD Function
Byte manipulation operations. High byte and low byte exchange positions in a
word.
Statement Instance
SWAP_DWORD
IN OUT
44959
Parameter Explanation
SWAP_WORD Function
Byte manipulation operations. High byte and low byte exchange positions in a
word.
Statement Instance
SWAP_WORD
IN OUT
44960
Parameter Explanation
SYS_AD_GET Function
Read out the integer value and engineering value of the system’s analog/digital
(A/D) conversion.
Statement Instance
SYS_AD_GET
AD_N
CHL
AD_F
44666
Parameter Explanation
SYS_ERR_GET Function
Statement Instance
SYS_ERR_GET
ERR
44667
Parameter Explanation
SYS_ERR_RST Function
Statement Instance
SYS_ERR_RST
44668
Rockwell Automation provides technical information on the Web to assist you in using its products.
At http://www.rockwellautomation.com/support/, you can find technical manuals, a knowledge base of FAQs, technical and
application notes, sample code and links to software service packs, and a MySupport feature that you can customize to make the
best use of these tools.
For an additional level of technical phone support for installation, configuration, and troubleshooting, we offer TechConnect
support programs. For more information, contact your local distributor or Rockwell Automation representative,
or visit http://www.rockwellautomation.com/support/.
Installation Assistance
If you experience a problem within the first 24 hours of installation, review the information that is contained in this manual.
You can contact Customer Support for initial help in getting your product up and running.
Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility.
However, if your product is not functioning and needs to be returned, follow these procedures.
United States Contact your distributor. You must provide a Customer Support case number (call the phone number above to obtain
one) to your distributor to complete the return process.
Outside United States Please contact your local Rockwell Automation representative for the return procedure.
Documentation Feedback
Your comments will help us serve your documentation needs better. If you have any suggestions on how to improve this document,
complete this form, publication RA-DU002, available at http://www.rockwellautomation.com/literature/.
Rockwell Otomasyon Ticaret A.Ş., Kar Plaza İş Merkezi E Blok Kat:6 34752 İçerenköy, İstanbul, Tel: +90 (216) 5698400