Ultrasonic Sensor Reading

JeffPLC

Member
Join Date
Jan 2015
Location
CA
Posts
12
Hello everyone,

I have a pretty basic question which I can't seem to find any information for. I have an ultrasonic sensor connected to my analog input (IF16) which is hooked up to a 1756-L61 controller. I can't seem to find out where exactly to read the incoming data. I have all of the following steps figured out afterwards I believe but I just can't seem to find how to view the initial values.
I'm fairly new to PLCs and I'm sorry if this is a very basic question, but I'm having trouble even locating documents online to outline this process.
Could someone help me out? Or even point me in the right direction?

Thank you
 
What type of PLC you are using is pretty important.

I know with Allen Bradley PLCs you can view the data table for the location of your sensor input (such as I:3/4) and that value will give you a binary word for the sensor input.

I don't know if this is for a level or not, but you would do something like, verify the container is empty, or at what you consider base level, then check the word for that input address, then set that as your max with SCP instruction.

Then get the value for a full container and set that as your max in the SCP instruction.
 
Look in the controller organizer and find out which module # your IF-16 card is. Once you know go into controller tags and and find the address and tunnel down into it. It's going to look something like this: Local:2:I.Ch0Data
 
It's Rockwell Software.
I'm looking at the channels but there's still no relevant information. All I see changing is the rolling timestamp.
Also, curiously, the module doesn't show channels 8-15 but shows 0-7 no problem. Is there something obvious I'm missing? The module is corrct and even says there is a match.
 
I believe that you can change the way the values are displayed from binary to decimal.
Click where it says binary next to the channel you want and change to decimal.

Also look again for channels 8-15 if they are not lumped in with the first 8 continue looking down or maybe even look to the next set that can be expanded on the tree.
 
It's Rockwell Software.
I'm looking at the channels but there's still no relevant information. All I see changing is the rolling timestamp.
Also, curiously, the module doesn't show channels 8-15 but shows 0-7 no problem. Is there something obvious I'm missing? The module is corrct and even says there is a match.

It is because the module was originally set up as "differential" inputs vs. "single ended". it can do 8 differential or 16 single ended.

Have you configured the channel when you double click on the module itself? It must be set up for type and range.
 
Well we've tried rewiring it to channel 0 to bypass any issues but now the reading is still stuck at 0 regardless. Every few seconds it switches to something like 3.4165e-4 which is close enough to call 0. The sensor seems to be working as the LEDs indicate so. I'm not quite sure how to configure the channel like you say but I hoped we'd at least get a reading to go off of first
 
You should be able to click on your module and go to the configuration tab as shown in the picture. Is this a loop powered device? Are you sure it's wired correctly? If it is not loop powered, the LED's could be on and still not wired correctly. Double check the manual and make sure you have wired properly for single ended of differential input.

PS- Can't get my picture to load but i will try again.
 
It's a strange configuration but I believe it's hooked up correctly as once I hit a switch on the sensor, the data went from 0 to 1.1945 or so. I still can't get it to change but that means there's at least SOME connection in some way
 
OK- well since it doesn't work, I'd have to think something isn't right. I was able to attach the picture of the communication tab.

Can you provide even a penciled drawing of how you have it wired in?And also the a few pics of the module setup? Are your sure the sensor is on the right wires for mA or voltage or whatever your using? does the sensor require setup?

Also-I believe on one of the other tabs in the picture there may be a radio button that you have t toggle on to enable the channel your on. Not quite sure because I'm used to the 1769 Compact I/O modules.

channel.jpg
 
Last edited:
Yeah I've already configured it for mAmps, changed it to 4-20, and the switches on the sensor itself shows mAmp output. We've wired it according to the mAmp input for the PLC. Here's a pic of how it's wired.
It receives it's 24v signal from an external supply so we just have the signal and ground going into the PLC with the jumper wire connecting it so it's on channel 0.
Any ideas?

mAmp.jpg
 
Wiring looks ok according to manual. Have you tried swapping the black and white wires for the hell of it?
Does the module status say "running"?
Have you had any other inputs on this card that were working?
Do you have a milliamp simulator?
what brand ultrasonic and model?
 
Your wiring is incorrect. You have it wired for a differential input..

you should be on terminals 1 (+) and 2, and a jumper between 1 and 9.
 
His module is configured for differential inputs so I was assuming that's what he needed. If there are other differential inputs they cannot be mixed and matched as far as I know.
 
Looks like it's working now :D
After playing around with the configuration for a bit and resetting it, this morning I seem to get a different reading. Thanks for all your help! I appreciate it!
Now I'm just going to set the windows and make sure it operates with a display.
 

Similar Topics

Looking at a sensor wired directly to a PLC analog input (DL450) and trying to identify a make and model. Sensor is working, but if I sign a...
Replies
6
Views
3,739
Hi, I want to use an ultrasonic sensor with Micro850 PLC. Is there any cheap sensors that I can use for distance measurement?
Replies
2
Views
2,201
Hello In my factory we use ultrasonic level sensor VEGASM61 to measure solar fuel in a tank. I contact with many suppliers to buy one. many of...
Replies
5
Views
2,342
Dear, Consultant wants to use a bubbler system for storm water pumping stations, pumping stations is 800 liter/Sec. What is the benefit of...
Replies
8
Views
4,528
I am using an ultrasonic sensor to measure distance and the input is not too stable. I know this is the nature of the sensor,ambient conditions...
Replies
13
Views
4,141
Back
Top Bottom