EasyManua.ls Logo

Siemens S7-1200 - Page 389

Siemens S7-1200
1028 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
8.7 Recipes and Data logs
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
389
DataLogClose (Close data log) instruction
Table 8- 167 DataLogClose instruction
LAD / FBD
SCL
Description
"DataLogClose_DB"(
req:=_bool_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
ID:=_dword_inout_);
Closes an open data log file. DataLogWrite operations to
a closed data log result in an error. No write operations
are allowed to this data log until another DataLogOpen
operation is performed.
A transition to STOP mode will close all open data log
files.
STEP 7 automatically creates the associated instance
DB when you insert the instruction.
2
In the SCL example, "DataLogClose_DB" is the name of the instance DB.
Table 8- 168 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)
ID In/Out DWord Numeric identifier of a data log. Only used as an input for the DataLogClose
instruction. (Default value: 0)
Note: 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
no error.
BUSY OUT Bool
0 - No operation in progress
1- Operation on 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.
STATUS
OUT
Word
Execution condition code (Default value: 0)
Table 8- 169 Values of ERROR and STATUS
ERROR
STATUS (W#16#)
Description
0
0000
No error
0
0001
Data log not open
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
8092
Data log does not exist.

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals