Siemens Simatic S7-300 Service Manual Page 16

  • Download
  • Add to my manuals
  • Print
  • Page
    / 272
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 15
Bit Logic Instructions
Statement List (STL) for S7-300 and S7-400 Programming
1-4
A5E00706960-01
1.3 AN And Not
Format
N <Bit>
Address Data type Memory area
<Bit> BOOL I, Q, M, L, D, T, C
Description
AN checks whether the state of the addressed bit is "0", and ANDs the test result
with the RLO.
The AND NOT instruction can also be used to directly check the status word by use
of the following addresses: ==0, <>0, >0, <0, >=0, <=0, OV, OS, UO, BR.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: - - - - - x x x 1
Example
STL Program
AI 1.0
AN I 1.1
=Q 4.0
Relay Logic
Power rail
I 1.0
Signal state 0
NO contac
t
I 1.1
Signal state 1
NC contact
Q 4.0
Signal state 0
Coil
Page view 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 271 272

Comments to this Manuals

No comments