Extended instructions
9.9 Recipes and Data logs
S7-1200 Programmable controller
524 System Manual, V4.2, 09/2016, A5E02486680-AK
DataLogNewFile operation: When your program logic gets the data log is full signal, this
state is used to activate a DataLogNewFile operation. You must execute DataLogNewFile
with the ID of an existing (usually full) and open data log, but a new unique NAME
parameter. After the DataLogNewFile operation is done, a new data log ID value is returned
(as an output parameter) that corresponds to the new data log name. The new data log file is
implicitly opened and is ready to store new records. New DataLogWrite operations that are
directed to the new data log file, must use the ID value returned by the DataLogNewFile
operation.
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.
Table 9- 216 Values of ERROR and STATUS
Call with no REQ edge: BUSY = 0, DONE = 0
First call with REQ edge (working): BUSY = 1, DONE = 0
th
call (working): BUSY = 1, DONE = 0
All internal instance memory is in use.
Name parameter is not a String reference.
Requested file length exceeds file system maximum.
1 80B2 Out of resource IDs
Note: Delete some existing data logs to create resources for a new data log.
1 80B3 Insufficient load memory available.