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
Comments to this Manuals