Hi All,
I'm completely new to G code and I'm using it to control the positioning and firing of a laser for my master's project. I've written the code to make it fire and it works fine, but once I put my code into a loop to fire more than 3 times, some of the laser pulses are missed out. I've written the code out without any loops and it works fine but it's ridiculously long and messy code as any kind of loop - For, While, even using an If - causes some shots to be missed out. I've included the code I have below, any help would be greatly appreciated.
PSOF,1
DW 1
PSOF,0
DWELL 1000
Copying and pasting this 15 times works great, but:
LOOP 15
PSOF,1
DW 1
PSOF,0
DWELL 1000
NEXT
misses out a couple of shots.
Many thanks for any help.
Mike