Reading Track Identifier Bits - Siemens SIMATIC S5 Equipment Manual

Digital position decoder ip 241 with fb 156/1 57 158
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

Programming Instructions

9.5.8 Reading Track Identifier Bits

Direct parameterization (PB 11)
The track identifier bits are located in flag double word FD 130. The track identifier bits for channel
1 are found in flag word FW 132, and can be displayed on the monitor screen of the programmer
using the "control variable" PG function (it is best to use the KM format as bit pattern). They are
updated each time function block FB 157 is called.
Indirect parameterization (FB 11)
The track identifier bits are located in data double word DD 5 of working data block DB 158. Data
word DW 5 contains the track identifier bits of channel 1; data word 6 contains those from channel
2. The track identifier bits are also updated in function block FB 158 if function block FB 158 was
supplied with a valid command via working data block FB 158.
Depending on the actual value, the track identifier bits are set sequentially:
from –00100 to –00050
Track O:
from –00050 to 00000
Track 1:
Track 2:
from 00000 to 00100
Track 3:
from 00100 to 00200
Track 4:
from 00200 to 00300
Track 5:
from 00300 to 00400
The remaining tracks are not parameterized, as the respective first data words do not contain an
enable (see assignment of user data block DB 156).
After synchronization the actual value is –250. If pulses in positive direction are acquired now,
then starting at value –100, the track identifier bit O is set; at value –50, bit O is reset, and so on. In
our example, the tracks are assigned in a way that the track identifier bits continuously have signal
status"1" one after the other. Also, any other different values for the setpoints can be written into
the user data block. These values are transferred to the module during start-up.
9 – 52
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
track identifier bit O
track identifier bit 1
track identifier bit 2
track identifier bit 3
track identifier bit 4
track identifier bit 5

Advertisement

Table of Contents
loading

Table of Contents