108
Rockwell Automation Publication 2080-UM005E-EN-E - March 2018
Chapter 9
Using microSD Cards
Data Log Function (DLG) Block
The data logging function block lets a user program to write run-time global
values into the data logging file in microSD card.
DLG Input and Output Parameters
Parameter
Parameter
Type
Data Type Description
Enable
INPUT
BOOL
Data logging write function enable.
On rising edge (that is, Enable value is triggered from
low to high), the function block executes. The
precondition for execution is that the last operation
has completed.
TSEnable
INPUT
BOOL
Date and timestamp logging enable flag.
CfgId
INPUT
USINT
Configured dataset (DSET) number (1…10).
Status
OUTPUT
USINT
Data logging function block current status.
ErrorID
OUTPUT
UDINT
Error ID if DLG Write fails.
DLG Function Block Status
Status Code
Description
0
Data logging IDLE status.
1
Data logging BUSY status.
2
Data logging COMPLETE SUCCEED status.
3
Data logging COMPLETE ERROR status.
DLG Function Block Errors
Status Code
Name
Description
0
DLG_ERR_NONE
No error.
1
DLG_ERR_NO_SDCARD
microSD card is missing.
2
DLG_ERR_RESERVED
Reserved.
3
DLG_ERR_DATAFILE_ACCESS
Error accessing data log file in microSD card.
4
DLG_ERR_CFG_ABSENT
Data log configuration file is absent.
5
DLG_ERR_CFG_ID
Configuration ID is missing in data log
configuration file.
6
DLG_ERR_RESOURCE_BUSY
Same Configuration ID is used with other data
log function block call at the same time
DLG
Enable
TSEnable
CfgId
Status
ErrorID
Содержание 2080-LC20-20AWB
Страница 6: ...vi Rockwell Automation Publication 2080 UM005E EN E March 2018 Preface Notes...
Страница 10: ...x Rockwell Automation Publication 2080 UM005E EN E March 2018 Table of Contents Notes...
Страница 16: ...6 Rockwell Automation Publication 2080 UM005E EN E March 2018 Chapter 1 Hardware Overview Notes...
Страница 40: ...30 Rockwell Automation Publication 2080 UM005E EN E March 2018 Chapter 2 About Your Controller Notes...
Страница 46: ...36 Rockwell Automation Publication 2080 UM005E EN E March 2018 Chapter 3 Install Your Controller Notes...
Страница 66: ...56 Rockwell Automation Publication 2080 UM005E EN E March 2018 Chapter 4 Wire Your Controller Notes...
Страница 106: ...96 Rockwell Automation Publication 2080 UM005E EN E March 2018 Chapter 8 Using the Micro800 Remote LCD Notes...
Страница 162: ...152 Rockwell Automation Publication 2080 UM005E EN E March 2018 Appendix B Troubleshooting Notes...
Страница 173: ...Rockwell Automation Publication 2080 UM005E EN E March 2018 163 Quickstarts Appendix C...
Страница 210: ...Rockwell Automation Publication 2080 UM005E EN E March 2018 200 Index Notes...
Страница 211: ...Rockwell Automation Publication 2080 UM005E EN E March 2018 201...