Siemens SIMATIC S7-1500 System Manual page 158

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

Advertisement

Flexible automation concepts
9.2 Configuration control (option handling)
Special requirements relating to the transfer of the control data record to the CPU
● If you have enabled configuration control, the CPU is not ready for operation without a
control data record. The CPU returns from startup to STOP if a valid control data record is
not transferred in the startup OB (for example, OB 100). The central I/O is not initialized
in this case. The cause for STOP mode is entered in the diagnostics buffer.
Not e
If an incorrect control data record is transferred to the CPU in the startup OB, the startup
of the CPU may be prevented.
In this case, perform a reset to factory settings of the CPU and then transfer a correct
control data record.
● The CPU processes the WRREC instruction for transferring the control data record
asynchronously. For this reason, you must call WRREC in the startup OB (for example,
OB 100) repeatedly in a loop until the output parameters "BUSY" and "DONE" indicate
that the data record has been transferred.
– Tip: To program the loop, use the SCL programming language with the REPEAT ...
– In the graphical programming languages, you implement the loop using instructions for
158
UNTIL instruction.
REPEAT
"WRREC_DB"(REQ := "start_config_control",
ID := "Local Configuration",
INDEX := 196,
LEN := "conf_LEN",
DONE => "conf_DONE",
BUSY => "conf_BUSY",
RECORD := "ConfDB".ConfigControl["ConfDB".Option],
//Selection of control data record*
ERROR => "conf_ERROR",
STATUS => "conf_STATUS");
UNTIL NOT "conf_BUSY"
END_REPEAT;
*Selection of the station option in the user program: In order for the CPU to know
which station option you want to operate, you must set up a possibility to select
between the various control data records in the user program. You can implement the
selection, for example, via an Int tag that references an array element. Note that the
tag for selecting the control data record must be located in the retentive memory area.
If the tag is not retentive, it will be initialized during startup of the CPU and will thus be
unavailable for selection of the station option.
program control.
Automation system
System Manual, 09/2016, A5E03461182-AD

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic et200mp

Table of Contents