AutomationDirect
Search
Login | Register
Accounts & Orders
Cart
0
$0.00

Recent Orders

View and Manage | Request Cancellation
Loading Order History
Loading...Loading...

Your Account

Account Home

Checkout   $0.00


  • My Orders
  • Product Returns (RMAs)
  • Pay Proforma Invoices
  • Pay Freights
  • Invoices / Invoice Reprint
  • Quotes / Favs / BOMs
  • Packing List Reprint
  • My Product Docs
  • Credit Application
  • Tax Exemption
| Direct Sales in US and Canada | 1-800-633-0405 | About Us | Contact Us | Line Card
Products | Support
| Compare
  
Ordering Tools  
warning Cookies are not enabled on your browser.
Cookies are required for our site. Please enable cookies in your browser preferences to continue.
ADC will be closed Friday, July 4th, to celebrate Independence Day. Orders placed after cut-off times on Thursday will be processed and shipped on Monday, July 7th.
+
Navigation
+
Shopping Categories
  • Barcode / RFID / Vision
  • Bulk Wire & Cable
  • Cables (Terminated)
  • Circuit Protection / Fuses / Disconnects
  • Communications
  • Drives & Soft Starters
  • Enclosure Thermal Management & Lights
  • Enclosures & Racks
  • Field I/O
  • HMI (Human Machine Interface)
  • Hydraulic Components
  • Motion Control
  • Motor Controls
  • Motors
  • Pneumatic Components
  • Power Products (Electrical)
  • Power Transmission (Mechanical)
  • Process Control & Measurement
  • Programmable Controllers
  • Pushbuttons / Switches / Indicators
  • Relays / Timers
  • Safety
  • Sensors / Encoders
  • Stacklights
  • Structural Frames / Rails
  • Tools & Test Equipment
  • Valves
  • Water (Potable) Components
  • Wiring Solutions
  • Retired Products
+
Learn More
  • Brand Line Card
  • What's New
  • E-newsletter
  • Online PDF Catalog
  • Video Tutorials
  • Company Reviews
  • Learning Library
  • Affordable Training
  • Free Online PLC training
  • Cybersecurity
+
In Depth Product Sites
  • Programmable Logic Controllers
  • Productivity1000 PLCs
  • Productivity2000 PLCs
  • Productivity3000 PLCs
  • ProductivityCODESYS
  • LS Electric XGB Series PLCs
  • ProductivityOpen
  • CLICK PLCs
  • Do-more H2 PLCs or
    Do-more T1H Series
  • Do-more BRX PLCs
  • C-more Touch Panels
  • AC & DC Drives
  • Motion Control Components
  • Servos
  • StrideLinx
  • Pneumatics
+
Product Selectors &
Configuration Utilities
  • PLC Family Selector
  • P1000 PLC Systems
  • P2000 PLC Systems
  • P3000 PLC Systems
  • ProductivityCODESYS
  • CLICK PLC Systems
  • Do-more® BRX PLC Systems
  • LS-Electric® XGB PLC Systems
  • Productivity®Open Systems
  • Datalogic® Safety Light Curtains
  • LS-Electric® Servo Systems
  • Nitra® Pneumatic Grippers
  • Object Detection (Sensors)
  • PAL Controller Configurator
  • Precision Gearbox Selector
  • Protos X® Field I/O
  • Quadritalia® Modular Enclosures
  • Stellar® Soft Starters
  • Stepper System Selector
  • SureFrame T-slot Extrusion
  • SureMotion® XYZ Gantry
  • SureServo2® System Selector
  • SureStep® Linear Actuators
  • Timing Belts & Pulleys
  • Werma® Stacklights
  • ZIPLinks

How to Sense Distance with an AutomationDirect Productivity PLC


Related Products

