CODESYS - das IEC 61131-3 Programmiersystem
https://forum-de.codesys.com/

USB Barcode Scanner
https://forum-de.codesys.com/viewtopic.php?f=10&t=5909
Seite 1 von 1

Autor:  Reinier Geers [ Di Feb 05, 2019 11:23 am ]
Betreff des Beitrags:  USB Barcode Scanner

Hello,
How can i get the data from a barcodescanner connected to USB

Autor:  Berghof-Support [ Mi Feb 06, 2019 10:51 am ]
Betreff des Beitrags:  Re: USB Barcode Scanner

Hello Reinier,

here you have basically two options.
You can take a barcode scanner that is recongnized as a USB Keyboard.
Then you can use the normal Write Variable/Keyboard handling in
the CODESYS Visualization.

Alternatively you can use a Barcodescanner that has an integrated
USB-to-Serial converter, then you can establish a serial
connection to the device using either the CAA COM or SysCom library
and read out the what the scanner is sending.

Be aware that both methods need a PLC that does support these
interfacing features. Not all PLCs that have a USB Port will be able
to use it for a keyboard or USB-to-Serial connection.
Check this with your PLC manufacturer.

Autor:  Reinier Geers [ Mi Feb 06, 2019 12:20 pm ]
Betreff des Beitrags:  Re: USB Barcode Scanner

Thanks !
I Know. But most are USB Not Seriel.
So i want it like Seriel.. but then with USB

Autor:  Berghof-Support [ Fr Feb 08, 2019 9:52 am ]
Betreff des Beitrags:  Re: USB Barcode Scanner

Like i already told your there are Barcodescanners
that have an integrated USB-to-Serial Converter

"Alternatively you can use a Barcodescanner that has an integrated
USB-to-Serial converter, then you can establish a serial
connection to the device using either the CAA COM or SysCom library
and read out the what the scanner is sending."

The plug remains USB, but it will be handled like serial connection.
Just Google it...

And again, only having the Barcodescanner is not enough,
you will also need a PLC that supports USB-to-Serial on its
USB Port.

Examples on how to use Serial in CODESYS are found
on the CODESYS Store:
https://store.codesys.com/serial-com.html
https://store.codesys.com/serial-com-with-visu.html

Autor:  Reinier Geers [ Di Feb 19, 2019 7:04 am ]
Betreff des Beitrags:  Re: USB Barcode Scanner

Great.. But why can't i read the data from USB
Its just data like seriel.
So if Windows can handle it, why can't i ?

Seite 1 von 1 Alle Zeiten sind UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/