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
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
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 ...
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 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) ...