[Bl...] Posted September 9 Share Posted September 9 Can someone help me understand this PCM command, positionCMM()? I'm trying to get the probe to move in the -Y direction immediately after the program is done running. This PCM command will be place in the post settings for the overall program PCM. I'll list my code below. *"variable" will be a set parameter inside of a parameter file. Actualx = getActual("circle").x Actualy = getActual("circle").y Actualz = getActual("circle").z if "variable" == 1 then positionCMM(Actualx, Actualy, Actualz) endif As soon as the program is done running the probe will just go straight up. Not sure what I'm doing wrong. Any help would be appreciated, thanks! Link to comment Share on other sites More sharing options...
[Ra...] Posted September 9 Share Posted September 9 PositionCMM uses machine coordinates, not your base system. It will also go in the order of Z then Y then X, unless specified otherwise. Look at the last example for moving in the Y direction first. But I would recall that circle into machine coordinates first, or you'll be in for a rough time. 2 Link to comment Share on other sites More sharing options...
[Bl...] Posted September 9 Author Share Posted September 9 Randawgg, Thank you very much! That is very useful! How exactly would you recall that circle into machine coordinates? Link to comment Share on other sites More sharing options...
[Ra...] Posted September 9 Share Posted September 9 Create a new alignment, then select (CMM system) from the drop-down. Then create a new circle and recall the circle you want to reference. Then on the recalled circle, change its alignment to the one you just created. Use the new circle's location for your getActuals. 1 Link to comment Share on other sites More sharing options...
[Bl...] Posted September 9 Author Share Posted September 9 Randawgg, Thank you again! A round of applause for our boy Randawgg! 1 Link to comment Share on other sites More sharing options...
[Je...] Posted September 10 Share Posted September 10 also you can use positionRS(Actualx, Actualy, Actualz), to navigate in your base-system, or positionRS(Actualx, Actualy, Actualz,"yourAlignmentName") to navigate in a secondary alignment 3 Link to comment Share on other sites More sharing options...
[Ra...] Posted September 10 Share Posted September 10 Please sign in to view this quote. You can also specify a specific stylus as well. positionRS(Actualx, Actualy, Actualz,"yourAlignmentName","yourStylusHere") 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in