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.