DMS 5-Axis Router, Fagor 8065, G0 #MCS formatting issue

DMS 5-Axis Router, Fagor 8065, G0 #MCS formatting issue

Jason_KellyU5SST
Participant Participant
271 Views
2 Replies
Message 1 of 3

DMS 5-Axis Router, Fagor 8065, G0 #MCS formatting issue

Jason_KellyU5SST
Participant
Participant

I am having an issue of formatting where my machine does not like having a Z0 command on the same line as MCS. I am at a loss as to where in the post to go to modify it to correct this formatting issue.   

 

Below is what it currently does when I post a program with line N50 being the issue

N10 ; T10  D=0.375 CR=0 - ZMIN=-1 - FLAT END MILL
N15 #MCS OFF
N20 #CS OFF
N25 #RTCP OFF
N30 #HSC OFF
N35 #KIN ID[0]
N40 G70 G80 G90
N45 G17 G40
N50 G0 #MCS Z0
N55 #MCS X0 Y0
N60 #MCS B0. C0.

 

I can manually edit it to the code below and it runs just fine. 

N10 ; T10  D=0.375 CR=0 - ZMIN=-1 - FLAT END MILL
N15 #MCS OFF
N20 #CS OFF
N25 #RTCP OFF
N30 #HSC OFF
N35 #KIN ID[0]
N40 G70 G80 G90
N45 G17 G40
N50 G0 
N53 #MCS Z0
N55 #MCS X0 Y0
N60 #MCS B0. C0.

 Thank you in advance.

0 Likes
Accepted solutions (2)
272 Views
2 Replies
Replies (2)
Message 2 of 3

aju_augustine
Autodesk
Autodesk
Accepted solution

Hi @Jason_KellyU5SST ,

 

You can search for the function writeRetract and replace the line under case "MCS"

 

Original Code:

    case "MCS":
      writeBlock(gMotionModal.format(0), "#MCS", words); // retract
      break;

 

Modified Code:

    case "MCS":
      writeBlock(gMotionModal.format(0));
      writeBlock("#MCS", words); // retract
      break;

 



Aju Augustine
Technology Consultant
Message 3 of 3

Jason_KellyU5SST
Participant
Participant
Accepted solution

That worked! Thanks for the help.

0 Likes