EasyManua.ls Logo

Siemens SIMATIC S5 - Reading Track Identifier Bits

Siemens SIMATIC S5
197 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Programming Instructions
R
02/92
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:
Track O:
from –00100 to –00050
track identifier bit O
Track 1:
from –00050 to 00000
track identifier bit 1
Track 2:
from 00000 to 00100
track identifier bit 2
Track 3:
from 00100 to 00200
track identifier bit 3
Track 4:
from 00200 to 00300
track identifier bit 4
Track
5:
from 00300 to 00400
track identifier bit 5
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
IP
241 Equipment Manual
@
SieITIeflS
AG 1989, Order No.: 6ES5
998-0KD21
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Other manuals for Siemens SIMATIC S5

Related product manuals