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

Recent Orders

View and Manage | Request Cancellation

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
  • AC Motors
  • 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

BRX Do-more PLC Setup and Use a Barcode Scanner from AutomationDirect


Related Products

BX-DM1E-M-D
BX-DM1E-M-D Thumbnail
BX-DM1E-M
BX-DM1E-M Thumbnail
BX-DM1-10AR-D
BX-DM1-10AR-D Thumbnail
BX-DM1-10ER-D
BX-DM1-10ER-D Thumbnail
BX-DM1-10ED1-D
BX-DM1-10ED1-D Thumbnail
BX-DM1-10ED2-D
BX-DM1-10ED2-D Thumbnail
BX-DM1E-10AR3-D
BX-DM1E-10AR3-D Thumbnail
BX-DM1E-10ER3-D
BX-DM1E-10ER3-D Thumbnail
BX-DM1E-10ED13-D
BX-DM1E-10ED13-D Thumbnail
BX-DM1E-10ED23-D
BX-DM1E-10ED23-D Thumbnail
BX-RTB10
BX-RTB10 Thumbnail
BX-RTB10-1
BX-RTB10-1 Thumbnail
BX-RTB10-2
BX-RTB10-2 Thumbnail
BX-DM1-18ER-D
BX-DM1-18ER-D Thumbnail
BX-DM1-18ED2-D
BX-DM1-18ED2-D Thumbnail
BX-DM1-18ED1-D
BX-DM1-18ED1-D Thumbnail
BX-DM1E-18ER3-D
BX-DM1E-18ER3-D Thumbnail
BX-DM1E-18ED23-D
BX-DM1E-18ED23-D Thumbnail
BX-DM1E-18ED13-D
BX-DM1E-18ED13-D Thumbnail
BX-DM1-18AR
BX-DM1-18AR Thumbnail
BX-DM1-18ER
BX-DM1-18ER Thumbnail
BX-DM1-18ED2
BX-DM1-18ED2 Thumbnail
BX-DM1-18ED1
BX-DM1-18ED1 Thumbnail
BX-DM1E-18AR3
BX-DM1E-18AR3 Thumbnail
BX-DM1E-18ER3
BX-DM1E-18ER3 Thumbnail
BX-DM1E-18ED23
BX-DM1E-18ED23 Thumbnail
BX-DM1E-18ED13
BX-DM1E-18ED13 Thumbnail
BX-RTB18
BX-RTB18 Thumbnail
BX-RTB18-1
BX-RTB18-1 Thumbnail
BX-RTB03
BX-RTB03 Thumbnail
BX-RTB03-1
BX-RTB03-1 Thumbnail
BX-RTB05
BX-RTB05 Thumbnail
BX-RTB05-1
BX-RTB05-1 Thumbnail
BX-RTB05-2
BX-RTB05-2 Thumbnail
BX-RTB06
BX-RTB06 Thumbnail
BX-RTB06-1
BX-RTB06-1 Thumbnail
BX-DM1-36ER-D
BX-DM1-36ER-D Thumbnail
BX-DM1-36ED2-D
BX-DM1-36ED2-D Thumbnail
BX-DM1-36ED1-D
BX-DM1-36ED1-D Thumbnail
BX-DM1E-36ER3-D
BX-DM1E-36ER3-D Thumbnail
BX-DM1E-36ED23-D
BX-DM1E-36ED23-D Thumbnail
BX-DM1E-36ED13-D
BX-DM1E-36ED13-D Thumbnail
BX-DM1-36ER
BX-DM1-36ER Thumbnail
BX-DM1-36AR
BX-DM1-36AR Thumbnail
BX-DM1-36ED2
BX-DM1-36ED2 Thumbnail
BX-DM1-36ED1
BX-DM1-36ED1 Thumbnail
BX-DM1E-36ER3
BX-DM1E-36ER3 Thumbnail
BX-DM1E-36AR3
BX-DM1E-36AR3 Thumbnail
BX-DM1E-36ED23
BX-DM1E-36ED23 Thumbnail
BX-DM1E-36ED13
BX-DM1E-36ED13 Thumbnail
BX-RTB36
BX-RTB36 Thumbnail
BX-RTB36-1
BX-RTB36-1 Thumbnail
BX-P-SER2-RJ12
BX-P-SER2-RJ12 Thumbnail
BX-P-SER2-TERM
BX-P-SER2-TERM Thumbnail
BX-P-SER4-TERM
BX-P-SER4-TERM Thumbnail
BX-P-USB-B
BX-P-USB-B Thumbnail
BX-P-ECOMLT
BX-P-ECOMLT Thumbnail
BX-RTB03S
BX-RTB03S Thumbnail
BX-08ND3
BX-08ND3 Thumbnail
BX-12ND3
BX-12ND3 Thumbnail
BX-16ND3
BX-16ND3 Thumbnail
BX-08NF3
BX-08NF3 Thumbnail
BX-08TD1
BX-08TD1 Thumbnail
BX-08TD2
BX-08TD2 Thumbnail
BX-12TD1
BX-12TD1 Thumbnail
BX-12TD2
BX-12TD2 Thumbnail
BX-16TD1
BX-16TD1 Thumbnail
BX-16TD2
BX-16TD2 Thumbnail
BX-08CD3R
BX-08CD3R Thumbnail
BX-12CD3D1
BX-12CD3D1 Thumbnail
BX-12CD3D2
BX-12CD3D2 Thumbnail
BX-16CD3D1
BX-16CD3D1 Thumbnail
BX-16CD3D2
BX-16CD3D2 Thumbnail
BX-RTB08
BX-RTB08 Thumbnail
BX-RTB08-1
BX-RTB08-1 Thumbnail
BX-RTB08-2
BX-RTB08-2 Thumbnail
BX-08NB
BX-08NB Thumbnail
BX-12NB
BX-12NB Thumbnail
BX-16NB
BX-16NB Thumbnail
BX-08NA
BX-08NA Thumbnail
BX-12NA
BX-12NA Thumbnail
BX-16NA
BX-16NA Thumbnail
BX-08TA
BX-08TA Thumbnail
BX-12TA
BX-12TA Thumbnail
BX-08TR
BX-08TR Thumbnail
BX-12TR
BX-12TR Thumbnail
BX-16TR
BX-16TR Thumbnail
BX-05TRS
BX-05TRS Thumbnail
BX-08AD-1
BX-08AD-1 Thumbnail
BX-08AD-2B
BX-08AD-2B Thumbnail
BX-08DA-1
BX-08DA-1 Thumbnail
BX-08DA-2B
BX-08DA-2B Thumbnail
BX-04THM
BX-04THM Thumbnail
BX-PGM-CBL
BX-PGM-CBL Thumbnail
BX-DM1-START
BX-DM1-START Thumbnail
BX-DM1E-START
BX-DM1E-START Thumbnail
H2-DM1
H2-DM1 Thumbnail
H2-DM1E
H2-DM1E Thumbnail
H2-DM1E-START
H2-DM1E-START Thumbnail
T1H-DM1E
T1H-DM1E Thumbnail
T1H-DM1
T1H-DM1 Thumbnail
T1H-CTRIO
T1H-CTRIO Thumbnail
T1H-08TDS
T1H-08TDS Thumbnail


