Adding floats to a FIFO queue using FFL and FFU? (AB MicroLogix 1400)

Iridescence

Member
Join Date
Aug 2013
Location
San Francisco
Posts
6
Hello,

I'm currently programming a MicroLogix 1400 in RSLogix Micro, and I'm trying to put data into FIFO queues.

Would you know how to use the FFL and FFU instructions on float data types? RSLogix will not let me do this, as it gives an "invalid data type" error when I attempt to input a float data type into the "Source" entry of the FFL / FFU instructions.

If this is not possible in MicroLogix, is it possible in CompactLogix?

On a possibly related note, I am also confused why RSLogix will not let me view the binary representation of floats in the data table.

Thanks so much for your help.
 
For legacy systems (including any of the MicroLogix series) only the SLC platform allows floating-point entries into a FIFO "stack"; the rest of the Legacy CPUs allow only Hexadecimal, Binary or Integer constants (I believe ML1500 allows long-integer type constants.
Any of the Logix class controllers allow FIFO floating-point data entries.
 
About your second question...Since the radix (decimal)point of a floating point number "floats" (it could be placed anywhere relative to the significant digits of the number) its binary value cannot quite be represented at all times.
Currently, the IEEE 754 defines the representation of floating point data within the artificial intelligence systems.
http://en.wikipedia.org/wiki/Floating_point
 
Last edited:
Would you know how to use the FFL and FFU instructions on float data types?
I can see a possible work-around. Use the regular old N7 Integers in your FIFO, but then )outside the FIFO, make each of the N7 words and index to a F8 Floating Point number. For example if your first FIFO stack storage location needs to be F8:1, then your FIFO would actualy use address N7:1, which should be set to a "1", and the Indirect Address to the stack would be F8:[N7:1] = F8:1
 
Last edited:

Similar Topics

Hi all I’m looking at adding a RFID card reader to comfort panel pro , how do you set the rfid up can you connect to existing users and password...
Replies
0
Views
42
Hello all! So I have one project with a S7-1214 and a MTP1500 "Project1" and one project with another S7-1214 "Project2". Both of these PLC:s need...
Replies
6
Views
112
Hi Everyone, Currently we have three plants running with Controllogix PLCs (L72, L73, L74). In each of these plants we have 2 FTView SE...
Replies
0
Views
88
Hello, Im building project with 1756-L82ES controller and 1756-IB16S card but i cant find it when trying to add the card to IO configuration...
Replies
3
Views
164
Hello, I have a pair of redundant 1756-L71 controllers rev 24. These controllers currently have produced and consumed tag interfaces to 3 other...
Replies
2
Views
187
Back
Top Bottom