drbitboy
Lifetime Supporting Member
Minor change to second rung; I am not sure how RECV instruction works, so putting a [NC Read_Processed_oneshot] back in, between the AND and the NEQ, may be required.
Converted to Cscape (not too bad; at least not as awkward as TIA or CCW ); placed on Github: https://github.com/drbitboy/PLC_Cscape_serial_read_logic
Thank you for all the time and working with me, I was trying to convert to Cscape and got so many errors, then saw you did it...
We're close-ish, Trying to debug right now.
I've added green and red light firing below the coils for Compare_(complete/fail)
Currently, It only extends the cylinder while the PP1 is made (retracts if part is taken away)
all barcode results in red light right now, and PP2 is not currently in shown in the ladder. It should reset the cycle and raise the cylinder.
Hmm, but you were getting characters on the Horner screen before, correct?I am not getting any characters updating on the Horner screen
Well, here is how I assumed it would happen:What should reset the M13 Read_processed_oneshot NC? It stays lit after first scan
I know this doesn't help you immediately, but when it comes to serial data stuff and interfacing with scanners,
I know this doesn't help you immediately, but when it comes to serial data stuff and interfacing with scanners, sometimes you need an experienced plc programmer to figure these things out. You might need to add a bit of extra code to debug what is happening and go from there.
Have you thought about just hiring an experienced guy to help you out for a couple of days?
OP is using Horner/Cscape RECV instruction to read fixed-length data, presumably 28 characters of code plus a carriage return....
I know you are a perfectionist but it appears the OP already has the data so is more concerned in getting the logic correct.