Re: Totally newbie question.
I know nothing about your specific machine but it is fairly normal for a CNC machine to move all axes a short distance back and forth when switched on to establish the machine's home position by means of a sensor.If it does it several times then you may have a problem,Have you tried seeking help from owners of similar machines?
Re: Totally newbie question.
I'm just looking for general information about g-code, is possible to loop G1 Y2 G1 Y0 with macros.
Re: Totally newbie question.
Quite possibly,but your code contains some unnecessary information-G1 is modal and only heeds to be there once and being modal,the F rate will carry over from the last instance.If I have ever needed to do this sort of thing I have called up a sub routing using the M98P command and L(number of instances) it can contain any feed rate you choose.Having run as many instances as desired it is cancelled by an M99.Being unfamiliar with your machine,I don't know if this might be a suitable option.
Re: Totally newbie question.
Ok thanks, I'll try.. Maybe you can show me an example of a whole command? :)
Re: Totally newbie question.
First you need to determine whether your controller can interpret the command M98P.Is there anything in the manual?
Re: Totally newbie question.
#501 =100( number of repitations)
While[#501 NE 0]DO 1
G00 U-10.0 mm ( axis in x will move minus 10 )
G00 U10.0 (Axis will move 10 plus}
#501=[#501-1] (count down )
End 1 (repeat return to start for 100 times }