Configuration control (option handling)
7.4 Transferring the control data record in the user program of the CPU
Distributed I/O system
78
System Manual, 08/2021, A5E31861578-AJ
Detailed application example
You can find a detailed application example for the configuration control in S7-1500 in here
under the keyword "Application example for ET 200SP (PROFINET) and S7-1500 based on the
library" on the Internet (
https://support.industry.siemens.com/cs/ww/en/view/29430270
).
7.4
Transferring the control data record in the user program of the
CPU
Required steps
Transfer the created control data record 196 to the interface module using the WRREC (Write
data record) instruction.
Parameters of the WRREC instruction
Below, you will find explanations of individual parameters of the WRREC instruction which
you must supply with specific values in the configuration control context. You can find
additional information on the WRREC instruction in the STEP 7 online help.
ID
HW identifier of the interface module.
If you have selected the interface module in the network view or device view, the HW
identifier is available in the
System constants
tab of the Inspector window. Use the
value of the system constant "<Name_of_interface_module> Head".
INDEX
Data record number: 196 (decimal)
RECORD
Control data record to be transferred.
You can find the structure of the control data record in section Control data record for
the ET 200AL distributed I/O system (Page 71).
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 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.
Summary of Contents for SIMATIC ET 200AL
Page 2: ......
Page 143: ......
Page 218: ......
Page 250: ......
Page 296: ......
Page 337: ......
Page 365: ......
Page 392: ......
Page 419: ......
Page 451: ......
Page 483: ......
Page 597: ......
Page 648: ......
Page 702: ......
Page 739: ......
Page 781: ......
Page 804: ......
Page 828: ......
Page 853: ......
Page 880: ......
Page 906: ......
Page 996: ...Diagnostics ...
Page 1121: ......
Page 1565: ......