Functions
5.9 Standard machine projects
PROFINET with STEP 7 V15
Function Manual, 12/2017, A5E03444486-AH
235
To keep the startup times short when activating the optional IO devices
(ReconfigIOSystem, mode 3), note the following tip: Check the device numbers of the IO
devices. The device numbers should follow the topological interconnection starting at the
IO controller in ascending order. The further an IO device is from the IO controller
topologically, in other words the more IO devices there are between the IO controller and
the IO device in question, the higher the device number should be.
You set the device numbers in the "Ethernet addresses - PROFINET" area in the
Inspector window with the PROFINET interface selected.
Example of the assignment of device numbers with a linear topology:
Figure 5-86 Example: Device numbers in a line topology
● The CPU processes the instruction "ReconfigIOSystem" to transfer the control data
record asynchronously.
For this reason, you must call "ReconfigIOSystem" in a loop repeatedly when calling the
instruction in the startup program until the output parameter "BUSY" or "DONE" indicate
that the data record has been transferred.
Tip: To program the loop, use the SCL programming language with the instruction
REPEAT ... UNTIL.
REPEAT
"ReconfigIOSystem"(REQ := "start_config_ctrl",
MODE := 1,
LADDR := 64,
CTRLREC := "myCTRLREC".ArrMachineConfig0,
DONE => "conf_DONE",
BUSY => "conf_BUSY",
ERROR => "conf_ERROR",
STATUS => "conf_STATUS");
UNTIL NOT "conf_BUSY"
END_REPEAT;
For information on the basic structure of the data record and on using the instruction
"ReconfigIOSystem" see the STEP 7 online help.
Configuring IO devices as optional (Page 229)