Analog Input to Analog Output

rawtalent

Member
Join Date
Feb 2005
Location
pa
Posts
3
Basically I've got RSLogix 500 and an Allen Bradley Micrologix 1200 with the 1762-IF20F2 analog input/output module. I've also got two Sharp IR sensors(GP2d12). I want to take the input voltage from those sensors and scale it to use with a simple electric 10v motor. I know that I can use scaling with parameters to get the input but how does the SLC function work with outputing a voltage recieved. Does anybody have an example of a input analog signal controlling an analog output signal in RSLogix 500? How do you adress the bit inputs and outputs? thanks for your time
 
I don't understand what you're trying to do.

I see the IR sensor is a distance sensor that puts out a .4-2.4 VDC (typical) signal depending on distance to the reflected object.

What is the motor supposed to do?

Are you planning on driving the 10VDC motor directly off of an analog output? Are you sure the output can supply sufficient current?
Even if it can supply the current, I'd be very hesitant about doing this.

I know that in things like RC cars they usually connect a small cap across the motor to help reduce backfeed noise that the motor is sure to generate. Even with a cap, the motor will generate sometimes and backfeed power into your PLC output. RC cars use speed controllers with circuits that are designed to deal with this. PLC analog outputs are not.

Maybe I'm overreacting or not understanding your plan, but this sounds to me like a recipe for burned out analog output cards (and those are pretty expensive).
 
ok

analog signal controlling an analog output signal in RSLogix 500? How do you adress the bit inputs and outputs?
If your card was in slot 2 it would be I:2.0 I:2.1 the output word would be O:2.0 O:2.1. If the card was in slot 3 it would be
I:3.0 I:3.1 and O:3.0 and O:3.1.
This may help
abconf.jpg

I`m like jimbo3123 i don`t understand what your trying to do either, but what ever it is this will help on the addressing????

:site:
 
I am just learning about this myself at class. What he is doing sounds similar.

I think his question is this

IR output is say 4 to 20 mA.
This correspond to bit values 0 to 1600. I picked these numbers out of the air, 1600 is evenly divided by 4, 20 and 10.
the bit values would correspond to a voltage output range of 0 to 10 VDC.
SO (if I understand correctly)
4 mA = bit value 0 = 0 VDC output
12 mA = bit value 800 = 5 VDC output.
20 mA = bit value 1600 = 10 VDC output.

Have I got the picture OK ??
Feedback more than welcome

Dan Bentler
 
Not Exactly

IR output is say 4 to 20 mA.
This correspond to bit values 0 to 1600. Have I got the picture OK ??

Dan if 20 ma equaled 1600 then 4 ma would equal 320.
1600/20*4 . Now if you scaled this into 0 to 10. 320 would be your input low 1600 the Hi. 0 would be output low and 10 would be the output Hi. I sure hope this is right! o_O

:site:
 
Don't understand your application but:

If you want to have your output follow your input,say when the input is at 50% of full range, the output will be at 50%, just use two SCP's. Scale the input using the raw counts of the input card to what ever range you want, lets say 0-100%. Then the second SCP would have 0-100 as the input min and max, the output min and max would be the raw count values of the output card, the destination would be the output address O:1.0 or such.

Ken
 

Similar Topics

In this sample programming, what does U4 mean? Any assistance would be greatly appreciated.
Replies
8
Views
172
Can someone please explain to me in simple terms, the best practice with multiple 4/20ma pressure/flow transducers on multiple different 24VDC...
Replies
10
Views
340
Hello, I am trying to connect a 0-5v pressure sensor to the Micro 810, but I am not getting a clear input voltage reading. I connected the sensor...
Replies
14
Views
372
Hi all, I’m an electrician with limited knowledge of PLC circuits. Typically I will see simple 2/3/4 wire terminations for transmitters on...
Replies
26
Views
1,165
We have a 4 wire 0-10V analog OPT2012 (Time of flight distance laser) from Wenglor that we're experimenting with. We are able to teach the laser...
Replies
3
Views
496
Back
Top Bottom