
IP 240 Positioning
10.23.2 The Configuring Function Block
FB 167 (STRU.POS) Configures and initializes the IP 240 for ”positioning” mode
Functional description
The configuring FB first checks the input parameters and the length of the data block to be used
for data interchange with the IP. It then transfers the general module data (machine-readable
product designation of the module, FW and HW versions) from the IP to the data block, verifying
its own compatibility with the firmware version as it does so. It then enters any errors detected
during the startup test ( Section 6.4) in the data block. Finally, the configuring data (parameters
for FB 167) and the following data areas from the DB to the IP:
• Zero offset
• Final value (pos.) for the rotary axis
• Distance values for the switching and signalling ranges
• Position numbers and position values for positions 1 to 254.
Following error-free configuring of the channel, a mode identifier is entered in data byte DL 23.
If the channel is reconfigured, active outputs are reset and any interrupts pending for the channel
cancelled.
Hardware, parameter assignment and data errors are flagged in the PAFE byte and described in
detail in data words DW 8 to DW 10 and DW 13. Should an error occur, the addressed channel is
not configured.
Invoking the function block
The configuring FB is invoked in the restart organization blocks.
FB 167
: JU FB 167
NAME : STRU.POS
BGAD : KF
KANR : KF
DBNR : KF / KY
AFL : KF
IMP : KF
BCD : KY
PRA1 : KM
PRA2 : KM
RUND : KF
LOSE : KF
DAV : KF
PAFE : QB
BER : KF
ABIT : KY
STL
QB
BGAD
KANR
DBNR
AFL
IMP
BCD
PRA1
PRA2
RUND
LOSE
DAV
BER
ABIT PAFE
LAD/CSF
Note
The data block number (DBNR) must be specified in KF format in the S5-115U and
S5-150U and in KY format in the S5-135U and S5-155U.
The S5-115U requires no address space specification (BER), the S5-115U and
S5-135U no ABIT parameter.
EWA 4NEB 811 6120-02a
10-85
Comentarios a estos manuales