Reading Barcode data

More
1 year 7 months ago #323368 by aluplastvz
Replied by aluplastvz on topic Reading Barcode data
I was a bit busy with other work, so I didn't respond to your answers earlier.
The barcode has 2 series of numbers with 5 characters x+y, I can do that in the plc controller, but only the positioning is the hardest part for me, that's why I thought that maybe there is a solution, for example in linuxcnc, which is much better for positioning.

Please Log in or Create an account to join the conversation.

More
1 year 7 months ago - 1 year 7 months ago #323522 by Hastrh2o
Replied by Hastrh2o on topic Reading Barcode data
@noqui

In the ui, I add a lineEdit wich I named "ofedit" (and some more) and then in qtaxis_handler.py I add (the except part is just here to allow me to try without the thrue work order barcode) :

def ofedit_changed(self):
if len(self.w.lineEdit.text()) == 16:
try:
codesData = pd.read_csv('codes_articles.csv', index_col=0)
self.w.lineEdit_3.setText(self.w.lineEdit.text()[0:16])
self.w.lineEdit_2.setText(codesData.loc[self.w.lineEdit_3.text(), "Variante"])
except :
self.w.lineEdit.setText("EJEVAP17050---M")
self.w.lineEdit_2.setText("")
self.w.lineEdit_3.setText("")
pass

This allow to look into a csv file for the work order code if I read something which is 16 caracters long with the barcode reader
Last edit: 1 year 7 months ago by Hastrh2o.

Please Log in or Create an account to join the conversation.

Time to create page: 0.317 seconds
Powered by Kunena Forum