Graphing analog signal

controlsguy3

Member
Join Date
Jan 2003
Posts
27
I have a 4-20mA signal which represents wind direction. 4mA = 0 degrees, 20mA = 360 degrees. When we graph wind direction you can guess what happens. When the wind direction is approximately North the value goes from 4 to 20 mA almost instantaneously, causing the trace to zoom up to max and then down to min constantly. I have no control over the transducer so I have to solve this one mathematically. This is in a GE 90-70 PLC and being graphed by Cimplicity 4.0 Any ideas?
 
I don't know that there's a 'solution' per se. 359.9° and 0.1° are at opposite sides of the graph, what do you expect it to do? IOW, what do you want the graph to look like once you 'figure out how to fix this'?... :confused:

I think what you really want is the graph to pass from the min to the max value without 'cutting across' the screen. It should magically reappear at the opposite end during a rollover, right? There's a name for this I remember from my video game days. When you move off the right side of the screen in Pacman, he 'teleports' over to the left side. I don't know Cimplicity, so I don't know if this is an option you can select.

One (lousy) idea... Decrease your sampling frequency to ignore intermittent rollovers... :confused:

beerchug

-Eric
 
I don't know Cimplicity either but could you made a circular graph? Then you may be able to make the "needle" rotate.
Probably another lousy idea but worth a thought.
beerchug
 
Since the wind varies from 0° to 360°, could you graph it as a sine, or maybe a sawtooth wave varying around zero? What I mean is, 0° to 90° graphs as the rising excursion in the positive region, 90° to 180° as the falling excursion in the positive region, 180° to 270° falling in the negative, and 270° to 360° rising in the negative.
 
What I actually have in mind is this - back in the good old days (around 1960 or so) we used what was called a 'quadrature potentiometer' to encode rotational position. This was a pot that had no stop and would turn freely in a complete circle. It had four terminals connected at approximately 90 deg. from each other plus one terminal for the wiper. (think of a wheatstone bridge.) By applying voltage to two opposing terminals, using the opposite two for a circuit common and taking the output from the wiper a sine wave was produced.
What I was hoping was that someone has done this in LM code. As you can see, wind direction would then graph as a sine with 0 and 360 adjacent to each other at the centerline of the graph.
There is no circular graph available in Cimplicity V4 although I remember seeing a VBX add-on for sale somewhere.
 

Similar Topics

I was wondering if anyone had any insight on to how i could monitor and possibly graph Amp draw on our Powerflex 525 Drives. These drives are...
Replies
5
Views
1,748
Hi. I’m trying to figure out a way to pull the logged data from a Red Lion Graphite 07C0000 HMI and display some trends on a web page. Something...
Replies
1
Views
1,036
Is there a way to generate a line graph in factorytalk SE? Specifically, I'm trying to graph cam profiles using master points as the X-axis and...
Replies
3
Views
3,702
Hello forum fellows. I am on the lookout for a way to display data from an SQL database in a neat graphical way. I want trend curves, reports is...
Replies
0
Views
1,758
I am interested in obtaining data from SLC5/03 through 232 port on processor and displaying it in some form on a computer. Where would find the...
Replies
3
Views
3,897
Back
Top Bottom