Hello Guest it is March 29, 2024, 05:55:33 AM

Author Topic: Mach3 to Mach4 migration "#"  (Read 656 times)

0 Members and 1 Guest are viewing this topic.

Mach3 to Mach4 migration "#"
« on: July 29, 2021, 04:38:59 PM »
Mach3 to Mach4 migration "#"

Again, this was a case that worked fine on Mach3, but caused an error on Mach4.
Contents
When I read the attached file used for milling with Mach4, Mach4 does not read it as shown in the picture.
It stopped at the "#" point.
I am troubled. Please teach me the solution.

*******************************
(herical M8tap)
(Initial Value)
#1=8;(Screw_D)
#2=1.25;(Screw Pitch)
#3=[#2/2];
#4=0;(xPos)
#5=0;(yPos)
#6=[4.1-2.9];(Screw_r+H/8_cutter_r)
#7=[#4+#6];(arc_Pos)
#8=[#4-#6];(-arc_Pos)
#9=-12;(Drill_Bottom)
#10=120;(tap_S)
#11=[#10*#2];(Tap_F)
#12=[[#9*-1]/#2];(Tap_Turn)
#13=1250;(Drill_S)
#14=30;(Drill_F)
#15=[#9+[0.4*#1]];(Tap_bottm)

M5;
   
(Initial setting);
G17 G80 G49;
G28 G91 Z0;
G90;

N1;(drill D5)
M7;(Mist_On)
S#13 M3
G54
(Dril Cycle)
G98 G83 X#4 Y#5. Z#9 R2 Q2 F#14;(Q:Dril_Pich)
G80

G28 G91 Z0;
G90;
M5;
M9;
M00;(Pouse)

N2;(Herical_tap)
(Initial setting)
M7;
M3 S#10;
G54 G0 X#4 Y#5;(x_Pos_Y_Pos)
G0 Z#15;

M98 P3 L#12;(Sub3 Program Call)
G0 X#4 Y#5;
S20;
G0 Z5;

(Return To Origin);
G28 G91 Z0.
G28 X0. Y0.
M30;(End)
Re: Mach3 to Mach4 migration "#"
« Reply #1 on: July 30, 2021, 05:03:03 AM »
Try removing the semi colon ; from every line
Re: Mach3 to Mach4 migration "#"
« Reply #2 on: July 30, 2021, 06:57:18 PM »
Answer Hello SwiftyJ.

Except for [;], Mach4 worked, but this time it stopped at the point of the red arrow.
I clicked "Help Docs" and looked at the Gcode documentation, but I didn't know what was wrong.

Please teach me the solution.
Re: Mach3 to Mach4 migration "#"
« Reply #3 on: July 31, 2021, 04:37:59 AM »
It says 'Axis 1 commanded while disabled'. This means exactly that. You need to check your motor configuration and that you have the correct motors mapped to the axes you are using.

If you have not set up your motors and axes yet, usually the manufacture of your motion controller will have a guide on how to do this.
Re: Mach3 to Mach4 migration "#"
« Reply #4 on: July 31, 2021, 05:08:11 AM »
Thank you. ;D