7 Programming FCs (Functions) and FBs for S7 Ethernet CPs
A-226
S7-CPs for Industrial Ethernet Configuring and Commissioning
Release 01/2007
C79000-G8976-C182-07
7.6 FB55 IP_CONFIG for Programmed Communication
Connections
Meaning of the Block
Connections can be specified in a DB (configuration DB) and transferred to the CP
with an FB.
You can use this variant of programmed communication connections as an
alternative to connection configuration with STEP 7.
With the function block FB55, a configuration data block (CONF_DB) is transferred
to the CP. The configuration data block contains all the connection data for an
Ethernet CP.
Depending on the size of the configuration DB, the data may be transferred to the
CP in several segments. This means that the FB must continue to be called until
the FB signals complete transfer by setting the DONE bit to 1.
Note
Read the description of the configuration data block CONF_DB in Section 6.
Call
Call interface in FBD representation
LADDR
IP_CONFIG
LEN
CONF_DB
EXT_STATUS
ERROR
STATUS
INT
WORD
ANY
WORD
WORD
DONE BOOL
BOOL
ACTBOOL
Example in STL representation
STL Explanation
call fb 55
ACT := M 10.0
LADDR := W#16#0100
CONF_DB := P#db99.dbx10.0 byte 240
LEN := MW 14
DONE := M 10.1
ERROR := M 10.2
STATUS := MW 16
EXT_STATUS := MW 18
//IP_CONFIG block call
//Job initiated by memory bit
//=LADDR 256 dec. in hardware configuration
//Data block with connection data
//Length info for the connection data
//Execution code
//Error code
//Status code
//Cause of error in connection data