Generic Fagor Post-Manual Tool Change

Generic Fagor Post-Manual Tool Change

crash957
Contributor Contributor
766 Views
1 Reply
Message 1 of 2

Generic Fagor Post-Manual Tool Change

crash957
Contributor
Contributor

Hello people of the forum! 

 

I am working with the generic Fagor post and I am trying to set it up so that when a tool change is going to happen, the machine moves to the machines (0,0,0) point so I can manually change tools. Also along the same line: right now when my machine reads my code if there is a "T1" or any other tool it says that there inst that tool in the magazine. My machine doesn't have a magazine so I am not sure what to do. 

 

By looking at different code (I am by no means great at code, but am trying to learn) I think this is what I want? But this posts an error.

writeBlock(gFormat.format(0), zOutput.format(machineConfiguration.getRetractPlane()));
writeBlock(gFormat.format(53), gFormat.format(0), "X0", "Y0", mFormat.format(6), ;"T" + toolFormat.format(tool.number));

Thanks ahead of time for any help you can give me as a newbie!

0 Likes
Accepted solutions (1)
767 Views
1 Reply
Reply (1)
Message 2 of 2

bob.schultz
Alumni
Alumni
Accepted solution

You were close, but the code you have here is not syntactically correct.  Placing code after the EOL (;) does not make it a comment, you will need to use the comment characters (//).  The following code will work.

 

  writeBlock(gFormat.format(0), zOutput.format(machineConfiguration.getRetractPlane()));
  writeBlock(gFormat.format(53), gFormat.format(0), "X0", "Y0", mFormat.format(6)); // "T" + toolFormat.format(tool.number));

It will output the following blocks.

 

G00 Z0
G53 G00 X0 Y0 M06


Bob Schultz
Sr. Post Processor Developer

0 Likes