P3-11B
P3-11B Thumbnail
P3-01AC
P3-01AC Thumbnail
P3-01DC
P3-01DC Thumbnail
P3-08ND3S
P3-08ND3S Thumbnail
P3-16ND3
P3-16ND3 Thumbnail
P3-32ND3
P3-32ND3 Thumbnail
P3-64ND3
P3-64ND3 Thumbnail
P3-08TD1S
P3-08TD1S Thumbnail
P3-08TD2S
P3-08TD2S Thumbnail
P3-16TD1
P3-16TD1 Thumbnail
P3-16TD2
P3-16TD2 Thumbnail
P3-32TD1
P3-32TD1 Thumbnail
P3-32TD2
P3-32TD2 Thumbnail
P3-64TD1
P3-64TD1 Thumbnail
P3-64TD2
P3-64TD2 Thumbnail
P3-08NAS
P3-08NAS Thumbnail
P3-16NA
P3-16NA Thumbnail
P3-08TAS
P3-08TAS Thumbnail
P3-16TA
P3-16TA Thumbnail
P3-08TRS
P3-08TRS Thumbnail
P3-08TRS-1
P3-08TRS-1 Thumbnail
P3-16TR
P3-16TR Thumbnail
P3-04ADS
P3-04ADS Thumbnail
P3-08AD
P3-08AD Thumbnail
P3-16AD-1
P3-16AD-1 Thumbnail
P3-16AD-2
P3-16AD-2 Thumbnail
P3-08RTD
P3-08RTD Thumbnail
P3-08THM
P3-08THM Thumbnail
P3-04DA
P3-04DA Thumbnail
P3-08DA-1
P3-08DA-1 Thumbnail
P3-08DA-2
P3-08DA-2 Thumbnail
P3-06DAS-1
P3-06DAS-1 Thumbnail
P3-16DA-1
P3-16DA-1 Thumbnail
P3-16DA-2
P3-16DA-2 Thumbnail
P3-8AD4DA-1
P3-8AD4DA-1 Thumbnail
P3-8AD4DA-2
P3-8AD4DA-2 Thumbnail
P3-SCM
P3-SCM Thumbnail
P3-HSI
P3-HSI Thumbnail
P3-HSO
P3-HSO Thumbnail
P3-16SIM
P3-16SIM Thumbnail
UK1A-E2-0E
UK1A-E2-0E Thumbnail
P1-USER-M
P1-USER-M Thumbnail
PCON-KIT
PCON-KIT Thumbnail
P1-10RTB-1
P1-10RTB-1 Thumbnail
P1-10RTB
P1-10RTB Thumbnail
P1-04PWM
P1-04PWM Thumbnail
P1-02HSC
P1-02HSC Thumbnail
P1-04RTD
P1-04RTD Thumbnail
P1-4ADL2DAL-2
P1-4ADL2DAL-2 Thumbnail
P1-4ADL2DAL-1
P1-4ADL2DAL-1 Thumbnail
P1-08DAL-2
P1-08DAL-2 Thumbnail
P1-08DAL-1
P1-08DAL-1 Thumbnail
P1-08ADL-2
P1-08ADL-2 Thumbnail
P1-08ADL-1
P1-08ADL-1 Thumbnail
P1-04ADL-1
P1-04ADL-1 Thumbnail
P1-04AD
P1-04AD Thumbnail
P1-08TA
P1-08TA Thumbnail
P1-08NA
P1-08NA Thumbnail
P1-15TD2
P1-15TD2 Thumbnail
P1-15TD1
P1-15TD1 Thumbnail
P1-16NE3
P1-16NE3 Thumbnail
P1-16ND3
P1-16ND3 Thumbnail
P1-08NE3
P1-08NE3 Thumbnail
P1-02AC
P1-02AC Thumbnail
P1-01DC
P1-01DC Thumbnail
P1-550
P1-550 Thumbnail
P1-540
P1-540 Thumbnail
P1-START
P1-START Thumbnail
MICSD-16G
MICSD-16G Thumbnail
P1-01AC
P1-01AC Thumbnail
P1-08ND3
P1-08ND3 Thumbnail
P1-08TD1
P1-08TD1 Thumbnail
P1-08TD2
P1-08TD2 Thumbnail
P1-15CDD1
P1-15CDD1 Thumbnail
P1-15CDD2
P1-15CDD2 Thumbnail
P1-16CDR
P1-16CDR Thumbnail
P1-08TRS
P1-08TRS Thumbnail
P1-16TR
P1-16TR Thumbnail
P1-04ADL-2
P1-04ADL-2 Thumbnail
P1-04DAL-1
P1-04DAL-1 Thumbnail
P1-04DAL-2
P1-04DAL-2 Thumbnail
P1-04THM
P1-04THM Thumbnail
P1-04NTC
P1-04NTC Thumbnail
P1-08SIM
P1-08SIM Thumbnail
PS-PGMSW
PS-PGMSW Thumbnail
P2-550
P2-550 Thumbnail
P2-RS
P2-RS Thumbnail
P2-START2
P2-START2 Thumbnail
P2-04B
P2-04B Thumbnail
P2-07B
P2-07B Thumbnail
P2-11B
P2-11B Thumbnail
P2-15B
P2-15B Thumbnail
P2-01AC
P2-01AC Thumbnail
P2-01DCAC
P2-01DCAC Thumbnail
P2-08ND3-1
P2-08ND3-1 Thumbnail
P2-08NE3
P2-08NE3 Thumbnail
P2-16ND3-1
P2-16ND3-1 Thumbnail
P2-16NE3
P2-16NE3 Thumbnail
P2-32ND3-1
P2-32ND3-1 Thumbnail
P2-32NE3
P2-32NE3 Thumbnail
P2-08TD1S
P2-08TD1S Thumbnail
P2-08TD2S
P2-08TD2S Thumbnail
P2-08TD1P
P2-08TD1P Thumbnail
P2-08TD2P
P2-08TD2P Thumbnail
P2-15TD1
P2-15TD1 Thumbnail
P2-15TD2
P2-15TD2 Thumbnail
P2-16TD1P
P2-16TD1P Thumbnail
P2-16TD2P
P2-16TD2P Thumbnail
P2-32TD1P
P2-32TD1P Thumbnail
P2-32TD2P
P2-32TD2P Thumbnail
P2-08NAS
P2-08NAS Thumbnail
P2-16NA
P2-16NA Thumbnail
P2-08TAS
P2-08TAS Thumbnail
P2-16TA
P2-16TA Thumbnail
P2-08TRS
P2-08TRS Thumbnail
P2-16TR
P2-16TR Thumbnail
P2-04AD
P2-04AD Thumbnail
P2-08AD-1
P2-08AD-1 Thumbnail
P2-08AD-2
P2-08AD-2 Thumbnail
P2-08ADL-1
P2-08ADL-1 Thumbnail
P2-08ADL-2
P2-08ADL-2 Thumbnail
P2-16AD-1
P2-16AD-1 Thumbnail
P2-16AD-2
P2-16AD-2 Thumbnail
P2-16ADL-1
P2-16ADL-1 Thumbnail
P2-16ADL-2
P2-16ADL-2 Thumbnail
P2-04DA
P2-04DA Thumbnail
P2-04DAL-1
P2-04DAL-1 Thumbnail
P2-04DAL-2
P2-04DAL-2 Thumbnail
P2-08DA-1
P2-08DA-1 Thumbnail
P2-08DA-2
P2-08DA-2 Thumbnail
P2-16DA-1
P2-16DA-1 Thumbnail
P2-16DA-2
P2-16DA-2 Thumbnail
P2-08DAL-1
P2-08DAL-1 Thumbnail
P2-08DAL-2
P2-08DAL-2 Thumbnail
P2-16DAL-1
P2-16DAL-1 Thumbnail
P2-16DAL-2
P2-16DAL-2 Thumbnail
P2-8AD4DA-1
P2-8AD4DA-1 Thumbnail
P2-8AD4DA-2
P2-8AD4DA-2 Thumbnail
P2-08THM
P2-08THM Thumbnail
P2-06RTD
P2-06RTD Thumbnail
P2-08NTC
P2-08NTC Thumbnail
P2-SCM
P2-SCM Thumbnail
P2-HSI
P2-HSI Thumbnail
P2-HSO
P2-HSO Thumbnail
P2-08SIM
P2-08SIM Thumbnail
P3-550E
P3-550E Thumbnail
P3-550
P3-550 Thumbnail
P3-530
P3-530 Thumbnail
P3-RS
P3-RS Thumbnail
P3-RX
P3-RX Thumbnail
P3-EX
P3-EX Thumbnail
P3-03B
P3-03B Thumbnail
P3-05B
P3-05B Thumbnail
P3-08B
P3-08B Thumbnail


