Datalogwrite - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

101BExtended instructions
8.7 Data logging
Table 8- 129 Data types for the parameters
Parameter and type
REQ
IN
ID
In/Out
DONE
OUT
BUSY
OUT
ERROR
OUT
STATUS
OUT
Table 8- 130 Values of ERROR and STATUS
ERROR
STATUS (W#16#)
0
0000
0
0001
0
7000
0
7001
0
7002
1
8092
8.7.2.4

DataLogWrite

Table 8- 131 DataLogWrite instruction
LAD / FBD
SCL
"DataLogWrite_DB"(
In the SCL example, "DataLogWrite_DB" is the name of the instance DB.
2
298
Data type
Description
Bool
A low to high (positive edge) signal starts the operation. (Default value: False)
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.
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
No error
Data log not open
Call with no REQ edge: BUSY = 0, DONE = 0
First call with REQ edge (working): BUSY = 1, DONE = 0
N
call (working): BUSY = 1, DONE = 0
th
Data log does not exist.
req:=_bool_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
ID:=_dword_inout_);
Description
Writes a data record into the specified data log. The pre-
existing target data log must be open before a
DataLogWrite operation is allowed.
STEP 7 automatically creates the associated instance DB
when you insert the instruction.
System Manual, 11/2011, A5E02486680-05
S7-1200 Programmable controller

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents