Specifications
C-4
IP 240
EWA 4NEB 811 6120-02b
C.2 Counting Functions
Function FC 171 (STRU_DOS)
The call, meaning and parameter values for the FC 171 function are de-
scribed below.
Ladder Diagram LAD
Statement List STL
FC 171
EN
BGAD
KANR
DBNR
DIG
PRA
EXTE
ENO
PAFE
CALL FC 171 (
BGAD := ,
KANR := ,
DBNR := ,
DIG := ,
PRA := ,
EXTE := ,
PAFE := );
The table below provides an overview of the parameters required by the
FC 171 function.
Name Parameter
Type
Data Type Description
BGAD INPUT INT Module address
KANR INPUT INT Channel number
DBNR INPUT INT Data block number
DIG INPUT WORD Assign digital output
PRA INPUT WORD Assign interrupts
EXTE INPUT WORD Control counter enable
PAFE OUTPUT BYTE Error flag byte
DBNR: INT = x
x: Dependent on the CPU used (number 0 is not permitted)
EXTE: WORD
corresponds to the EXT parameter in S5 (had to be renamed because EXT
is a compiler code word).
For all other parameter values, please refer to the Manual (Section 8.3.1,
“Configuring Function Block“).
Introductory
Remarks
Calling the
Function
Parameters
Parameter Values
IP 240 Counter, Position Decoder and Positioning Module