EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 524

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.
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.
Table 9- 216 Values of ERROR and STATUS
ERROR
STATUS (W#16#)
Description
0
0000
No error
0
7000
Call with no REQ edge: BUSY = 0, DONE = 0
0
7001
First call with REQ edge (working): BUSY = 1, DONE = 0
0
7002
N
th
call (working): BUSY = 1, DONE = 0
1
8070
All internal instance memory is in use.
1
8090
Invalid file name
1
8091
Name parameter is not a String reference.
1
8092
Data log does not exist.
1
8093
Data log already exists.
1
8097
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.
1
80B4
MC is write-protected.
1
80C1
Too many open files.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals