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.

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...