hi every1! i am designing my own 2d cnc machine....we have to do linear motion for which we are using G01 and G00 code

like G00 x07y04

like in above example our both motors (x and y)will move simultaneously and the tool will move in diagonal line ..... the speed of both motors will decide the angle of diagonal line like in above example the speed motor x will be greater as compare to motor y(as the angle of diagonal line would be less than 45 degree).

but the problem is if we are using G01 command so it consist the feedrate for eg G01 x07y04F200 ...and our spindle speed should be according to this feedrate ...and our spindle speed depends on the speed of both x and y motors...so how could we change the speed of our both motors..because if we set the speed of our motors according to this feedrate then the angle of diagonal line will be changed and then we wont be able to achieve the target coordinate.

another thing is we have only 1 feedrate value means our bith x and y motors will have same speed corresponding to that feedrate so in that case the angle of diagonal line will always be 45 degree and we wont be able to achieve the target coordinate.

kindly help us ...how could we sort out this problem????how could we relate that feedrate with the speed of x and y motors??? and how can we achieve 2 different speed of both motors by the same feedrate??

help me out !!!!!