Siemens S7 FIFO

cdavis

Member
Join Date
Jan 2009
Location
Athens, AL
Posts
14
Is it possible to have a FIFO of strings in Siemens? I see that the FIFO instruction (FC85) manipulates words. Also, on a side note, are there comparison instructions for symbols that have been designated as words instead of ints?
 
I'm not at all sure about the FC85 FIFO handling STRINGs. I'd suspect not. I think this is one where you'll have to roll your own using a pointer.

Siemens are rather weird about the parts of the IEC61131-3 spec they observe faithfully and the other parts they implement to suit themselves. Strictly speaking, according to IEC61131-3, INTEGERs are decimal values occupying a 16-bit piece of data, and WORDs are bit patterns occupying a 16-bit piece of data. Doing a comparison between two decimal values does make sense, hence the IEC instruction set caters for that. However, what is the equivalent when you try to compare two binary patterns? Testing for equality is an XOR with a zero result, but the concept of greater than or less than doesn't really exist. Unless you start treating each of the bits as representing a value in which case you're back to redefining the WORD to be an INT. So in this case there is no easy way to define the data as a bit pattern and then ask "Is this pattern more than another pattern?"

Ken
 

Similar Topics

hai can any one please let me know, how to use a FIFO & LIFO blocks with a small example ? I use SIEMENS S7-300:scratch:
Replies
2
Views
6,164
Has anyone developed a FIFO program for the Siemens S5 PLC using Fastrak Softworks? Here is a very brief summary of the application: Gypsum board...
Replies
0
Views
2,399
I've had an old problem come back to haunt me; I'm using the S7 standard ATT/FIFO blocks for an accumulator, but for no apparent reason the FIFO...
Replies
0
Views
7,246
Well HI all I am trying to use the FiFo/LiFo with a S7 300 and I am not to sure how to use it. I think I need the ATT table so that I could store...
Replies
4
Views
4,537
We have a priority energy system for 4 pump systems. only one pump system can be started at a specific time. The commands for starting the pumps...
Replies
5
Views
12,325
Back
Top Bottom