Counting Functions; Function Fc 171 (Stru_Dos) - 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 Counter, Position Decoder and Positioning Module
C.2

Counting Functions

Function FC 171 (STRU_DOS)

Introductory
The call, meaning and parameter values for the FC 171 function are de-
Remarks
scribed below.
Calling the
Function
Ladder Diagram LAD
FC 171
EN
BGAD
KANR
DBNR
DIG
PRA
EXTE
Parameters
The table below provides an overview of the parameters required by the
FC 171 function.
Name
Parameter
Data Type
Type
BGAD
INPUT
INT
KANR
INPUT
INT
DBNR
INPUT
INT
DIG
INPUT
WORD
PRA
INPUT
WORD
EXTE
INPUT
WORD
PAFE
OUTPUT
BYTE
Parameter Values
For all other parameter values, please refer to the Manual (Section 8.3.1,
"Configuring Function Block").
C-4
ENO
PAFE
Module address
Channel number
Data block number
Assign digital output
Assign interrupts
Control counter enable
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).
Statement List STL
CALL
FC 171 (
BGAD :=
,
KANR :=
,
DBNR :=
,
DIG :=
,
PRA :=
,
EXTE :=
,
PAFE :=
);
Description
EWA 4NEB 811 6120-02b
IP 240

Advertisement

Table of Contents
loading

Table of Contents