Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Hi @rushikesh_nagalkar thank you for the reply.

 

I can confirm that in the case of a sub spindle grab this is now working for me, thank you very much, however I cannot get it to work on a "bar pull" or "sub spindle return" I still get a G01 with no feed rate in those cases.

 

I have tried editing a copy of the post in a similar way using the new format statement but I am just guessing at the solution and it does not work.

 

Sub spindle return.

      writeBlock(conditional(cycle.useMachineFrame, gFormat.format(53)), gMotionModal.format(1), "Z3=" + spatialFormat.format(cycle.feedPosition),
      conditional(cycle.feedrate,TransfeedOutput.format(cycle.feedrate)));
 
Sub spindle pull.
      writeBlock(conditional(cycle.useMachineFrame, gFormat.format(53)), gMotionModal.format(1), "Z3=" + spatialFormat.format(cycle.pullingDistance),
      conditional(cycle.feedrate,TransfeedOutput.format(cycle.feedrate)));
 
With regards to the G53 section I am going to monitor this for a while longer before making any changes. The G53 section being in the code seems to depend on what I am asking the machine to do before and after the sub spindle grab, I need to experiment some more with it to find a patten of behaviour I can predict.
 
EDIT:
 
I have had another think about it and created a format statement for each case of sub spindle movement it seems to work now in all 3 cases. Do you foresee any issues with this at all Rushikesh?
 
var SSGrabfeedOutput = createVariable({prefix:"F"}, feedFormat);
var SSReturnfeedOutput = createVariable({prefix:"F"}, feedFormat);
var SSPullfeedOutput = createVariable({prefix:"F"}, feedFormat);
 
Thanks
Andy