Allen-Bradley 2080-LC20-20QWB User Manual page 99

Micro820 series
Hide thumbs Also See for 2080-LC20-20QWB:
Table of Contents

Advertisement

Rockwell Automation Publication 2080-UM005B-EN-E - March 2015
Datalog Function (DLG) Block
The datalogging function block lets a user program to write run-time global
values into the datalogging file in microSD card.
DLG
Enable
TSEnable
CfgId
DLG Input and Output Parameters
Parameter
Parameter
Type
Enable
INPUT
TSEnable
INPUT
CfgId
INPUT
Status
OUTPUT
ErrorID
OUTPUT
DLG Function Block Status
Status Code
Description
0
Datalogging IDLE status.
1
Datalogging BUSY status.
2
Datalogging COMPLETE SUCCEED status.
3
Datalogging COMPLETE ERROR status.
DLG Function Block Errors
Status Code
Name
0
DLG_ERR_NONE
1
DLG_ERR_NO_SDCARD
2
DLG_ERR_RESERVED
3
DLG_ERR_DATAFILE_ACCESS
4
DLG_ERR_CFG_ABSENT
5
DLG_ERR_CFG_ID
6
DLG_ERR_RESOURCE_BUSY
Status
ErrorID
Data Type Description
BOOL
Datalogging 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.
BOOL
Date and timestamp logging enable flag.
USINT
Configured dataset (DSET) number (1...10).
USINT
Datalogging function block current status.
UDINT
Error ID if DLG Write fails.
Description
No error.
microSD card is missing.
Reserved.
Error accessing datalog file in microSD card.
Datalog configuration file is absent.
Configuration ID is missing in datalog
configuration file.
Same Configuration ID is used with other
datalog function block call at the same time
Using microSD Cards Chapter 9
91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents