6. Function blocks
6.1 Manufacturer function blocks
Other
Retention
The function block does not recognize retentive data.
Create log files
Data logged with the DL data logger manufacturer function block is stored on the
card in a directory. This directory will be named as specified under Programming
view/Data logger - Parameter tab in the Directory name of log session field.
The data in the log files is binary-encoded and cannot be read with standard Win-
dows PC tools. Within easySoft 8, it can be read with the card manager, where you
can see all the logs on the card and also convert them to *.csv format, summarize
them and save them to a file. This can then be opened and edited with Excel.
The recording of binary data in various log files takes place for security reasons. If a
file is corrupt or if the card was pulled out while being written to, only the data
records in that file are corrupt. The previous ones are saved securely.
Please keep in mind that only one folder can be created for each log ses-
sion, even if the number of files per log session is selected as greater
than 1 and several binary files are also stored accordingly.
Task: Any time the device button P1 is pressed, this should be logged. A total of 3 log
files with 3 data sets each should be logged. No further logging will occur after-
wards.
To do so, follow the steps below:
Switch to Programming view.
Place a function block DL in the workspace.
From the catalog, drag a N/O to the function block input DL01_T1.
In the Contact tab, configure the operand as P device button

Fig. 234: Workspace with function block and device button
easyE402/24 MN050009ENEaton.com
513