first pass scan bit

One thing to keep in mind about S:FS is that each program has its own bit which is set for the first scan the first time that program executes after the pre-scan. Each program's S:FS bit is independent of any other program.

Lets say that you have several periodic tasks plus the continuous task, and the longest periodic task has a periodic rate of 5 seconds. Under each of the task are several programs. When the PLC goes to run the other programs could have executed thousands of times before the program in the 5 second periodic task gets to execute. However, after five seconds when that program finally gets to execute, any XIC in the program that is addressed to S:FS will evaluate true because it is the first scan of that program.

If you have an event task or a program that is inhibited and later enabled though a GSV then it could be hours or days (or even months) after the processor goes to run before that program first runs. When it first runs its S:FS bit will be set.

99% of the time it won't matter, but be aware that it could matter.
 

Similar Topics

Hello, I am still new to PLC programming and I just got this job two year out of school so I don’t remember much. I was given a task were I have...
Replies
1
Views
167
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,744
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,070
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
745
See image below. Look at line 95. I tested all data type, but none of them works. https://ibb.co/H2Csr15 See this. TEMPDATA2 is used only...
Replies
3
Views
2,702
Back
Top Bottom