Data logging with RSLogix500

Is there anyway to log or store float or integer values? I am monitoring temperatures through the 4-20mA output of a pyrometer to a micrologix IF4 analog card. I want to be able to store maybe 10 values at a time in sequential order with the last of the 10 being replaced with the newest. Eventually I would like to use this number with PID to control the heat of an induction furnace and speed of a conveyor.
 
Is there anyway to log or store float or integer values? I am monitoring temperatures through the 4-20mA output of a pyrometer to a micrologix IF4 analog card. I want to be able to store maybe 10 values at a time in sequential order with the last of the 10 being replaced with the newest. Eventually I would like to use this number with PID to control the heat of an induction furnace and speed of a conveyor.

It sounds like you are looking for summat like a First-In-First-Out buffer:

(sorry, images are not showing); try these links:

https://drive.google.com/open?id=1wYq0dspteQckB3OIVr4-3o9t8fVj8U4D

https://drive.google.com/open?id=18pyCuJdvv_VtupeCqT_Hy66TMe-TZSGe

open


open


Hmm, FIFO may store only words, and you mentioned floats ... another option would be to create a data file with ten elements, and use an indirect address into that file, which address you increment modulo 10. It will work but it's clunky as I am a beginner at this stuff; I'm expect someone will come up with a better solution.

Sidebar: are you using this to do a moving average to filter out, and keep the PID from chasing, noise? If so, putting a deadband on the PID might achieve the same effect.
 
Proof of concept

Here is a prototype circular buffer: Rung 003 is the meat of the matter; all other rungs generate or manage test data for this example, although the CTU accumulator is used to set the indirect address to the next location in the circular buffer.

To create the circular buffer: right-click [Data files]; then set [Type] to [FLOAT]; set [Symbol] to something useful e.g. I used CIRCBUFF10; set [Elements] to [10]. Your circular buffer may not be F9, of course.

[Edit: that image is a PNG; rename it to circular_buffer.png to view it]
 
I just have 10 MOV's in a rung to create your own FIFO. This will allow you to use floats
since a normal FIFO is only for Integers.Set up whatever triggers the move such as a timer
/DN bit at whatever update rate you want.
 
I agree, no need to index for a small shift register, I often do this just move in reverse order i.e. move N(8) to N(9) N(7) to N(8) and so on if reals are a problem.
 
I just use MOV with an ONS trigger. Mov Tag[4] to tag[5], then tag[3] to [4] and so on, second to last being Source tag to Tag[0] and finally a CLR on the source tag to zero it out.
 
I agree, no need to index for a small shift register, I often do this just move in reverse order i.e. move N(8) to N(9) N(7) to N(8) and so on if reals are a problem.

These other answers are better than mine, plus they are much easier for anyone to understand; their only possible downsides are that it's more work to change the size of the log, and the extra CPU per scan; it's highly unlikely either of those issues will be anything other than negligible.


Heh; this proves the old adage "the best way to get the right answer (above and others) from the internet is to post a wrong answer (mine)."

Thanks all, I am learning!
 

Similar Topics

Dear All, I am planning to make a data logger and a report file generation in Delta HMI model: DOP-110IG that runs on Windows CE. My PLC is...
0
Replies
333
Views
Hi Team, I had a requirement to communicate 25 no.s of PQ energy meters (10 analog parameters from each meter) via Modbus TCP/IP. PQM Meters are...
9
Replies
475
Views
Hello , I am facing an issue with cyclic data logging in AVEVA Historian. When adding a new tag in the Historian with a 1-second cycle time, the...
0
Replies
792
Views
Dears, I have a project where I poll data from a PLC to KEPServer, then configure these tags in KRPServer data log. For example : I polled 10 tags...
2
Replies
501
Views
My customer wants to log the 6-7 parameter in HMI and he want to see the logged data in table format instead of trend in the HMI. Is there is any...
0
Replies
463
Views
Top