Siemens NCM S7 Manual De Usuario

Descargar
Página de 255
Programming FCs (Functions) and FBs for S7 Ethernet CPs
197
SIMATIC NET NCM S7 for Industrial Ethernet
Release 6/2003
C79000–G8976–C129–07
6.5
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.
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.
Call
Representation ...
LADDR
IP_CONFIG
LEN
CONF_DB
EXT_STATUS
ERROR
STATUS
INT
WORD
ANY
WORD
WORD
DONE
BOOL
BOOL
ACT
INT
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 triggered by memory bit<
//=LADDR 256 dec. in hardware configuration
//Data block with connection data
//Length info for connection data
//Executed code
//Error code
//Status code
//Cause of error in connection data