Siemens SIMATIC S5 Equipment Manual page 190

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

Advertisement

R 02/92
Example: module address set at 128
SP bit scan
L KM
11010000
T PY
132 (MOD address +4)
– Waiting time 150 psec
– SP bit scan
L PY
132 (MOD address + 4)
T
L PY 133 (MOD address + 5)
L PY 134 (MOD address + 6)
T FY . . .
Reading the firmware state:
If the module has been erased (i.e., the module is not parameterized or has not been erased by
software), the firmware state can be recognized by reading bytes 4,5, and 6 without read prompt-
ing
whereby:
Byte 4 = Year
Byte 5 = Month
Byte 6 = Day
Reading the initial or end setpoint of a track:
Example: Track number = 20
Read end value (as a check)
After definition of (in a write cycle via byte 4) what is to be read from bytes 4,5, and 6 in a read cycle,
the read operation can start after a scan of the SP bit = "O".
Sequence:
for every initial or end track setpoint or for every actual channel value to be read.
If a track is not present (parameterized) or if the synchronization bits 1 and 2 for incremental en-
coders are not set, then bytes 4, 5, and 6 = FFHex. (11111111).
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
L = 1 = Read
S = O = Set oint indicator
E = 1 = En value
– Read SP bit
– Write, specify byte 4
– Read, SP bit
If "O", read bytes 4,5, and 6
Programming Instructions
9 – 69

Advertisement

Table of Contents
loading

Table of Contents