7 Programming FCs (Functions) and FBs for S7 Ethernet CPs
A-227
S7-CPs for Industrial Ethernet Configuring and Commissioning
Release 01/2007
C79000-G8976-C182-07
How It Works
The following diagram illustrates the normal sequence of connection configuration
triggered by an IP_CONFIG in the user program.
The job executes as soon as the parameter ACT is transferred with value 1.
Due to the segmented transfer of the CONF_DB, you will need to repeat the job
with ACT = 1 until completion of the job is indicated in the parameters DONE,
ERROR, and STATUS.
If you want to transfer a connection configuration again later, the parameter ACT
must first be transferred with value 0 in at least one further call.
User program
(CPU cycle)
Ethernet CP
Call IP_CONFIG
0, 0, Job active
1)
Call IP_CONFIG
Set ACT = 1
CP is supplied with system data
(including the IP address);
Connections are configured on the
CP.
Legend:
1)
Parameter transfer DONE, ERROR, STATUS
Time Time
Set ACT = 0
Call IP_CONFIG
0, 0, Job active
1)
CONF_DB is
transferred in
segments.
Supply CONF_DB with
data
Job completed without error
1)
Call IP_CONFIG
Notice
The data transferred with the configuration DB are stored in volatile memory on
the CP and must be downloaded to the CP again following a power down!
FB55 IP_CONFIG - continued