cancel
Showing results for 
Search instead for 
Did you mean: 

Barcode Scanner with RS232 or USB with Core X3

Barcode Scanner with RS232 or USB with Core X3

akrosis
Member

Hello,

We're planning to use a CtrlX Core X3 PLC for our project. We want to use a handheld barcode scanner from Sick with RS232 or USB interface. Currently ethercat is not an option.

Only solution I've found is to use Node-RED. So, I wanted to ask if there is an easier or a standart solution for this issue? Or maybe a spesific brand of barcode reader for a straight forward implementation?

You can find the links for barcode scanners below. Thank you for your support.

 

https://www.sick.com/tr/en/catalog/products/machine-vision-and-identification/mobile-handheld-scanne...

https://www.sick.com/tr/en/catalog/products/machine-vision-and-identification/mobile-handheld-scanne...

 

8 REPLIES 8

TheCodeCaptain
Community Moderator
Community Moderator

Hi akrosis,

you can also read the scanner directly into the plc.

Please see this thread:
Solved: USB RS232 adapter (boschrexroth.com)

MauroRiboniMX
Contributor

Hello, 

Many customer i know are using node-red to implement this solution. Even if the barcode scanner is over TCP-IP. There could be the option to use the PLC but it is also a not official solution. See:

https://developer.community.boschrexroth.com/t5/ctrlX-PLC/USB-serial-communication-via-USB-C-USB-A-a...

https://developer.community.boschrexroth.com/t5/ctrlX-PLC/USB-RS232-adapter/m-p/54609

Mauro

danielsimila
Established Member

See this how-to: Barcode scanner with Node-RED/PLC via ctrlX CORE u... (boschrexroth.com).

Part B) Realisation with PLC.

Used an almost identical solution with a Datalogic GD4132-scanner configured in RS232 mode succesfully. 

akrosis
Member

First of all, thank you everyone for sharing your inputs. Unfortunately, we haven't able to get data from scanner. 

It works fine when I connect it to my and my colleague's PCs and check with serial comm. listener (hercules).

But even if we tried both RedNode and PLC options from the link below we couldn't get answer. Only thing is in rednode we could see it's connected, but thats all. We tried changing every setting, both from PLC code and barcode scanner itself, but didn't make difference. You can see some images in attachment.

We didn't change anything from code that's been provided in below link.  We also tried with another brand scanner and ended up with same results.

https://developer.community.boschrexroth.com/t5/Store-and-How-to/Barcode-scanner-with-Node-RED-PLC-v...

So, any of you have an idea with whats we are doing wrong?

 

Thank you.

Hello, 

Please disable NODE-RED when using plc and vice versa. Otherwise you whould have a strange bahavior. Can you post me the node-red json? I give a look!

Ps if you remove it it goes to disconnected?

Mauro 🙂

Hello Mauro,

Thanks for replying. You can find the json file in txt format in attachment. 

Yes it immediatly goes to not connected state, with some errors. When I plug it back, it just goes to connected again, without doing anything. 

I've tried when PLC was in Service and Setup modes, didn't affect. 

CodeShepherd
Community Moderator
Community Moderator

Are there any news? Could you solve your issue?

Hello, no we couldn't. In summary, we tried with 2 different PC's and 3 different brand barcode scanners, but didn't work. We solved the issue with using a PC to send barcodes to PLC.

I'll try it with 2.6 version in next weeks.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist