First Pass Bit RSLogix 5000

DBLD99

Member
Join Date
Oct 2003
Location
USA
Posts
230
Hello guys, does anyone know if there is such a bit as a first pass bit like in the 500 family, in the 5000 family. I tried searching ab's site but everyone knows how great that is. Thanks for your time
 
For bit addresses, S:FS is a first scan flag for Logix processors.

http://domino.automation.rockwell.c...FC70C1589F0A089285256AFB00577DEF?OpenDocument

Is a listing of other status file equivilants.

Be warned on the S:FS though, if you have additional timed or other tasks, you should latch your own global bit in a scheduled cylic task, or better, one global bit for each task you have configured. Then use the global 'per task' first scan bits if needed in each task.
 
Last edited:
first pass in rslogix5000

I have the same question I need to know how to set or reset some parameters at power up
 
Since you have the same question, the same answer should apply, right ? :)

"S:FS" is a boolean system tag in the Logix 5000 family of controllers that is true only on the first scan of the continuous task. It is often used as the address for an ordinary Examine If Closed (XIC) instruction in ladder logic. " ---] [----"

If you need to use a first-scan function in a conditional subroutine or periodic or event-driven task, use the First Scan tag to latch another global tag that can be used in those tasks.

I often use the S:FS bit to perform RES, COP, and FLL instructions, as well as resetting indexes, timers, and counters to their initial state.
 
Ken,
I almost never use a continuous task, but the S:FS has always worked in a periodic task as well. According to KB #34980, each program in the controller has its own first-scan bit. Isn't that the case?
 
Tip of the hat to Danny.... he's right. My mind was on conditional subroutines, which don't have their own Program databases.

The most important sentence in that Technote is "Each Program in the project has its own individual first scan bit".

That means each Program, in each Task (Continuous, Periodic, Event) has its own First Scan bit.
 
Last edited:
Just adding, I still use a global set of bits (a DWORD, actually) to trigger first scan initialization of multiple tasks.

Rung 0 of the first continuous routine uses s:fs to set the DWORD so that one bit is set for each task initialization that must be done. As each individual task completes it's initialization, it sets a bit false.

I can tell when my initialization is completed by seeing that the DWORD equals zero.

That also gives me a handy way to re-trigger initialization logic should the need arise.
 
Is there a bit to detect when the controller power up is complete? Or can I use the first scan bit as a good indication?
 
Define "powerup complete"

Turn the keyswitch to program, then power up your PLC. It will complete powerup, and start communicating with I/O, drives, etc, but there is nothing you can do programatically to determine that, because it's not executing the program.

What are you trying to achieve?

(edit - OK, you could potentially use another controller to interrogate this one, and have the other controller do something when it sees your PLC come online - but that's not even remotely foolproof either)
 
Is there a bit to detect when the controller power up is complete? Or can I use the first scan bit as a good indication?

This is really dependent upon what you mean by considering the controller powered up. This is what is indicated by the first scan bit for each program as mentioned above.

Now if you mean when the machine has processed whatever logic you've programmed, usually I've seen either cascading Counters or Timers for each equipment program/phase coupled with JSRs to keep the chain going, then reference the .DN bit of whatever you Sequencer of choice is. I try to save a bit of space by using arrays and FAL.
 

Similar Topics

well i fell stupid what would the first pass scan bit be in rs logix 5000? jim cav
Replies
4
Views
4,863
I'm programming a CompactLogix project (1769-L32E) and ...it's my first time with RSLogix 5000. I need to write some configuration info to a...
Replies
5
Views
5,048
So I'm having issues with a certain rung and one of my coworkers mentioned it may not allow the signal past the latch coil. For example in the...
Replies
27
Views
3,692
I’m a bit stuck on HMI (KTP-1200) programming… See the picture attached. The PASS or FAIL box should only appear when the toggle switch is...
Replies
7
Views
1,001
I've been given a line that has several sysmac c200Hx PLCs. The First station Im trying to wrap my head around has a NS8 HMI. I'm using Cx-one...
Replies
2
Views
735
Back
Top Bottom