Extended instructions
8.7 Recipes and Data logs
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
387
Table 8- 163 Values of ERROR and STATUS
Warning: Data log file already open by this application program
Call with no REQ edge: BUSY = 0, DONE = 0
First call with REQ edge (working): BUSY = 1, DONE = 0
th
call (working): BUSY = 1, DONE = 0
All internal instance memory is in use.
Data log definition is inconsistent with existing data log file.
Name parameter is not a String reference.
Too many open files: No more than eight opened data log files are allowed.
DataLogWrite (Write data log) instruction
Table 8- 164 DataLogWrite instruction
req:=_bool_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
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.
2
In the SCL example, "DataLogWrite_DB" is the name of the instance DB.
Table 8- 165 Data types for the parameters
REQ IN Bool A low to high (positive edge) signal starts the operation. (Default value:
ID In/Out DWord Numeric data log identifier. Only used as an input for the DataLogWrite
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
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.
Execution condition code (Default value: 0)