QR code scanner

Gossamer1969

Member
Join Date
Jan 2024
Location
Wisconsin
Posts
1
Ok started a new job a while back and I've been handed a bunch of leftover jobs from my predecessor.

Anyhow what I have going on is a Click PLC C0-11DRE-D paired to a Cognex DMR-280Q camera and an 7" HMI

The way this system is supposed to work is the operator adds in a lot number to the PLC, the PLC tells the camera to take a picture reading the QR and reporting back the same number.

While I can see the code actively translating in the camera software the number is not being reported back to the PLC. I just get 0's/$$.

I've set the camera to work with Modbus to match the click protocol but it still isn't sending a code back.

I'm good with ladder logic, lots of years but cameras are a major weak spot for me. Hoping for some guidance since I'm a bit lost at this moment.
 
From your description I'm assuming the Click is the Modbus master. To me, the sequence of events should be:

1. Click sets a bit in the Cognex command word to tell Cognex to scan the QR code.
2. Click monitors the Cognex status word until it detects Cognex has acquired the QR code.
3. Click clears the bit in the Cognex command word that told Cognex to scan the QR code.
4. Click requests QR code data from the Cognex.
5. Click receives QR code data from the Cognex.

Does that cover it? Are any of the steps happening correctly?
 
Also remember that most barcode scanners (cameras) will send the barcode or qr code data back in ascii. So dont expect to read values in decimal. Get the manual for the camera and see what modbus registers hold the values of the last code read.
Then read those registers from the plc.
Usually each character (letter / number) will be in its own byte so you will have to read multiple registers at once to get the full code depending on how long the code is
 

Similar Topics

I thought I was nearly finished on this TIA Portal/s7-1212C project (famous last words)... Up until now, I'd developed the PLC/HMI such that the...
Replies
10
Views
1,561
Hello Guys, I am trying to add a Zebra DS457 FIXED MOUNT IMAGER with MICROLOGIX 1500 LRP 1. How to connect the imager with the ML1500 since it...
Replies
15
Views
1,282
Hello Guys, I am a beginner in PLC programming. I am trying to add a Zebra DS457 FIXED MOUNT IMAGER with MICROLOGIX 1500 LRP to successfully...
Replies
7
Views
1,190
I'm wondering if anyone has a solution where I can use a barcode scanner to input a string into a PLC tag. All AB hardware/software. I'm aware...
Replies
8
Views
17,975
Hello Everyone. I am working on a project where I need to scan in 2 Barcodes to populate 2 different tags. A glue Batch and a product serial...
Replies
12
Views
3,102
Back
Top Bottom