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

Just did a quickt test of this here.  There may be a better way to do this, but if you edit your post to add:

 

function onParameter(what, value) {
   if (what == "action")
   {
     writeln("");
     writeComment("Manual Operation");
     writeBlock(value);
   }
}

This will just take whatever you put in for the Action (in this case "G64 P0.015") and output it as a block of code.

Tested using the generic fanuc turning post

 

-- Make sure your post doesn't already have an onParameter() function first though.  Don't want to replace one that is already there.  If there is one, it can be modified to add this check for "Action".

 

Dave