Resolution: Sepasoft Barcode Scanner [Zebra DS3678] (Example)

#1

A Zebra DS3678 scanner is connected to the PC via USB
From the old manual: Symbol DS3578 Product Reference Guide (72E-110462-01 Rev A), We configure the scanner by scanning first

  1. Scan Options (pg 91 link above)
  2. Scan <PREFIX> <DATA> (pg 92 link above)
  3. Scan “Enter” (pg 92 link above)
  4. Scan your Prefix in this case 1035 (pg 476 link below)

DS3678 Zebra


Let’s remember later that 1035 ACII Value equates to the Keystroke #
# will be used in Ignition as our prefix
We scan the 1, 0, 3, and 5 (1035) from page 473 from the Numeric barcodes section of this link DS3678 Zebra
After installin the Sepasoft Module, we get the Barcode Scanner on the Component Pallet and drag it to the root container:

Clicking at the Barcode Scanner palette in the root container, we input the # as our preamble:

After dropping also a text field and a label component on the root container, the scripting for the Barcode Scanner is this:
Note: I am also writing whatever I scan to a tag called “Scanned_String”

#Store the result of the scan in a dictionary
result = event.toDict()
#Take the first index of that dictionary key and apply to variable
barcodeText = result['Default'][0]
#Write the barcodeText to the label or text field
event.source.parent.getComponent('Text Field').text = barcodeText
event.source.parent.getComponent('Label').text = barcodeText
print barcodeText
#NewString = shared.NewScript.concatenate_list_data(system.tag.read(barcodeText))
system.tag.write("[default]Scanned_String",barcodeText)

Then we launch our Publish project and after we scan something, whatever we scan will appear on the text field or label:

If if didn’t appear on the text field or label, the following can help in troubleshooting:
Open the diagnostic window on the client and look for the PMIBarcodeController, and set it to DEBUG mode:


and first thing we need to look for is that if the preamble was found by going back to the console tab:
After we scan something, we must get the highlighted message below:

1 Like

#3

I have never set up a barcode scanner before. How do you know what Prefix you should use? Or does it even matter as long as you have one?

0 Likes

#4

It doesn’t matter what you use, but if you also have keyboard input do not use something that would be used on the keyboard. The prefix is specifically for the barcode scanner component so it can buffer the scan, a prefix is not needed if you are inputting scans directly into a text field.

0 Likes

#5

Depends on the scanner brand you are using. Find the manual for that scanner and it will tell you how to add a prefix or suffix if you need to. In my case I was using the Zebra Scanner DS3678 and I just needed to add a prefix for my project. In some case you don’t need a prefix or suffix.

0 Likes

#6

Thanks for the help!

1 Like