Specifications
Position Decoding IP 240
7.3 Initializing Standard Function Blocks and Data Block Assignments
7.3.1 Configuring Function Block
FB 169 (STRU.WEG) Configuring data and parameter for operation of the IP 240 in the position
decoding mode
Functional description
The configuring function block initially checks the parameter assignments 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 verifies its compatibility firmware version
and transfers the error messages of the initial start check ( Section 6.3) to the data block.
The configuring data (parameter entries into FB 169) and the following data areas are then
transferred from the DB to the IP 240:
• Initial and final track values
• Hysteresis
Once the specified channel has been configured without errors, the identifier for the configured
mode is entered in DW 23.
If the IP 240 is reconfigured, active outputs and any pending interrupts for the channel are reset.
Hardware faults, communications errors and parameter assignment errors are flagged in the PAFE
byte and described in detail in data words DW 8 to 10 and DW 13. In the event of an error or fault,
the channel is not configured.
Function Block Call
The configuring FB is usually called in the restart organization blocks.
FB 169
: SPA FB 169
NAME : STRU. WEG
BGAD : KF
KANR : KF
DBNR : KF
AFL : KF
IMP : KF
DIG1 : KM
DIG2 : KM
PRA1 : KM
PRA2 : KM
PAFE : QB
BER : KF
ABIT : KY
STL
QB
BGAD
KANR
DBNR
AFL
IMP
DIG1
DIG2
PRA1
PRA2
BER PAFE
ABIT
LAD/CFS
Note
Specification of the address space (BER) is dispensed with in the case of the function
block for the S5-115U programmable controller (normal P area only, Chapter 3).
Parameter ABIT is not required for the function blocks for the S5-115U and
S5-135U.
7-18
EWA 4NEB 811 6120-02a