Siemens S7-1200 System Manual page 390

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Extended instructions
8.7 Recipes and Data logs
DataLogNewFile (Data log in new file) instruction
Table 8- 170 DataLogNewFile instruction
LAD / FBD
In the SCL example, "DataLogNewFile_DB" is the name of the instance DB.
2
Table 8- 171 Data types for the parameters
Parameter and type
REQ
IN
RECORDS
IN
NAME
IN
ID
In/Out
DONE
OUT
BUSY
OUT
ERROR
OUT
STATUS
OUT
390
SCL
"DataLogNewFile_DB"(
req:=_bool_in_,
records=:_udint_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
name=:_DataLog_out_,
ID:=_dword_inout_);
Data type
Description
Bool
A low to high (positive edge) signal starts the operation. (Default value:
False)
UDInt
The maximum number of data records the circular data log can contain
before overwriting the oldest entry. (Default value: 1)
The header record is not included. Sufficient available CPU load memory
must exist in order to successfully create the data log.
Variant
Data log name: You provide the name. This variant only supports a String
data type and can only be located in local, DB, or M memory. (Default value:
' ')
The string reference is also used as the name of the data log file. The name
characters must follow the Windows file system naming restrictions.
Characters \ / : * ? " < > | and the space character are not allowed.)
DWord
Numeric data log identifier(Default value: 0):
At execution, the ID input identifies a valid data log. The new data log
configuration is copied from this data log.
After execution, the ID parameter becomes an output that returns the ID
of the newly created data log file.
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.
Bool
0 - No operation in progress
1 - Operation on progress
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
Allows your program to create a new data
log file based upon an existing data log file.
STEP 7 automatically creates the associated
instance DB when you insert the instruction.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents