Analog input for 'flasher' circuit?

Join Date
Jan 2013
Location
Michigan
Posts
41
I'm working on a bench project to learn more about the basics. I have created a 'flasher' circuit with 2 timers, and that works. I would like to control the 'rate' of the flash by utilizing the analog inputs of my ML1100 (it also has a IF20F2 module)

I am thinking that the rate should be from once per minute to as much as 150 per minute, based on the 0-10 Volt input. I'm guessing that I would have to 'scale' the input with some math functions and such.

Also, is it possible to set one of the analog outputs to be a steady +10 Volts, so I can use that as my reference voltage for the potentiometer input?

Been reading, searching, experimenting... finally at a point to ask a question! Thx... Mike B.
 
You can do it without scaling, but you will need to do some math at some point to get your flash rate. Normally it is easier to convert the units to engineering units in the PLC for troubleshooting.

Here is the basic concept of scaling. EU = input / InputSpan * EUSpan
Now if you have an offset on your low value, you need to account for that on either the input or output of the equation. ie...EU = (input - inputZero) / InputSpan * EUSpan + EUZero

So for example lets convert a 4-20mA signal to 3-15 PSI with an input of 8mA. First we need to convert our input to a percentage. We have an offset of 4, that we want to get rid of, to get 0-100%. Subtract 4 from our input and the input high number. Now we have 4mA out of a span of 16. which gives us 25%. Next we multiply our output span by this percentage. For 3-15 PSI we have a span of 12. 0.25*12 = 3. Finally we need to add our offset (3PSI) which will give us 6PSI.

Your numbers will vary (depending on the input configuration) You will need to look up what your input gives you at 0 an 10V.

RS500 also contains a scale (SCL) function which find the slope and enter the offset (I'm not sure if it is available on the ML1100)I like the method above, because once you learn it, you can apply it to any PLC. It also helps you to understand scaling. Also, I'm not sure if the ML1100 has the compute instruction (CPT). This will allow you to type in an equation, which will use less intermediate addresses, than individual Multiply and Divide operations.

I typed this out quickly, I hope it helps
 
Got it to work... SCP is very handy! Next, I'm trying to get the LCD display to show the actual 'frequency' of the so-called 'flashes'. (Per minute)

I got it to display a value that was stored in a N7 register, but my potentiometer isn't linear... much more reading to do!

Thanks to all who replied. :geek:
 
it should not matter if the pot is nonlinear.
at the end of the day the scaled value (SCP) is for exapmle 0~100
which is still 0 ~ 10V the difference is how far you turn the pot.
the RPM is still only needed to be done by calculations
 

Similar Topics

I'm having trouble calming down 2 Tempo Sonics. I'm using Studio 5000 CompactLogix my Raw value is jumping around from 8575.0 to 8755.0 at a...
Replies
30
Views
1,221
I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
10
Views
297
Hi, I have questions. I have Analog Input that need to put into Ignition Designer. But I don't know how to put?
Replies
1
Views
143
Omron AD081-V1 Analog Input Card Offset & Gain Adjustment Entering Adjustment Mode 1. Set the input card in adjustment mode (Turn ON Dip SW No-1)...
Replies
0
Views
115
Why AMIo800 Analog input module's I/O LED is Lighting up Red? Checked module connections, 4-20ma wires etc but this light is continuously Lighting...
Replies
1
Views
126
Back
Top Bottom