You are on page 1of 5

Siemens S7-300 and STEP 7

Bit Logic Instructions (Illustration)

Normally closed contacts

NOT contact

Midline output

Set coil

Reset coil

Network 1:
I0.0 Q0.0
0 (Off) 1 (On)
1 (On) 0 (Off)

Network 2:

I0.0 I0.1 Result of & Q0.1


0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7
Network 3:

I0.2 I0.1 I0.0 M0.0 Q0.2


0 0 0 0 0
0 0 1 0 0
0 1 0 0 0
0 1 1 1 0
1 0 0 0 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1

Network 4 and Network 5:

I0.0 = ON => Q0.3 Set (ON until Q0.3 is Reset)


I0.1 = ON => Q0.3 Reset (OFF until Q0.3 is Set)
Please note when I0.0 and I0.1 both ON =>Q0.3 Reset

I0.0 I0.1 Q0.3


0 0 X (Remains on last position)
0 1 1 (Reset -OFF until Q0.3 is Set)
1 0 1 (Set- ON until Q0.3 is Reset)
1 1 0 (Reset)

Network 6:

I0.0 = ON => Q0.4 Set (ON until Q0.4 is Reset)


I0.1 = ON => Q0.4 Reset (OFF until Q0.4 is Set)
I0.0 and I0.1 both ON =>Q0.4 Set (Set dominant Flip Flop)

I0.0 I0.1 Q0.4


0 0 X (Remains on last position)
0 1 1 (Reset -OFF until Q0.3 is Set)
1 0 1 (Set- ON until Q0.3 is Reset)
1 1 1 (Reset)

Network 7:

I0.0 = ON => Q0.5 Set (ON until Q0.5 is Reset)


I0.1 = ON => Q0.5 Reset (OFF until Q0.5 is Set)
I0.0 and I0.1 both ON =>Q0.5 Reset (Reset dominant Flip Flop)

I0.0 I0.1 Q0.5


0 0 X (Remains on last position)
0 1 1 (Reset -OFF until Q0.3 is Set)
1 0 1 (Set- ON until Q0.3 is Reset)
1 1 0 (Reset)

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

Set dominant RS flip flop

Reset dominant SR flip flop

Positive edge detection of a


RLO (Result of a Logic
Operation)

Negative edge detection of a


RLO (Result of a Logic
Operation)

Network 8:

Only I0.0 = ON => No result


Only I0.1 = ON => No result
When I0.0 AND I0.1 = ON, at the positive edge (When One of the inputs are already ON and the
other turns OFF to ON) => Q0.6 Set

Network 9:

When I0.0 OR I0.1 = OFF, at the negative edge (When at least One of the inputs change from ON to
OFF) => Q0.6 Reset

Please note that for Positive and Negative Edge detection, you need to have a temporary bit memory
to keep the last status of the Result of logic.

Note that Positive edges occur only when there is a change or the RLO from Off to ON.
Note that Negative edges occur only when there is a change or the RLO from ON to OFF.

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

Please refer help to find out more instructions of the instructions.

To study more about Using help

Help => Using Help

To find more information on a Instruction

Click on the desired instruction => press F1 key on keyboard

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

Press F1 =>

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND

You might also like