Functions
5.9 Standard machine projects
PROFINET with STEP 7 V15
Function Manual, 12/2017, A5E03444486-AH
233
Parameter MODE of instruction "ReconfigIOSystem"
You control how the "ReconfigIOSystem" instruction works with the MODE parameter.
The following values are possible for the MODE input parameter:
All IO devices of the IO system can be disabled by calling the instruction with MODE 1. The
"ReconfigIOSystem" instruction uses the "D_ACT_DP" instruction internally. "ReconfigIO-
System" returns errors that are detected by D_ACT_DP in the following output parameters:
• STATUS (error code)
• ERR_INFO (hardware identifier of the IO device causing the error).
In STATUS and ERR_INFO, the CPU enters the last determined error/HW identifier and in
so doing overwrites an existing error code. For this reason, additional errors can be present
besides the entered error.
For controlling the actual configuration of the IO system, the instruction transfers the data
record to the PROFINET interface, which is addressed with LADDR block parameter (HW
identifier of the PROFINET interface).
All non-optional IO devices in the IO system and optional IO devices that are listed in the
control data record CTRLREC are enabled.
The optional IO devices that are
listed in the CTRLREC data record remain disabled.
If IO devices that are part of docking units (alternating IO devices in operation) are listed in
the CTRLREC control data record, the PN IO system reacts as follows:
• IO devices of the docking units remain disabled when ReconfigIOSystem is called with
MODE 3.
This reaction corresponds to the reaction of a configuration without configuration-
controlled IO devices. IO devices of docking units are disabled by default and must be
enabled in the user program.
For more information on docking units, refer to the section Docking systems (Page 246).
Rules for the call sequence of "ReconfigIOSystem"
● Always supply the instruction "ReconfigIOSystem" with the same control data record
(CTRLREC input parameter)!
● Call sequence following POWER OFF -> POWER ON transition:
– ReconfigIOSystem call with MODE 1 (optional).
– ReconfigIOSystem call with MODE 2 (mandatory, even without previous
reconfiguration!).
– ReconfigIOSystem call with MODE 3 (mandatory).
● Call sequence following STOP > RUN transition:
– ReconfigIOSystem call with MODE 1 (optional).
– ReconfigIOSystem call with MODE 2 (mandatory, even when configuration was
modified in STOP state). Otherwise not required).
– ReconfigIOSystem call with MODE 3 (mandatory).
● Call sequence for reconfiguration in RUN state:
– ReconfigIOSystem call with MODE 1 (mandatory).
– ReconfigIOSystem call with MODE 2 (mandatory).
– ReconfigIOSystem call with MODE 3 (mandatory).