To learn more: https://www.automationdirect.com/productivity?utm_source=WmZPORBgKI0&utm_medium=VideoTeamDescription

(VID-P2-0006)

Learn how to sense distance using a Micro Detectors UK series ultrasonic and laser sensors with a Productivity2000 industrial automation controller in this brief, hands-on demo.
Software Version used in this video: Productivity Suite Programming Software Version 2.0.0 (44)

Online Support Page: https://community.automationdirect.com/s/?utm_source=WmZPORBgKI0&utm_medium=VideoTeamDescription

**Please check our website for our most up-to-date product pricing and availability.


Hide Transcript
View Transcript

For this demo we’ll be using an Ultrasonic distance sensor that outputs 4-20mA and a Laser Distance sensor that is configured to output 0-10Volts. Watch the Tech Tip videos to see how to setup and configure those sensors. We just take those outputs and wire them into the Analog Inputs of the controller. The Productivity 2000 has several ways we could approach this. We could use single 4 channel input module that can do Voltage or Current, We could use an 8 channel current input module and an 8 channel voltage input module, or we can use a 16 input current module and a 16 input voltage module. Since we only have one current and one voltage input, we’ll just use the least expensive option: the single 4 channel module. The cool thing about this module is you can set each channel to either current or voltage – you don’t have to dedicate the entire module to one or the other. That’s really handy that you can do both voltage and current on the same module. Let’s wire the Ultrasonic sensors current output into channel 1 and the laser sensors voltage output into channel 2. Make sure you add this jumper to any current inputs – there’s a little note here in the datasheet to remind you but it’s easy to miss … The module also needs 24Vdc . Here it is in hardware: the current input on channel 1 jumpered to its V+ terminal. The Voltage input on channel 2, and the 24Vdc. While we are here, look at the clarity of this amber organic LED display. It’s just incredible. This photo was taken from an extreme off angle, yet the display is still super clear. This is the actual un-retouched photo – I didn’t enhance it at all. This is what the display really looks like. That’s amazing. Now we just bring up the Productivity suite software, start a new project, and go straight to the hardware configuration dialog. Of course we need to connect to the controller … we’re connected via USB … and we want to use our new clean project. Configuring the Productivity series hardware is so easy, you just click on this button and all the hardware is automatically discovered. You don’t have to fill in any tables specify modules or anything like that – it does it all for you. It tells us it found some new stuff – we know that – so we’ll just say yes to all. And just like that we now have a snapshot of this base and if we double click on that we can see what we have. Awesome. Let’s double click on the analog input module to set it up. Channel 1 is the Ultrasonic sensor which has a current output, so we select 0-20mA and let’s change the name to Ultrasonic. The laser sensor we wired to channel 2 is outputting 0-10V so we select that one. Let’s change the name of that guy to Laser. And let’s deselect the two channels we aren’t using. We don’t really need to do that, but it is a good habit to get into - when your system starts to grow it reduces the burden on the processor. Let’s add all of these to a dataview by clicking this Monitor Button. And that’s all there is to it. Let’s transfer this configuration to the productivity 2000 and see what happens. The data view on the Productivity series controllers is awesome. In a single dialog you can see each TAG – let’s delete the ones we aren’t using - a real time plot of any tags you drag in here, and my favorite, the I/O view where I can see at a glance what every I/O in my system is doing. You may need to widen this window to see all of four channels of the analog input module. If I had more modules in this system, we would see those here too. Looks like both of our sensors are maxed out right now, but if I put my hand in front of the laser sensor, sure enough the I/O responds. And if we do the same thing to the Ultrasonic sensor, again, same result. If we drag these tags into the chart area, then we can watch the results scroll by. To use this in our ladder code, we just grab a compare contact like this, and compare the input value to something to make a decision. There is one problem though, wouldn’t it be great if instead of numbers in the range of 0 to 65535 we had real numbers we could understand, like inches to the object? Well, that’s exactly what this scale function is for. You just enter the input min and max and the output min and max. The Laser is 0 to 10 Volts input which to the PLC is 0 to 65535. And the sensor was setup to go from three to 20 inches over that range. Let’s give the new scaled value a name – we’ll call it Laser_inches. The Ultrasonic is a little bit different. The modules input range is from 0 to 20mA which corresponds to 0 to 65535 counts. But our sensor is 4 to 20mA. So if we do a little math we find the input minimum is 13107 which goes here. The sensor was setup so that 3 inches is 4mA and 16 inches is 20mA so we put that here. We’ll call that Ultrasonic_Inches. Transfer to the controller. With monitoring turned on, we see that this count that’s read by the analog module is converted into inches for both of our sensors. Perfect. We would now use that value in our ladder code to make the code easier to read and work with. And of course, the analog values are displayed right on this Analog module screen. You can even select how you want those results displayed, raw values, hexadecimal, and current/voltage. This OLED display makes debugging analog inputs easy because you see the answer right on the module and immediately know if the problem is outside or inside the controller. I love that. The Productivity Series controllers just make your life easy. From the Auto Discovery of the hardware to the OLED displays on the modules to the intuitive programming and instruction set. It’s all set up to make you more productive. If you have any questions, please don’t hesitate to contact automation directs free award winning tech support during regular business hours. They will be happy to help you. And don’t forget the forums. There are lots of folks there that love to share their years of experience. Just don’t post any support questions there. AutomationDirect’s support staff doesn’t monitor the forums on a regular basis.



