Keyence Barcode Scanner Software

0 views
Skip to first unread message

Ene Vinson

unread,
Aug 3, 2024, 3:56:23 PM8/3/24
to crumquepdodud

So I have a customer who needs help to connect the Keyence SR-1000 barcode reader using TCP/IP to a LabVIEW application. After researching Keyence's 'Connection document' for TCP, I realize it's based on their utility software alone.

Since I have no experience with barcode readers I'd appreciate any hints on what to look out for and how to go about implementing a VISA-based 'driver' for this device. Or generally, how barcode scanners are best hooked up to LabVIEW.

You would need to get in touch with the manufacturer of the barcode reader and ask them for some documentation on the TCP communications. Without that, the best you could do is use a tool like WireShark to 'sniff' the TCP data and try to figure out what data the scanner is reading/writing to their own software and try to replicate it.

There are lots of manufacturers/types of barcode scanners - some have their own drivers (e.g. DLL) you can call, some use RS-232/Ethernet, some simply emulate a keyboard and 'type' the characters of the barcode.

For all of the Keyence devices they use their own software which uses generally a DLL to communicate with the device. Amazingly the DLL used is for each of the Keyence class its own specific version too, I can't really imagine what software development strategy they have. It seems each device group is developed at a different place with a separate software development team for each of them too.

For most of their devices they do have a minimalistic C header file for that interface DLL they can send out to customers but you need to find someone inside Keyence who is willing to go through the trouble of optaining that information internally and sending it to you. For a few device groups there even exist (customer made) LabVIEW libraries that interface to the according DLL that Keyence can sometimes share with other interested users. Lacking such a driver you can still develop your own when you manage to sweet talk your Keyence sales representative to find those C header files for the DLL internally. Using the Call Library Node it is not that difficult to develop such a driver, provided you do have some fundamental C programming knowledge, or access to a person with such knowledge.

Last option is to develop your own driver entirely based on the TCP/IP functions of LabVIEW. Complication here is that most Keyence devices use binary command/response protocols, so eavesdropping on the communication through tools like Wireshark is a very cumbersome and painstaking experience.

I did that for a different Keyence device (a laser distance meter) in the past since the driver had to run on a realtime controller which can't use DLLs, but that driver only works for that specific Keyence controller SI-F100x and is not something I can share. I did have some idea to develop a modular driver that might work for different Keyence class devices since they do use mostly similar (but not exactly the same) binary protocols over TCP/IP but lacking any other devices to test with that never went anywhere.

I am learning + working with Unitronics PLC very first time. Anyone worked with Keyence 2000 barcode reader scanner before? or Anyone knows where I can find sample PLC Program of Keyence 2000 barcode scanner for UniLogic software?

I used an SR-1000 with a Unistream 15.6. I have attached the exported ladder function, related to the bar code(in my case, QR code) reader. I used Ethernet IP to communicate and have also attached a screen shot of the Ethernet IP settings used.

Has anyone interfaced an SR1000 (or similar keyence barcode reader) with a (Automation Direct) Click PLC? I am looking to read/write rs232 so I can get the string back from the barcode reader, instead of actually teaching it or using banking (banking is a bit cumbersome with the keyence, plus it'd take me a long time to actually get the labels I need to teach the camera all). I had started messing around with the application, but I have no way of seeing if the camera or plc is actually reading/writing the data. Data is all ascii.

Taking a quick look at Click PLC, it looks like it comes standard with a RS-485 port. Not sure if that means you need an add-on module for RS-232 or not. In the Rockwell world there is a programmable module with two RS-232 ports.

You are right, there is an RS485 port. The programming port can also be used as RS232. Hopefully NevergoldMel can chime in. I've used RS232 on the Click before, but never for ascii (you have to choose ascii or modbus protocol with the click). My send and receive show up as successful, but I am not seeing any data (send isn't commanding the picture). I think the issue is more on the side of the Keyence.

