MFF62
Member
I am taking a barcode scanner ASCII string into a SLC500 (CH0). Works well, but I am having a problem with about five barcodes out of one thousand. I find that only part of
the barcode makes it into the buffer.
Example:
I am using the ASCII read (ARD) instruction and am
looking for 21 characters (length of barcode string).
I might find that only 9 of the 21 characters make it
into the buffer. When the next barcode is coming into the buffer the ARD instruction executes after only 12 characters have been received because there are now 21 characters in the buffer. The string that receives the barcode data from the ARD now contains partial data from two different barcodes.
I should mention that a barcode network of 5 scanners is
sending there data to the SLC500 through the master scanner's
RS232 port. This means that the data strings can come one right after the other. My suspicion is that when a second barcode string is sent right after a first string I think the ASCII clear Buffers instruction is chopping off part of the second barcode.
Any thoughts.
the barcode makes it into the buffer.
Example:
I am using the ASCII read (ARD) instruction and am
looking for 21 characters (length of barcode string).
I might find that only 9 of the 21 characters make it
into the buffer. When the next barcode is coming into the buffer the ARD instruction executes after only 12 characters have been received because there are now 21 characters in the buffer. The string that receives the barcode data from the ARD now contains partial data from two different barcodes.
I should mention that a barcode network of 5 scanners is
sending there data to the SLC500 through the master scanner's
RS232 port. This means that the data strings can come one right after the other. My suspicion is that when a second barcode string is sent right after a first string I think the ASCII clear Buffers instruction is chopping off part of the second barcode.
Any thoughts.