Flexible automation concepts
10.2 Configuration control (option handling)
Automation system
System Manual, 12/2017, A5E03461182-AE
219
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.
Note
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 ...
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. Please note
that the variable used to select the control data record must be stored 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.
–
In the graphical programming languages, you implement the loop using instructions for
program control.
Summary of Contents for Simatic S7-1500/ET 200MP
Page 1: ......