Initializing Standard Function Blocks And Data Block Contents - Siemens Simatic S5 IP 240 Manual

Counter/positioning/position decoder module
Hide thumbs Also See for Simatic S5 IP 240:
Table of Contents

Advertisement

IP 240
8.3

Initializing Standard Function Blocks and Data Block Contents

8.3.1
Configuring Function Block
FB 171 (STRU.DOS) Configuring and parameter assignments for operation of the IP 240 in
Functional description
The configuring function block first checks the parameter assignments and then transfers the
general module data (machine-readable product code of the module, firmware and hardware
versions) from the IP to the data block specified. It then verifies its compatibility with the
firmware and transfers the error flags of the start check ( Section 6.3) to the data block.
The configuring data (parameter entries in FB 171) and initial count value are then transferred
from the DB to the IP 240.
After error-free configuring of the specified channel, the identifier of the configured mode is
entered in DW 23.
If the IP 240 is reconfigured, active outputs are reset and any process interrupts for the channel
are cancelled.
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. In the event of an error, the relevant
channel is not configured.
Function block call
The configuring function block is usually called in the restart organization blocks.
: JU
NAME
: STRU. DOS
BGAD
:
KANR
:
DBNR
:
DIG
:
PRA
:
EXT
:
PAFE
:
BER
:
ABIT
:
Note
Specification of the address space (BER) is dispensed with for the function block for
the S5-115U programmable controller (normal I/O area only, Chapter 3).
The ABIT parameter is not required in the function blocks for the S5-115U and
S5-135U.
EWA 4NEB 811 6120-02a
counting mode
STL
FB 171
KF
KF
KF
KH
KM
KH
QB
KF
KY
LAD/CSF
FB 171
BGAD
KANR
DBNR
DIG
PRA
EXT
BER
PAFE
ABIT
Counting
QB
8-7

Advertisement

Table of Contents
loading

Table of Contents