3
« on: March 13, 2018, 08:35:29 AM »
Thank you for your fast response
I want to place a nail every 50 - 60 mm (or exact lenght), but to do this the nail gun needs at least 50ms.
Also I need to start every side of the product with a nail.
I tought to use the actual X or Y coordinates and maybe a variable to send the virtual Z axis into positive state and back.
Maybe something like this would work when the M3 is activated???
While IsMoving()
IF GetOEMDRO(83)= 10 Then ´ if the X position = 10mm
Code "G1 G91 Z1 F1000" ´To fire the first nail
var=var+1 ´to count the number of nails
Code "G1 G91 Z-1 F1000" ´to deactivate the output signal
Endif
IF GetOEMDRO(83)= 60 THen ´here i need the next nail and like this every 50-60 mm until the end of this side of the product,
Code "G1 G91 Z1 F1000" ´To fire the first nail
var=var+1 ´to count the number of nails
Code "G1 G91 Z-1 F1000" ´to deactivate the output signal
Endif
Thanks for your help