Correct, pcmccartney1. The LON ascii command is what I was sending to trigger (read). I was getting a write success bit back on the plc, but I was not seeing the camera trigger. LOF is the trigger stop command. If I opened terminal on a PC, the same LON command starts triggering the camera. LOF would then stop triggering. That's where my confusion (lack of knowledge and experience) comes in. Why would I get a write success on the PLC? Does the write success ignore any sort of feedback?

Haven't used a Click, but in the Rockwell world, you need to configure the RS-232 port and also tell it the end or term chars. Also, look for the end or term chars in my code to figure out when the buffer is full and how to parse out the results.

That could potentially be the issue. When setting up the send command, the click is quite a bit different than the AB. There is a checkbox for the termination command however; there is the choice of 1 or two characters, and hex only. I will give that a try next time I get out to the equipment. They give you an option of choosing the term from a table. didn't notice that the first time. I'm more used to robots where you just type [CR].

Nobody let's me play with barcode readers anymore.
The rj-12 port is rs232.
From what I remember most barcode readers end the TX with
THere's a couple guys over on the AutomationDirect forum that have done barcode stuff.

I was able to get this partially resolved yesterday afternoon. So far I am able to send commands to the SR1000, and it is responding as expected. Now I will work to get the data back, as that doesn't seem to be working yet.

The KEYENCE HR-X series offers three powerful handheld scanner models for different application areas, from retail to industry. The high-resolution CMOS megapixel sensor and a multi-core CPU ensure highest reading performance. For general applications, the standard model HR-X100 is an excellent choice. The high-performance model HR-X300 offers a particularly large depth of field for fast data collection from varying distances. To capture challenging direct part marking, the DPM model HR-X500 offers special illumination and an AI chip.All models are available either corded or cordless.

Each sector has its own specific data acquisition requirements. The HR-X series from KEYENCE offers three barcode reader models to meet the different requirements. All of them are equipped with a high-resolution megapixel sensor and a multi-core processor. This enables 1D and 2D barcodes as well as DPM codes to be captured with maximum speed and precision. Because of their robust design and durable trigger, the scanners are long-lived and suitable for particularly fast workflows and harsh environmental conditions. Quick and easy configuration via web browser enables seamless integration and straightforward operation. Wireless versions are equipped with Bluetooth 5.0. The powerful battery enables up to 17 hours usage time and can be charged via USB-C cable or wirelessly.

The HR-X100 is lightweight and, for example, suitable for POS applications. The scanner can capture 1D and 2D codes from a read range between 10 and 550 mm. It is equipped with a 5-core processor. For more convenience, it can be used in handheld or presentation mode. A signal tone and vibration provide clear feedback after the barcode has been captured.

The HR-X300 enables 1D and 2D barcodes capture at top-speed. The scan engine enables a large reading range between 10 and 800 mm. Two integrated cameras ensure a large depth of field. You can, for example, capture barcodes in upper shelves from the floor. The HR-X300 handheld scanner has 5 processor cores. It is equipped with a small OLED display and a function key.

The quality is in top, when we speak about Keyence barcode scanners. With Keyence, Eltech Solutions can help our customers to solve tasks, that our competitors have given up on. We offer both portable and fixed-mounted scanners. The scanners are able to read both 1D and 2D codes even if they are very small or placed on glossy, or transparent surfaces.

Together with Keyence, Eltech Solutions offers some of the best and most user-friendly barcode scanners in the market. With Keyence barcode scanners, Eltech Solutions can help to solve tasks, where others have failed or given up.

Also the handheld barcode scanners, from, Keyence, are able to read very small 1D and 2D codes. It is possible with an additional battery pack, to make the device portable. Codes which can be read: QR, microQR, data matrix, 1D and more.

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Get your free barcode below and then check out our extensive line of barcode scanning solutions.

Cognex barcode readers and scanners offer easy setup and advanced decoding technology, with no moving parts that can wear out or fail, making them ideal for industrial settings. No matter the application, Cognex barcode reading solutions help you increase throughput, reduce costs, and optimize product traceability. Learn more about Cognex fixed-mount and handheld barcode readers and barcode verifiers.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages