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.
+
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 CLICK PLC


Related Products

C2-01CPU
C2-01CPU Thumbnail
C2-02CPU
C2-02CPU Thumbnail
C2-03CPU
C2-03CPU Thumbnail
C0-08SIM
C0-08SIM Thumbnail
C0-00DD1-D
C0-00DD1-D Thumbnail
C0-00DD2-D
C0-00DD2-D Thumbnail
C0-00DR-D
C0-00DR-D Thumbnail
C0-00AR-D
C0-00AR-D Thumbnail
C0-01DD1-D
C0-01DD1-D Thumbnail
C0-01DD2-D
C0-01DD2-D Thumbnail
C0-01DR-D
C0-01DR-D Thumbnail
C0-01AR-D
C0-01AR-D Thumbnail
C0-02DD1-D
C0-02DD1-D Thumbnail
C0-02DD2-D
C0-02DD2-D Thumbnail
C0-02DR-D
C0-02DR-D Thumbnail
C0-10DD1E-D
C0-10DD1E-D Thumbnail
C0-10DD2E-D
C0-10DD2E-D Thumbnail
C0-10DRE-D
C0-10DRE-D Thumbnail
C0-11DD1E-D
C0-11DD1E-D Thumbnail
C0-11DD2E-D
C0-11DD2E-D Thumbnail
C0-11DRE-D
C0-11DRE-D Thumbnail
C0-11ARE-D
C0-11ARE-D Thumbnail
C0-12DD1E-D
C0-12DD1E-D Thumbnail
C0-12DD2E-D
C0-12DD2E-D Thumbnail
C0-12DRE-D
C0-12DRE-D Thumbnail
C0-12ARE-D
C0-12ARE-D Thumbnail
C0-12DD1E-1-D
C0-12DD1E-1-D Thumbnail
C0-12DD2E-1-D
C0-12DD2E-1-D Thumbnail
C0-12DRE-1-D
C0-12DRE-1-D Thumbnail
C0-12ARE-1-D
C0-12ARE-1-D Thumbnail
C0-12DD1E-2-D
C0-12DD1E-2-D Thumbnail
C0-12DD2E-2-D
C0-12DD2E-2-D Thumbnail
C0-12DRE-2-D
C0-12DRE-2-D Thumbnail
C0-12ARE-2-D
C0-12ARE-2-D Thumbnail
C0-08ND3
C0-08ND3 Thumbnail
C0-08ND3-1
C0-08ND3-1 Thumbnail
C0-16ND3
C0-16ND3 Thumbnail
C0-08TD1
C0-08TD1 Thumbnail
C0-08TD2
C0-08TD2 Thumbnail
C0-08NE3
C0-08NE3 Thumbnail
C0-16TD1
C0-16TD1 Thumbnail
C0-16TD2
C0-16TD2 Thumbnail
C0-16NE3
C0-16NE3 Thumbnail
C0-08CDR
C0-08CDR Thumbnail
C0-16CDD1
C0-16CDD1 Thumbnail
C0-16CDD2
C0-16CDD2 Thumbnail
C0-08NA
C0-08NA Thumbnail
C0-08TA
C0-08TA Thumbnail
C0-08TR
C0-08TR Thumbnail
C0-04AD-1
C0-04AD-1 Thumbnail
C0-04AD-2
C0-04AD-2 Thumbnail
C0-04DA-1
C0-04DA-1 Thumbnail
C0-04DA-2
C0-04DA-2 Thumbnail
C0-4AD2DA-1
C0-4AD2DA-1 Thumbnail
C0-4AD2DA-2
C0-4AD2DA-2 Thumbnail
C0-04RTD
C0-04RTD Thumbnail
C0-04THM
C0-04THM Thumbnail
C0-PGMSW
C0-PGMSW Thumbnail
UK1A-E2-0E
UK1A-E2-0E Thumbnail


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

(VID-CL-0025)

