Siemens S7-300 start up bit and always on bit?

don_t_tell

Member
Join Date
May 2004
Posts
2
I have done a couple S7-200 programs, but this is my first S7-300. I can't seem to find any documentation on a startup bit(on for just the first scan) or an always on bit? can anyone help me out with this? Thanks.
Don_t_tell

"Speak no evil, hear no evil, see no evil"
 
You could just set a bit in the startup OB, and it will remain set forever until you reset it. For instance:

SET
= M10.0

That will set M10.0 unconditionally, and you can then use it anywhere you want.

With that being said, there really isn't any need for an "Always On" or "Always Off" bit in S7. Instead, you can use the CLR and SET instructions. These simply set the RLO to 1 or 0 unconditionally, and you will be all set (no pun intended). I use them liberally throughout my programs.
 
There is no first scan bit, just the OB100,
first scan OB. There is no "always on" bit like GE plc's.

Always Off Always Off Always Off
-| |-----------|/|---------( )

Always On Always On
-----| |--------------------( )
|
Always On |
-----|/|--------|


Put this code in ob1

Let Always Off=M1.0
Let Always On =M1.1
 
There is also a byte called "OB1_SCAN_1" in the local data for OB1. If it has the value 1 it's the first scan, if it's 3 then it's on a subsequent scan.
 
That OB1_SCAN_1 is only on at startup after a cold restart.
You have to do something else in the other situations.

I set a 1st scan bit in OB100 (hot restart), OB101 (Warm restart) and OB102 (cold restart).
 

Similar Topics

Hello all. I have an ESA HMI that is connected to a Simatic S7-300 (CPU312). I have uploaded the program from the PLC which is written with Step7...
Replies
6
Views
1,444
Hello. There is a problem with Siemens S7 300. We got a replacement PLC but it does not run the program from the MMC. The new PLC is dated 2011...
Replies
3
Views
687
Hi to all, Our company does not usually use Siemens PLCs, but have a press with one in it. We are trying to change the IP address in our Simatic...
Replies
2
Views
1,066
G'day guys, I am setting up a s7-300 as a test rig for the workshop and when I downloaded the PLC is not going into run mode, I keep getting a...
Replies
35
Views
5,216
I am trying to write just MSEC to S7 300 Controller date/time using OI.SIDIRECT Aveva communication driver? The old HMI (WINCC) tag is assigned...
Replies
1
Views
1,059
Back
Top Bottom