Transferring Control Data Record In The Startup Program Of The Cpu - Siemens SIMATIC S7-1500 System Manual

Automation system
Hide thumbs Also See for SIMATIC S7-1500:
Table of Contents

Advertisement

Flexible automation concepts
9.2 Configuration control
3. Transfer the control data record with the WRREC instruction.
For the CPU:
The configuration control for the centrally inserted modules is only effective when the
operating state of the CPU changes from STOP to RUN. This means you have to call the
extended WRREC instruction (write data record) in the startup OB and transfer the
created control data record to the CPU.
If no valid control data record is transferred in the startup OB, the configuration control is
not ready. The CPU returns from startup to STOP in this case.
A description of how to transfer the control data record for a CPU is available in the
section Transferring control data record in the startup program of the CPU (Page 136).
9.2.6

Transferring control data record in the startup program of the CPU

The CPU processes the WRREC instruction for transfer of the control data record
asynchronously. For this reason, you must call WRREC in the startup OB repeatedly in a
loop until the output parameters "BUSY" or "DONE" indicate that the data record has been
transferred.
Tip: To program the loop, use the SCL programming language with the REPEAT ... UNTIL
instruction.
REPEAT
UNTIL NOT "conf_BUSY"
END_REPEAT;
In the graphic programming languages, you implement the loop using instructions for
program control.
136
"WRREC_DB"(REQ := "start_config_control",
ID := 33,
INDEX := 196,
LEN := "conf_LEN",
DONE => "conf_DONE",
BUSY => "conf_BUSY",
ERROR => "conf_ERROR",
RECORD := "ConfDB",
STATUS => "conf_STATUS");
Automation system
System Manual, 12/2014, A5E03461182-AC

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic et 200mp

Table of Contents