Learn how to sense distance using a Micro Detectors UK series ultrasonic and laser sensors with a CLICK PLC industrial automation controller in this brief, hands-on demo.
Software Version used in this video: CLICK Programming Software Version 1.40

Online Support Page: https://community.automationdirect.com/s/?utm_source=wJlop2JXGyQ&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-10 Volts. 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 PLC. We’re going to use a FOUR input analog current module and a FOUR input analog voltage module. We only need one current input and one voltage input for this video. As a side note, could we have used one of the Analog Click PLCs here? Sure. They come with 2 analog current inputs and two analog voltage inputs. The only issue is the voltage inputs are 0-5Volts, but our sensors are 0-10Vdc. So for this example we could only eliminate the extra current module. We’re using external current and voltage modules in this video because this test rack is also used for other videos and was already setup this way. In a real application would I probably use one of the CLICKs with the built in analog ports just to save about 50 bucks and DIN rail space. But for this video this is the hardware we will be using. We have two of the current inputs wired and two of the voltage inputs wired even though we are only using one of each. And here’s the 24vdc required by both modules. These zero volt points are electrically connected to this zero and are provided for your convenience to tie off the sensor common. Our test setup has the commons tied together off screen on some DIN rail terminal blocks which are electrically connected to these so we’re in good shape. While we’re looking at these modules, I should probably point out that the pricing on these modules is crazy – it’s one of the least expensive PLC’s you’ll find anywhere. And that there are lots of options. For example, these are dedicated analog input modules. There are also dedicated analog output modules and even combo modules that do both analog in and analog out. It’s amazingly flexible and inexpensive. The cool thing about the CLICK is it automatically detects all the installed modules without you having to do anything. Let’s create a new project, connect to the CLICK PLC – this one is on com 5 – we don’t want the project that is currently in the CLICK PLC, and just like that, all the modules in the CICK PLC are automatically discovered. We can see that in the System configuration. It’s reminding us to select the power supply and that we need to configure the analog modules. Let’s go ahead and select the power supply – we’re using the 01 version. Do you have to select the power supply? Not really, but having that selected, the software can now automatically calculate the power budget and warn you if you don’t have enough power, so it is a good habit to get into. Here we see our CPU and the two analog modules, the 4 input current module and the 4 input voltage module. Click on CONFIG to setup the current input module. Our input range is from 4 to 20 ma, that represents 3 to 12 inches and we’ll put that result in DF1. How cool is that – the CLICK automatically does the scaling for you! The raw value we get in the ladder code will already be in inches. We don’t have to use a separate ladder function to do it. I love that. Because this continuous address is selected, the software automatically assigned DF2 to DF4 to these guys even though we are not using them. So when we do the Voltage input module, which will run from 0-10 volts, which represents 2 to 16 inches, we need to put that result in DF5 – the next available location. As we exit out of here, we get a reminder that the system configuration has changed and we need to send it to the CLICK. It also reminds us that analog module nicknames are assigned automatically. That’s fine. Let’s add an END and then write the project out to the CLICK PLC. Save it. Say ok, yes we want to over write the current project. Let’s bring up a dataview and see what the Ultrasonic and Laser sensors are doing. If I put my hand in front of the ultra sonic sensor, we see it respond and the same for the laser sensor. Perfect. To use that in the ladder code, we just grab a compare contact and compare the ultrasonic output to some level in inches because remember - the CLICK has already scaled the value for us, and then we use that to enable an output coil. If you prefer nicknames for the memory addresses, just go to program, address picker. Select the DF memory type we are using, and give them a name. We’ll label DF1 Ultrasonic and DF5 Laser. Now the name of the memory location appears on the ladder code making it much easier to understand. We’ll have that drive output coil y2 and we’ll add an end. Transfer that to the CLICK PLC. And if I put my hand in front of the sensors we see the result. Perfect. If you have any questions, please contact AutomationDirect’s 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. Don’t post any tech 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 CLICK 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