Position Decoding Functions; Function Fc 164 (Stru_Weg) - Siemens Simatic S5 IP 240 Manual

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

Advertisement

C.3

Position Decoding Functions

Function FC 164 (STRU_WEG)

Introductory
The call, meaning and parameter values for the FC 169 function are de-
Remarks
scribed below.
Calling the
Function
Ladder Diagram LAD
FC 169
EN
BGAD
KANR
DBNR
AFL
IMP
DIG1
DIG2
PRA1
PRA2
Parameters
The table below provides an overview of the parameters required by the
FC 169 function.
Name
Parameter
Data Type
Type
BGAD
INPUT
INT
KANR
INPUT
INT
DBNR
INPUT
INT
AFL
INPUT
INT
IMP
INPUT
INT
DIG1
INPUT
WORD
DIG2
INPUT
WORD
PRA1
INPUT
WORD
PRA2
INPUT
WORD
PAFE
OUTPUT
BYTE
Parameter Values
DBNR: INT = x
x: Dependent on the CPU used (0 is not permitted)
For the values of the remaining parameters, please refer to the Manual
(Section 7.3.1, "Configuring Function Block")
IP 240
EWA 4NEB 811 6120-02b
IP 240 Counter, Position Decoder and Positioning Module
ENO
PAFE
Description
Module address
Channel number
Data block number
Resolution for sensor pulses
Set zero mark monitoring
Assign digital output D1
Assign digital output D2
Assign interrupts
Assign interrupts
Error flag byte
Statement List STL
CALL
FC 169 (
BGAD :=
,
KANR :=
,
DBNR :=
,
AFL :=
,
IMP :=
,
DIG1 :=
,
DIG2 :=
,
PRA1 :=
,
PRA2 :=
,
PAFE :=
);
C-7

Advertisement

Table of Contents
loading

Table of Contents