
242
Rockwell Automation Publication 2080-UM002N-EN-E - November 2022
Chapter 12 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
7
DLG_ERR_CFG_FORMAT
Data log configuration file format is wrong.
8
DLG_ERR_RTC
Real time clock is invalid.
9
DLG_ERR_UNKNOWN
Unspecified error has occurred.
IMPORTANT
File access error will be returned during DLG function block execution
when card is full.
DLG
Enable
TSEnable
CfgId
Status
ErrorID
Содержание 2080-L50E-24AWB
Страница 14: ...14 Rockwell Automation Publication 2080 UM002N EN E November 2022 Notes ...
Страница 54: ...54 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 4 Wire Your Controller Notes ...
Страница 128: ...128 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 7 Program Execution in Micro800 Notes ...
Страница 156: ...156 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 8 EtherNet IP Network Notes ...
Страница 198: ...198 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 9 Motion Control Notes ...
Страница 232: ...232 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 11 Controller Security Notes ...
Страница 260: ...260 Rockwell Automation Publication 2080 UM002N EN E November 2022 Chapter 12 Using microSD Cards Notes ...
Страница 266: ...266 Rockwell Automation Publication 2080 UM002N EN E November 2022 Appendix A Modbus Mapping for Micro800 Notes ...
Страница 275: ...Rockwell Automation Publication 2080 UM002N EN E November 2022 275 Appendix B Quickstarts 10 Click Finish to complete ...
Страница 332: ...332 Rockwell Automation Publication 2080 UM002N EN E November 2022 Appendix E PID Function Blocks Notes ...
Страница 352: ...352 Rockwell Automation Publication 2080 UM002N EN E November 2022 Appendix G Connect to Networks using DF1 Notes ...
Страница 388: ...388 Rockwell Automation Publication 2080 UM002N EN E November 2022 Index Notes ...