FLL instruction

ceilingwalker

Lifetime Supporting Member
Join Date
Mar 2010
Location
Phoenix, AZ
Posts
1,586
Good day all. Could someone please explain what an FLL instruction is used for? I have read the AB Reference Manual several times, I just don't understand it. Thank you
 
in many cases it's used as an "eraser" ...

suppose that you have a series of memory locations (example: N7:0 through N7:99) ... suppose that those locations have already been filled up with "old" data ... suppose that now you want to "erase" all of the old existing data by writing a value of ZERO into each one of the locations ...

so ...

executing an FLL (Fill File) instruction just once can "fill" the file with the desired new number ...

you tell the FLL where you want to start (example: #N7:0) and how far you want it to go (example: Length 100) and what new value you want it to write into each location (example: ZERO) ...

note that you can also use the value from another memory location (example: N10:10 = 8888) as a source for the value to be written instead of a ZERO ...

you should be able to handle it from there ...
 
Last edited:
for example.....

power-up
one-shot FLL
B41:9 Fill File
--] [---------------------------- Source 0
5 Dest B52:0
Length 6

...I'm trying to understand what this instruction means. It is a SLC500 with 5/03 processor. Thank you
 
executing an FLL (Fill File) instruction just once can "fill" the file with the desired new number ...

Does this change with each scan? How often does it place the source in the destination? I'm trying hard to understand this and I'm probably making it much more difficult than it is, I'm afraid I excel at that.
 
it means that whenever bit B41:9/5 has a status of ONE, then the value ZERO will be written into the six words B52:0 through B52:5 ...

since each of those six words contains 16 bits, that's a total of 96 bits (all in a row) that will be written to a status of ZERO ...

edit ...

to answer your specific question:

How often does it place the source in the destination?

it does the "Fill File" operation on EACH and EVERY scan that the XIC is TRUE (in other words, when its bit/box contains a ONE) ... conversely, nothing happens on the scans that the XIC is FALSE (in other words, when its bit/box contains a ZERO) ...
 
Last edited:

Similar Topics

Does the FLL instruction operate on a single scan, even if I am doing a fill of a large array 128 SINTs? One would think it should. When the CMP...
Replies
4
Views
3,285
Hi guys; please guide me how the FLL instruction work? the example is given below source=0 destination=PGM_SEQUENCE LENGTH=1 I AM UNABLE TO...
Replies
2
Views
5,362
EDIT: Meant FFL not FLL. Hi, I'm struggling to get this instruction to work and I don't know why. I've created an array and a control word and am...
Replies
4
Views
3,804
Hi Guys, Nice easy one for you...I have an array of 150 Analog Inputs. Is there an instruction I can use to move a value into a member of each...
Replies
12
Views
6,122
I am using a SLC5 and need to set B3:0/2, 3, 4, & 5 to zero. Can I use a FLL command, using my source as 0, destination B3:/2 and length of 4...
Replies
7
Views
1,932
Back
Top Bottom