Logix 5000 FLL instruction

Saint AAI

Member
Join Date
Oct 2007
Location
Ollerton
Posts
22
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 trying to load my source into the array, but when I try to compile the code it says that my Source is not a valid type? Yet the source is just a DINT which should be valid. Any suggestions on what I've done wrong or do people need more info?
Thanks, Shane.
 
Last edited:
Saint AAI said:
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 trying to load my source into the array, but when I try to compile the code it says that my Source is not a valid type? Yet the source is just a DINT which should be valid. Any suggestions on what I've done wrong or do people need more info?
Thanks, Shane.

FLL doesn't use a control word. Are you sure you didn't mistype a FFL (FIFO Load) which does use a control word?
 
Sorry, I meant FFL instruction. Typo.


Anyway, I've figured out what I've done wrong. My array was the wrong data type. I put it in as what ever the logix software came up with as default when I clicked on the tag name and selected new. Deleted that and made a new one which was a DINT[3] (only 3 layers to my array) and its accepted it. Haven't tested it to see if it works yet though.
Thanks, Shane.
 
Last edited:
So, to be sure, you are trying to use the FIFO Load instruction and not a File Fill instruction. If you want to fill an array with a single value, you should be using the File Fill instruction (FLL). If you are trying to a file load/shift then use the FIFO.

On the FIFO, I believe the Source and FIFO MUST be the same data type. A File Fill instruction you can mix data types, but the FIFO I believe they must be the same. Is your FIFO array also a DINT? Also, the FIFO should be the first element, not the entire array, so it should be something like MyDINTtag[0], not MyDINTtag.

If you can post a snapshot of the offending rung, and maybe a properties box on the tags involved, that might help.
 
Yes it is the FIFO Load instruction I am using. It didn't work as my array was a different data type to my Source. Works fine now, thanks.
 

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,308
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,382
I recently did a program conversion from logix 500 to studio 5000 and when machine runs it depends on two ton instructions to keep the machine in...
Replies
17
Views
407
Hello, I am trying to read a barcode scanner input using a cognex dataman 280 barcode reader, store it another string, the compare with another...
Replies
1
Views
70
Back
Top Bottom