Extended instructions
9.9 Recipes and Data logs
S7-1200 Programmable controller
520 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 9- 211 Data types for the parameters
A low to high (positive edge) signal starts the operation. (Default value: False)
ID In/Out DWord Numeric identifier of a data log. Only used as an input for the DataLogClose
instruction. (Default value: 0)
Symbolic name access for this parameter is not allowed.
DONE OUT Bool The DONE bit is TRUE for one scan after the last request was completed with
BUSY OUT Bool
• 0 - No operation in progress
• 1- Operation in progress
ERROR OUT Bool The ERROR bit is TRUE for one scan, after the last request was terminated
with an error. The error code value at the STATUS parameter is valid only
during the single scan where ERROR = TRUE.
Execution condition code (Default value: 0)
Table 9- 212 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
DataLogDelete (Delete data log)
Table 9- 213 DataLogDelete instruction
REQ:=_bool_in_,
NAME:=_variant_in_,
DelFile:=_bool_in_,
DONE=>_bool_out_,
BUSY=>_bool_out_,
ERROR=>_bool_out_,
STATUS=>_word_out_,
You use the "DataLogDelete" instruction to delete
a data log file. The data log and the data records
it contains can only be deleted if it was created
with the "DataLogCreate" or "DataLogNewFile"
instruction.
"DataLogDelete_DB" is the name of the instance DB.