Siemens SIMATIC ET 200AL System Manual page 80

Distributed i/o system
Hide thumbs Also See for SIMATIC ET 200AL:
Table of Contents

Advertisement

Configuration control (option handling)
7.4 Transferring the control data record in the user program of the CPU
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
INDEX
RECORD
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.
78
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".
Data record number: 196 (decimal)
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).
Distributed I/O system
System Manual, 08/2021, A5E31861578-AJ

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents