Home› Robotiq Products
Discussion
Back to discussions page
Beatrice
Unconfirmed Posts: 2 Recruit
Using the string of the robotiq wrist cam barcode scanner |
32 views
|
Answered | |
/ Most recent by bcastets |
3 comments |

Hello,
I am using the robotiq wrist cam to scan barcodes.
After the scanning I want
I am using the robotiq wrist cam to scan barcodes.
After the scanning I want
- the barcodes to be saved in an excel document
- to transmit the information to another Cobot
- to make a decision based on the barcode scanned (means the same type of product will have a some same numbers in the barcode which I want to compare and make a decision of which program will follow)
For that I need to send the information from the cobot to the computer and another cobot.
But how can I do that? I don’t know where the information is saved in the registers of the cobot.
I tried to save the string in a register to read the register from the computer via modbus but unfortunatly this isn’t possible.
It is possible to save the data in the URCab local on USB but I need to get the information while the program is running.
Thank you a lot if someone has an idea how I can do that.
Tagged:
It is also possible to send the data via a socket connection.
If you want to save data in a CSV file you can use this package:
https://blog.robotiq.com/data-logging
This data loging package use socket communication to send data. It is a good example on how to send data.
When I try to put it into a register it says, that strings can't be written into the modbus register. Do you have an idea how I can still do it?
I didn't find a solution how to convert a string to an integer.
Also I tried to do the socket connection but somehow the cobot won't connect.
Socket connection should be the best option. You can do that through the scan code node or using UR socket function and sending the string value detected by the scan.
Using the UR socket functions may give you more control on how you send the data.