PLC2 File Search Compare

mwatkins

Member
Join Date
Jun 2002
Posts
73
With the FCS instruction in a PLC 2 would this be the same as using a SQC in a SLC?
Does the FCS do the comparison as long as the rung stays true until it finds a match or the end of the file, does the rung need to transition for each word in the file?
Does the program perform the FCS before going to the next rung? ie does it compare the entire file first or one word in the file per scan.
Does the Enable bit stay on while the rung is true, does it go off when the done bit is set?
Thanks for the help.
 
The FSC and SQC are similar but not the same.

On a false-true transition, the FSC scans the file for a match and sets the done bit when one is found. The counter accumulator will indicate the position of the match. This all happens before moving on to the next rung. The EN and DN bits remain on while the rung is true.

This next bit I'm not sure of but I think a subsequent false-true transition scans the file from the position of the first match until a second match (or EOF). IOW, a reset is required to ensure the search starts at the beginning of the file.
 
I didn't think the DN bit get set until the end of the file is reached, and not if it finds a match. Does this sound right?
I could use a sub routine to run through the SQC and then when a match is found jump back out.
Thanks for the answers this clears up a lot.
 

Similar Topics

I have read about this but never used it. I am converting a PLC2 over to a SLC5/04, is there a way I can do something simular? Would I use an FBC...
Replies
4
Views
3,906
I am trying to save a PLC2 program to disk. We are online with the processor. We keep getting CREATE FILE FAILURE whenever we try to save the file...
Replies
7
Views
1,642
Hi guys, Upgrading a PLC2 to CompactLogix. I have a VERY old laptop running the PLC2 software. How can I get a hard copy printed out...
Replies
10
Views
3,057
I'm attempting to convert a PLC2 program to PLC5, having trouble getting it into RSLogix 5. The 6300-um001-en-p.pdf guide does not detail this...
Replies
4
Views
6,191
I'm doing a PLC2 -> CLX conversion for a customer and the file types that he gave me are .pr1 and .da1 extensions. I don't recognize these file...
Replies
0
Views
3,431
Back
Top Bottom