Specifications

IP 240 IP 252 Expansion
9.4 Initializing the Configuring Function Block and Data Block Contents
9.4.1 Configuring Function Block
FB 173 (STRU. 252) Configuring the module in the IP 252 expansion mode
Functional description
The configuring function block first checks the parameters and then transfers the general module
data (machine-readable product code of the module, firmware and hardware version) from the IP
to the specified data block. It then checks its compatibility with the firmware version and transfers
the error flags from the restart check ( Section 6.3) to the data block.
The configuring data (parameter entries in FB 173) are then transferred to the IP.
After error-free configuration and parameter assignment, the identifier of the configured mode
is entered in DW 23.
Hardware, communications and parameter assignment errors are flagged in the PAFE byte and
described in detail in data words DW 8 to 10 and DW 13. If an error is detected, the module is not
configured.
Function block call
The configuring function block is usually called in the restart organization blocks.
FB 173
: JU FB 173
NAME : STRU. 252
BGAD : KF
DBNR : KF
PAFE : QB
STL
QB
BGAD
DBNR PAFE
LAD/CSF
Table 9-1. Parameters of Configuring FB 173
Para- Data
Name meter type Description
type
BGAD D KF Module starting address
DBNR D KF Data block number
PAFE Q BY Error byte
Parameter assignments
BGAD : KF 128 to 240 Starting address of the module in the I/O area, divisible by 16
DBNR : KF 3 to 255 Number of the data block created
PAFE : QB Flag byte or output byte (0 to 239) in which any errors are flagged
( Section 6.4)
EWA 4NEB 811 6120-02a
9-5