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
Filter Results Clear All
You've selected:
> Programmable Controllers > Do-more H2 & T1H PLCs (Micro Modular & Stackable)
  •   Shop  
  •   Overview  
  •   In Depth  
Do-more Home Download Free Software
 
Features
Top 11 Ways You Can Do More with this PLC Serial Communications Ethernet Communications High Speed Modules Hign Speed Inputs Motion Control Remote I/O Free Online Training
Free Software
Simulator Auto-Discover I/O Communications Powerful Math Monitoring & Troubleshooting Memory Management Program Management Project Management Security Download the FREE software
Hardware
H2 CPUs T1H CPUs Bases AC I/O Modules DC I/O Modules AC & DC I/O Modules Analog I/O Modules Specialty Modules Go to ZIPLink Selector Tool
Videos


Do-more H2 (Micro Modular PLC) Videos

View Do-more Designer Videos


Detailed Product
Overview



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.


Playlist Not Found Could not find playlist PLPdypWXY_ROoEcDCcD10Qdb3S9tOmfEn5

Playlist Not Found Could not find playlist PLPdypWXY_ROoJx-HnK9gj2Z5a-i7th-UK

Playlist Not Found Could not find playlist PLPdypWXY_ROqvbaYVBWc3kH-pP01fI4-E

Playlist Not Found Could not find playlist PLPdypWXY_ROr5OPw3e0o8rLC0JQijmCNY

Playlist Not Found Could not find playlist PLPdypWXY_ROrtSkGYNq8Xc52QWTCWf2Ci

Playlist Not Found Could not find playlist PLPdypWXY_ROrRJ5YuFYxs3mSXr9250AN7

Playlist Not Found Could not find playlist PLPdypWXY_ROqJO86ikigKmjnSkbguBKBw

Playlist Not Found Could not find playlist PLPdypWXY_ROqWWy8OnWGt3YD4Dald6uf-

Playlist Not Found Could not find playlist PLPdypWXY_ROrmjIdXLaeovoTLZP65hdac

Playlist Not Found Could not find playlist PLPdypWXY_ROoqTZihvX8c8UUj5GzVCuKH

Playlist Not Found Could not find playlist PLPdypWXY_ROr0ZfCV-fAgau5yDemA19CV

BRX Do-more PLCs - Motion Control & High Speed Inputs
  • Video
    BRX Do-more CTRIO2 Motion Demo Hardware from AutomationDirect
  • Video
    BRX Do-more CTRIO2 Motion Config & JOG from AutomationDirect
  • Video
    BRX Do-more CTRIO2 Motion Dynamic Motion from AutomationDirect
  • Video
    BRX Do-more CTRIO2 Motion Using Limits from AutomationDirect
  • Video
    BRX Do-more CTRIO2 Motion Trapezoid Moves from AutomationDirect
  • Video
    BRX Do-more CTRIO2 Motion Using Encoders from AutomationDirect
BRX Do-more PLCs - Hardware
  • Video
    How To Sense Temperature with a Do-more PLC from AutomationDirect
  • Video
    How To Detect Objects with an AutomationDirect Do-more PLC
  • Video
    AC Motor On/Off with Do-more PLC Part 1 from AutomationDirect
  • Video
    AC Motor On/Off with Do-more PLC Part 2 from AutomationDirect
  • Video
    How to Sense Distance with an AutomationDirect Do-more 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
„