No data returned!
An error has occurred! Please contact support
Videos Home > How to Sense Distance with an AutomationDirect Productivity PLC
Contact, Connect & More
Sign Up
to receive:
FREE e-Newsletter
sign up today!
Connect With Us
Social Media Channels:
linkedin    facebook    x    instagram    youtube
Company Information
About Us
Brand Line Card
System Integrator Program
International Sales
Panel Builder Program
Site Help
Company Reviews
Download Price List
Contact Us
Contact Options
1-800-633-0405
Monday - Friday
9 a.m. - 6 p.m. ET
excluding holidays
Career Opportunities
Voted #1 mid-sized employer in Atlanta
We're a great place to work!
Check out our job openings

Need Training?
Affordable Training by Interconnecting Automation
Free Online PLC Training
FREE Video Tutorials
Information & News
What's New / In The News
FREE e-Newsletter
Automation Notebook
Product Literature
White Papers
News, Product and Training Bulletins
E-Books
Shop with confidence
Checked   Safe & Secure
payment methods


We accept VISA, MasterCard, Discover, American Express, PayPal or company purchase orders.
AutomationDirect

BBB Accredited

Voted #1 mid-sized employer in Atlanta
Check out our job openings

Copyright © 1999-2025 AutomationDirect.  ALL RIGHTS RESERVED.
Site Map     Send Us your Feedback     Unsubscribe     Email Preferences     Legal & Business Policies     YouTube Terms of Service
Clear login credentials



Back to Top


spinner Updating...
Info