EasyManua.ls Logo

Siemens SIMATIC S7-1200

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
510 System Manual, V4.2, 09/2016, A5E02486680-AK
9.9.2.2
Program instructions that control data logs
DataLogCreate (Create data log)
Table 9- 200 DataLogCreate instruction
LAD/FBD
SCL
Description
"DataLogCreate_DB"(
req:=_bool_in_,
records:=_udint_in_,
format:=_uint_in_,
timestamp:=_uint_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
name:=_string_inout_,
ID:=_dword_inout_,
header:=_variant_inout_,
data:=_variant_inout_);
Creates and initializes a data log file. The CPU
creates the file in the \DataLogs folder, using the
name in the NAME parameter, and implicitly
opens the file for write operations. You can use
the Data log instructions in your program to store
runtime process data in the flash memory of the
CPU or on the memory card.
STEP 7 automatically creates the associated
instance DB when you insert the instruction.
1
In the SCL example, "DataLogCreate_DB" is the name of the instance DB.
Table 9- 201 Data types for the parameters
Parameter and type
Data type
Description
REQ IN Bool A low to high (positive edge) signal starts the operation.
(Default value: False)
RECORDS IN UDint The maximum number of data records the circular data
log can contain before overwriting the oldest entry:
The header record is not included. Sufficient available
PLC load memory must exist in order to successfully
create the data log. (Default value - 1)
FORMAT IN UInt Data log format:
0 - Internal format (not supported)
1 - Comma separated values "csv-eng" (Default val-
ue)
TIMESTAMP IN UInt Data time stamp format: Column headers for date and
time fields are not required. The time stamp uses the
system time (Coordinated Universal Time - UTC) and not
the local time.
0 - No time stamp
1 - Date and time stamp (Default value)

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals