Jump to content

PCM for positionCMM()


---
 Share

Recommended Posts

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

PositionCMM uses machine coordinates, not your base system. It will also go in the order of Z then Y then X, unless specified otherwise.

 

image.png.c75978dcc6fc4d9cad161b7989f84dc1.png

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.

 

  • Like! 2
Link to comment
Share on other sites

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

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.

image.png.4ace0003ff1dffb8e6d8e84791c9c5fa.png

 

  • Like! 1
Link to comment
Share on other sites

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

  • Like! 2
Link to comment
Share on other sites

Please sign in to view this quote.

You can also specify a specific stylus as well. positionRS(Actualx, Actualy, Actualz,"yourAlignmentName","yourStylusHere")

  • Like! 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...