S7 operate SR bit on start up?

scimdarren

Member
Join Date
Aug 2005
Location
Winnipeg
Posts
30
Hi

I have seen this done on RSLogix, where you can operate a 'One Shot' Status bit on the first run of the program.
I want to set a SR Flip Flop on start up of a program, after the first cycle I dont want it to operate again, how can I achieve this with Step7?

Thanks

Darren
 
I'm not sure if I fully understand what you want. Are you looking for a Flag that signals that you are on the first time through in OB1 (or any other Block for that matter)?

If so, you can realise it pretty easily by simply setting a Marker Bit in OB100 and then resetting it as the last command in OB1. However, that sounds a bit too easy to be true, so I probably haven't really understood what you need.
 
Last edited:
Thanks, that sounds like what I need, although you seem to talk as if I should already have an OB100 set up? Are there any more OB's I need to consider? My structure so far is OB1 and some function calls.

I am new to S7

Darren
 
S7 uses several types of OB blocks for programming, and different CPU's offer different OB's; if you look them up in the online help, you will find a listing and description of each.

OB1 is the Cyclic block, and is scanned top to bottom, then repeats.

OB100 is executed on power-up and switch to run mode once before OB1 begins executing.

There are also other OB's that can be set up as timed interrupt blocks, error handling blocks, time-of-day interrupt blocks, and many others.
 

Similar Topics

Hi! I've bought WAGO PFC200 controller to automate my smart home installation. After that I've noticed, that I also need to buy e!****PIT or...
Replies
1
Views
2,868
Our Proface HMI SP-5B10 is getting hanged & i have GP-PRO EX in an VM ware workstation 12 player. Now kindly guide me to operate the Machine from...
Replies
2
Views
1,834
Hello there, We're trying to build a prototype for a 3D food printer. The main control board for the printer sends out PWM signals. For...
Replies
19
Views
4,673
Hi all i just got a cnc huyndai hit 8s lathe, and do not know how to operate that machine, just wonder if anyone live around orange county...
Replies
1
Views
1,659
Hello: I have CPU313C-2DP , I want to operate it 20 hour separeatlly every 24 hour how I can do that?
Replies
4
Views
2,117
Back
Top Bottom