To learn more: https://www.automationdirect.com/do-more?utm_source=JqO0-DNUQSI&utm_medium=VideoTeamDescription

(VID-DM-0015)

Step by step instructions on how to setup and use a serial barcode scanner with the Do-more PLC on both the internal and external serial ports. Includes a Stage programming example too!
The barcode scanner used in this video is a Symbol LS2208 with the optional RS232 interface cable (Motorola part number CBA-R37-C09ZAR) which provides a Female DB9 for us to connect to.
We made a custom adapter to get from the LS2208 Interface Cable Serial connector output (Female DB9) to the Do-more PLC Serial Port (RJ12).

The final chain of cables and interfaces looked like this:
LS2208 .........RS232 Cable **.............. Custom ....... DoMore! PLC
Bar Code....... Interface ....................... Adapter........ RJ11
Scanner.........(CBA-R37-C09ZAR) ...... Cable ........... RS232 Port

The custom adapter was wired like this:
Male ....... Male
DB9........ RJ12 (6-pin)
..5............. 1
..2............. 3
..3............. 4

** Not an AutomationDirect part.

Note: The table in the LS2208 user guide on page 3-7 shows the pin out of the scanner, NOT the RS232 add-on interface cable that we are referring to above.

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

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


Hide Transcript
View Transcript

