Datalogopen - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

101BExtended instructions
8.7 Data logging
8.7.2.2

DataLogOpen

Table 8- 125 DataLogOpen instruction
LAD / FBD
SCL
"DataLogOpen_DB"(
In the SCL example, "DataLogOpen_DB" is the name of the instance DB.
2
Table 8- 126 Data types for the parameters
Parameter and type
REQ
IN
MODE
IN
NAME
IN
ID
In/Out
DONE
OUT
BUSY
OUT
ERROR
OUT
STATUS
OUT
You can provide either the NAME or an ID (ID parameter as an input) of a pre-existing data
log. If you provide both parameters and a valid ID does correspond to the NAME data log,
then the ID is used, and the NAME ignored.
296
req:=_bool_in_,
mode:=_uint_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
name:=_string_inout_,
ID:=_dword_inout_);
Data type
Description
Bool
A low to high (positive edge) signal starts the operation. (Default value:
False)
UInt
Operation mode:
Variant
Name of an existing data log: This variant only supports a String data type
and can only be located in local, DB, or M memory. (Default value: ' ')
DWord
Numeric identifier of a data log. (Default value: 0)
Note: Symbolic name access for this parameter is not allowed.
Bool
The DONE bit is TRUE for one scan, after the last request was completed
with no error. (Default value: False)
Bool
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.
Word
Execution condition code (Default value: 0)
Description
Opens a pre-existing data log file. A data log must be
opened before you can write new records to the log. Data
logs can be opened and closed individually. A maximum
of eight data logs can be open at the same time.
STEP 7 automatically creates the associated instance DB
when you insert the instruction.
0 - Append to existing data (Default value)
1 - Clear all existing records
0 - No operation in progress
1 - Operation on progress
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents