Reading The Status Information From The Ip 240; Evaluating The Status Information; Feedback Position Number; The Status Bits - Siemens Simatic S5 IP 240 Manual

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

Advertisement

Positioning
with control FB 168
You must initialize FB 168 as follows to read
the status info:
:
JU FB 168
NAME :
STEU.POS
:
FKT
:
1,0
The FB reads the status info from the IP 240
and transfers it to DW 28 to 33 of the speci-
fied data block.

Evaluating the status information

Feedback position number

When a position is called, the position number is stored on the IP 240 as feedback position
number. If synchronization bit SYNC is set, status bits BEE1, BEE2, BEE3, RICH, ZBEV and RIUM and
their interrupt bits relate to this position number.
If you have not yet transferred a position number, or if the last position number was invalid, the
IP 240 enters the value "255".
A position is invalid when
• an error occurred during actual value acquisition (DRBR, NPUE, UEBL).
• a reference point approach was selected or
• synchronization with an external control signal was
ZYSY=1.

The status bits

The status bits are updated on the IP 240 in every firmware cycle.
Status bit
SYNC
(synchro-
nization)
The actual value is synchronized
- via a reference point approach
- via software-controlled synchroni-
zation
- via an external control signal
10-58

Reading the status information from the IP 240

Bit is "1"
in direct data interchange
You must specify the following job numbers
to read the status info:
For channel 1: 1B
H
For channel 2: 2B
H
Following transfer of the job number, the
IP 240 makes the status info available in the
transfer buffer.
selected via a one-shot transfer of
The actual value is no longer synchro-
nized
Synchronization no longer available
- when a reference point is reselected.
- when resynchronization with an
external control signal is initiated.
- when an error occurs during actual
value acquisition (DRBR, NPUE,
UEBL).
IP 240
Bit is "0"
EWA 4NEB 811 6120-02a

Advertisement

Table of Contents
loading

Table of Contents