Getting a bar code scanner up and running on some PLCís can be a real hassle. The DoMore makes it so easy. Letís take a look: Step 1: Plug the scanner into the serial port on the front of the CPU. Step 2: Configure the hardware: Click on System configuration. Under Serial Port Mode, choose General Purpose and device Settings. Our device is running at 9600 baud, 8 bits, 1 stop bit, odd parity and no controls. Weíre good to go. Step 3: Ladder Code. You only need one instruction to read the bar code scanner: that would be STREAMIN. We want to select the Device that we are connected to ñ which is our internal serial port. And we want to determine when the message is complete. In our case we are going to be using a 10 character bar code with no delimiters. Note that you can delimit on a carriage return, line feed, or any character you want and look at this: You can even have the instruction trim the delimiters from the string that ends up in your result. We donít need that so we will turn that off. And we are also not going to have a timeout. Weíre just going to let this thing run continuously. Since this is a string, we are going to have it end up in a string structure. If you had numeric data coming in you would select this option. So thatís all you need. You just select the serial port you are plugged into, when the message is complete, and where you want the result to end up. Now you can tell from this little triangle here, that this message is edge triggered. Letís go ahead and put a control but in here, Iíll use C10 that we can use to enable the instruction with. Letís create a Data view so we can monitor some things. The first thing we want to see is the string result, which was a String Short 1 back here in our stream in instruction. Letís add a control bit, C10, so we can turn this thing on. And letís add one more thing. Iím going to add the internal serial port ñ dot ñ ìIn-queue.î That tells me how many characters are buffered up in the In Queue. Iím going to reach over here and run a couple barcodes into the bar code scanner. Ok, I just ran four in. And you can see, we collected 40 characters in our queue. That was four, ten character bar codes. To pull those bar codes out of the queue, we just enable C10. Letís turn on our edit mode. Make some room so we can view that string, and toggle C10. When we do that, we pull the first barcode out of the queue. The queue gets reduced by 10 characters, and we are good to go. Letís toggle C10 off, and back on, and my second bar code comes in and I dropped down another 10 characters. One more time, my third bar code, Iím down to 10 characters. And one more time. I see my fourth bar code and my buffer is empty. Thatís all there is to hooking up the bar code scanner to the Do-more. Letís do one more thing ñ letís put this in a code block that you can run to continuously retrieve bar code messages, without having to toggle that C10 bit. Letís go ahead and turn C10 off to get it out of our way. Weíll create a new Program, and weíll call this BarCode. And weíre going to use a simple stage program to implement this. Weíre going to come over here and say our first stage is going to be Stage 0. In that stage we want to do a STREAMIN. Weíre going to choose our internal serial port. We have a 10 character Barcode. No delimiters, no timeout. Donít need any of that. Weíll go ahead and put him in String StructureÖ weíll put him back in String Short 1. And this time we are going to exit on success ñ weíre going to jump to stage S0 - the same stage. If we have an error, we will jump to stage 1. Stage 1 ñ this is our error stage. Remember, if we have an error up here in STREAMIN weíre going to jump to stage 1. And all I want to do here is increment a counter so I can see if I have any errors. Once that is done, I am going to jump straight back to stage zero. Thatís it. So when we come into this stage, it automatically enables STREAMIN for us, pulls 10 characters out of the buffer. When that is complete, we jump back to stage zero and do it again. If we have an error, we jump down here to stage 1 where we increment a counter and then jump back to stage 0 where we will start the process all over again. Letís accept that new routine. Go back to main, and we want to run that routine. And for this example we are just going to run it on the first scan. Remember ñ this is a program code block. Once you initiate it, it continues to run until something shuts it down. So we only need to do that once. Weíll accept that change, save it, write it out to the PLC, and we are ready to go. So now in our program, we have our original STREAMIN which we are not going to use ñ weíll just leave C10 turned off. And we have our new program which got initiated on the first scan, and continues to run for the duration of our program. We can see right here, it ran this scan. Iím going to clear out our string, just so we can see changes. C10 is off, thatís good. Our serial In Queue is zero. Because this program is running on its own in the background, all I have to do is hit our barcode scanner with some bar codes, and if you watch carefully here ... each time I do that the bar code changes. My In Queue appears to be zero because each time the message comes in, it gets pulled right back out. Perfect. So thatís exactly what we were looking for. Every time a bar code comes in, it immediately gets put into the string structure SS1 and we can now use it anywhere we want in the program. What if you wanted to do this on an EXTERNAL serial port? Thatís easy. Just define the external serial port over here: System Configuration, Module Configuration, choose that serial port. And letís say we want to plug the bar code scanner into port A. As you can see, Iíve already given it a name. We select general purpose. Device settings and here are all the same settings we used before on our bar code scanner. Now that we have configured that external serial port for the barcode scanner, all we have to do is move the cable from our internal serial port to our external serial port. Change our program to point to that external serial port. Say OK, accept it, save it, write it out, and we are ready to go. Now if I run some bar codes through, it works just like before ñ EXCEPT this time it is coming from the external serial port. Very, very easy. That ought to be enough to get you up and running with the barcode scanner on the Automation Direct DoMore PLC. Be sure to check out the other videos in this series for more ways to get up and running quickly with this controller. And as always, please send us any comments you may have, we appreciate the feedback. Spend Less, Do More, from AutomationDirect.



No data returned!
An error has occurred! Please contact support
Videos Home > BRX Do-more PLC Setup and Use a Barcode Scanner from AutomationDirect
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
„