SLC 5/05 File Bit Comparison FBC

Christoph

Member
Join Date
Sep 2003
Location
Indiana
Posts
345
Thinking about using the FBC instruction. Have never used it
and have a couple questions. 1st does the reference need
to be the same length as the source. I am looking at about
a 21 word length but reference will allways be 0 in the data
hate to wast all the memory if I dont have to.
2nd does the first control set the length of the
source and second control set the length of reference or result
file.
Your help is Appreciated!
 
Christoph said:
hate to wast all the memory if I dont have to.

Waste it? As opposed to leaving it unused? Its rare that a PLC program needs every last byte of memory, and the only truly wasted memory is the unused memory.

P.S. I'm not advocating sloppy programming. I'm advocating that we ditch the wasted memory paradigms because a SLC5/05 has a fixed memory size and its not going to be dynamically allocating and releasing memory while the PLC program is executing.
 
Last edited:
I said wasted because I will not be using the result file word
only the status bits of the conrol word for found.
 
Christoph said:
1st does the reference need
to be the same length as the source.
Yes.

Christoph said:
2nd does the first control set the length of the source and second control set the length of reference or result file.
1st control determines the length of the source and reference and also has the IN, DN and FD bits you will be interested in.

The 2nd control determines the length of the result file. If you operate it in the mode to detect one miscompare at a time, then the length can be one.
 

Similar Topics

Good Afternoon, I’m looking at some examples in a SLC 500 and I took notice of a Bit Shift that has the File position with a # B3:25 . What...
Replies
4
Views
1,708
Hello there! Has anyone encounter an issue with the SLC 5/05, where the eternal clock (S:37 - S:42) is zero out? Can this be because the SLC was...
Replies
1
Views
136
Would someone be able to create a .SLC library file for me? We are looking at converting to a Micro800, but my version of Logix 500 doesn't...
Replies
3
Views
373
Hello, Would someone please kindly convert an RSS file I have to an SLC file for me? I've asked around and no one has the software here for...
Replies
12
Views
963
Hi, I only have the RSLogix Micro starter edition and cannot save as .SLC for the micrologix to micro800 conversion tool on CCW. I would be very...
Replies
1
Views
2,545
Back
Top Bottom