Hide thumbs Also See for S7-1200:
Table of Contents
Extended instructions
8.7 Recipes and Data logs
The memory address and data structure of the record buffer is configured by the DATA
parameter of a DataLogCreate instruction. You must programmatically load the record buffer
with current run-time process values and then execute the DataLogWrite instruction to move
new record data from the buffer to the data log.
The ID parameter identifies a data log and data record configuration. The ID number is
generated when a data log is created.
If there are empty records in the circular data log file, then the next available empty record
will be written. If all records are full, then the oldest record will be overwritten.
NOTICE
Data log creation operations must be complete, before starting a data log write operation
DataLogCreate and DataLogNewFile log file creation operations extend over many
program scan cycles. The actual time required for the log file creation depends on the
record structure and number of records. Your program logic must monitor and catch the
DONE bit's transition to the TRUE state that signals the completion of a log file creation. If a
DataLogWrite instruction is executed before a data log creation operation is complete, then
the write operation will fail to write a new data log record as expected.
NOTICE
Potential for data log data loss during a CPU power failure
If there is a power failure during an incomplete DataLogWrite operation, then the data
record being transferred to the data log could be lost.
Table 8- 166 Values of ERROR and STATUS
ERROR
STATUS (W#16#)
0
0000
0
0001
0
7000
0
7001
0
7002
1
8070
1
8092
1
80B0
388
Description
No error
Indicates that the data log is full: Each data log is created with a specified
maximum number of records. The last record of the maximum number has been
written. The next write operation will overwrite the oldest record.
Call with no REQ edge: BUSY = 0, DONE = 0
First call with REQ edge (working): BUSY = 1, DONE = 0
N
call (working): BUSY = 1, DONE = 0
th
All internal instance memory is in use.
Data log does not exist.
Data log file is not open (for explicit open mode only).
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Table of Contents
loading

Table of Contents