Hi need help with an application that I working on and I'm having trouble in manipulation of a barcode which I need to extract data from.
Hardware - SLC 5/03 with a Prosoft MVI46-GSC module
Barcode Scanner is on Port 1 of the MVI46-GSC
and a panelview600 is attached to the 5/03's DF1 port
So far I have configured the ports and I can get a barcode in successfully (ends up in the N12 register). I can also get the panelview to read the barcode as well. So as far as cabling and comms all is OK.
Where my problem lies is how can I extract part of the barcode if the following is what I need
RAW BARCODE is
"051001AB02 -109860"
WHAT I NEED to display is
"109860"
The hard part is that the barcodes are variable length, BUT there is always a dash in front of the portion that I need to extract.
If anybody out there has an example of code that I can use please help me out.
Hardware - SLC 5/03 with a Prosoft MVI46-GSC module
Barcode Scanner is on Port 1 of the MVI46-GSC
and a panelview600 is attached to the 5/03's DF1 port
So far I have configured the ports and I can get a barcode in successfully (ends up in the N12 register). I can also get the panelview to read the barcode as well. So as far as cabling and comms all is OK.
Where my problem lies is how can I extract part of the barcode if the following is what I need
RAW BARCODE is
"051001AB02 -109860"
WHAT I NEED to display is
"109860"
The hard part is that the barcodes are variable length, BUT there is always a dash in front of the portion that I need to extract.
If anybody out there has an example of code that I can use please help me out.