Can First scan bit have a condition in Rslgoix

bornwild

Member
Join Date
May 2010
Location
Riyadh
Posts
429
hello all,

I am trying to set up a latch bit like this S:FS----- true condition------OTL. I tried in rs emulator and it the bit latches but in actual compactlogix PLC when i download the program it does not latch.

The thing i am tryin to achieve is if you download the offline program and if the condition is true on the first scan the bit should latch .

Is it different in emulator and actual compactlogix.?
Is it different than contrologix?
 
Did you test it by dropping the PLC out of "Run" mode and then putting it back in "Run" mode? There aren't any real tricks with the S:FS bit.
 
hello all,

I am trying to set up a latch bit like this S:FS----- true condition------OTL. I tried in rs emulator and it the bit latches but in actual compactlogix PLC when i download the program it does not latch.

The thing i am tryin to achieve is if you download the offline program and if the condition is true on the first scan the bit should latch .

Is it different in emulator and actual compactlogix.?
Is it different than contrologix?

What is driving this "conditional" ?

Is it an input, or an internal bit ?
 
Hi.

I am actual evaluating actual time of the controller. I will post the screen shot in a while

Edit: I have the screenshot

SFS.JPG
 
Last edited:
Regardless of whether it is an Input or an internal bit, it doesn't make a scrap of difference, other than the internal bit needs to be "on" when the first-scan bit is used to test it, so the code driving it needs to be above the test rung.


I have tested this (ControlLogix), and it completely works ...

2019-04-26_082300.jpg
 
Hi.

I am actual evaluating actual time of the controller. I will post the screen shot in a while

Edit: I have the screenshot


Well that's not going to work... by the time the S:FS branch is scanned, the rung is already FALSE, and you can't make a false rung true again
 
From your rung it looks like you are attempting....

a: ... latch the bit if the processor re-starts in the same minute as it went off (Note, I did not say it has been off for less than one minute, because that won't be flagged if the processor went off at XHH:MM:59).

b: ... latch the bit if the processor re-starts before 13:00 hrs on the same day it went off.


In your own words, tell us what you are trying to capture
 
That processor isn't in Run Mode, or you are offline ...

The power rails are not green ...


Where is the GSV instruction that populates your TIME array ?


It needs to be executed before this rung for it to work ...
 
Last edited:
That processor isn't in Run Mode, or you are offline ...

The power rails are not green ...


Where is the GSV instruction that populates your TIME array ?


It needs to be executed before this rung for it to work ...

Daba. Thanks so much for the help. This is what the problem was. In the main routine. I have routine Test which has the program i need to latch and the GSV was placed after that and this why the bit was not set. Thanks again for your help

SFS2.JPG
 
I have a question about the purpose.

If this is to test if the first scan at powerup was within a minute of power down, then wouldn't you be moving the TIME values to "[Minute/Day/Hour]_Last_Recorded" DINTs (one for each value) then comparing the FirstScan time to the recorded integers?

The way you have it, comparing to specific numbers, it would only be true once in a lifetime, if it were powered up on exactly the right minute.

Unless CLXs can now edit their programs and change set values in compare instructions. Maybe all those plant managers were right - the PLC changed its program.
 
The way you have it, comparing to specific numbers, it would only be true once in a lifetime, if it were powered up on exactly the right minute.


I had assumed he had just put those numbers in the code to test the operation of the S:FS and latch. I never thought for one minute it was the finished job.

Turns out it was rung order that let him down....
 

Similar Topics

Hello. Does anyone know the equivalent of the first scan bit in a L32ER compactlogix? Do o need to obtain it via GSV? I’m looking to regain...
Replies
3
Views
444
I want to know how to make a flip flop rung that will change states every scan. This is for a fast sequencer. Is there a special bit similar to a...
Replies
8
Views
2,177
Dear Sir, Can you please tell me how to use the first scan bit, S2:1/15 in RsLogix 500 to Prevents the latch output to be ON when the power...
Replies
22
Views
10,196
Do we have to enable the first scan bit somewhere in compact logix? For some reason my S:FS is not working? Also, if you want to have the CPU...
Replies
13
Views
6,767
Hello all. I have been working with an SLC 5/04 system, which houses various Digital and Analog INs and OUTs, up to Slot 29. I am currently...
Replies
3
Views
2,503
Back
Top Bottom