USB barcode scanner interface through codesys

We are trying to interface DS5502 USB barcode Scanner from Zebra technologies with an EPIC

The device gets enumerated as a USB HID device

admin@opto-05-dd-c8:~$ lsusb
Bus 001 Device 004: ID 04d8:0c02 Microchip Technology, Inc
Bus 001 Device 037: ID 2575:0001
Bus 001 Device 006: ID 05e0:1200 Symbol Technologies Bar Code Scanner
Bus 001 Device 002: ID 0424:2517 Standard Microsystems Corp. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Through groov view, if I add a text box, and tap on it, I can scan the barcode and the number appears as a text input as if we typed it in.

But this approach requires the operator to click on the text box every time they want to scan barcode
Is there are way to add the barcode scanner in codesys and make it update a tag? I am new to codesys and would appreciate any support

Codesys does not have access to the USB ports. If you wanted to read the data in, I would recommend using Node Red and then passing the data into codesys via the OPC-UA Node.

1 Like