I have a system which is sending a digital output to an inkjet printer to draw a line on a product. The program runs using cases for each line as the position changes each time. Each case calls a subroutine to trigger the printer and draw the line. Most of the time it works fine, but sometimes, at the end of a line, instead of moving to the start position of the new line and then printing, the printer is triggered as its moving into position. It then does not print when it starts the new line.
Any help would be appreciated.