fbpx

CS-Lab Support Forum for CNC Community

Help to run this brand-new forum and stay with us.
Ask your questions, we are here to help! 

 

Please or Register to create posts and topics.

Subroutine M98 never executed

Hello,

I have a problem with M98 subroutine in Mach3 and CSMIO IP4.

If I run this gcode file:

G90

F2000
G1 Z -1
G1 X0 Y0

G91
M98 P1000 L4
M30

O1000
G1 Y200
G1 X200
G1 Y-200
G1 X-200
M99

%

the O1000 is never executed.

If I wrote a second gcode file (1000.tap) and put it in subroutine folder like this:

G1 Y200
G1 X200
G1 Y-200
G1 X-200
M99

%

and call it inside the main gcode file:

G90

F2000
G1 Z -1
G1 X0 Y0

G91
M98 (1000.tap) L4
M30

It works.

Do you know where does come this problem? I haven't found answer on internet.

 

Thank you

jeff

Hi,

Please look at this link https://www.machsupport.com/forum/index.php?topic=6334.0

I also tested the provided example and section.

%
O0001 (MAIN PROGRAM)
G00 G90 G43
G1 X100 F500
M98 P0002 L2
M30

O0002 (SUB PROGRAM)
Y50 F500
Y0
M99
%

 

Regards,

Wojtek

Thank you I found m'y mistake, I wrote the script with linux and endline aren't thé same. Reedited it and change endline with notepad do the job.

Thank you!

 

CS-Lab Support has reacted to this post.
CS-Lab Support

PARTNERS:

 

USA

Germany

Slovenia / Bosnia

Spain

South Africa

UNI-CAM

The Netherlands

Portugal

Greece

  Distrib milionis logo

Hungary

Distrib logot

Bulgaria

Master

Kenya

Proteq Automation

Egypt

Germanelectronix

China

Jun Ma

Serbia

ALCO

Italy

LVL tech r

Denmark

Varntoft Dania

Finland

×

Hello!

Click one of our contacts below to chat on WhatsApp

× How can I help you?