Siemens Simatic S7-300 Service Manual Page 18

  • Download
  • Add to my manuals
  • Print
  • Page
    / 272
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 17
Bit Logic Instructions
Statement List (STL) for S7-300 and S7-400 Programming
1-6
A5E00706960-01
1.5 ON Or Not
Format
ON <Bit>
Address Data type Memory area
<Bit> BOOL I, Q, M, L, D, T, C
Description
ON checks whether the state of the addressed bit is "0", and ORs the test result with
the RLO.
Status Word Bit Checks:
The OR 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:
Example
STL Program
Relay Logic
Power rail
I 1.0
Signal state 0
NO
contact
Q 4.0
Signal state 1
I 1.1
Signal state 1
NC
OI 1.0
ON I 1.1
=Q 4.0
Coil
contact
Page view 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 271 272

Comments to this Manuals

No comments