Jump to content

Strange behaviour of positionCMM()


---
 Share

Recommended Posts

Hey guys,

When I use positionCMM together with getPositionCMM(), for example:

positionCMM(getPositionCMM().x, getPositionCMM().y, -5)

I’m running into a really strange bug. Instead of just moving up along the Z-axis, the machine starts flying all over the place.

This only happens right after starting the program, when the first of those commands is executed.
If it somehow doesn’t crash and the program keeps running, the next time I call this function it behaves as expected and just goes up. This is happening in simulation and live on the machine.

I’ve attached a picture showing what happens. The machine is only supposed to move upward.

Is there an alternative PCM method to move the machine along just one axis?

 

image.thumb.png.1b4145c77a13c16ade689121e52eea69.png

Link to comment
Share on other sites

Please sign in to view this quote.

Perhaps this is because the base alignment has not been established, and it is working from CMM positioning? (My best guess).

Link to comment
Share on other sites

The command and its inputs are based on the machine coordinate system, so i think it should not matter.

And it happens a good while after the base alignment has been established... I might have worded the "right after starting the program" wrong. For example, if i stop the program with the red light and start it again with existing alignment there is no problem

  • Like! 1
Link to comment
Share on other sites

  • 2 weeks later...

You're complicating the command; try  positionCMM(z,-5)

 

positionCMM()
positionCMM(x,y,z[AXIS1,AXIS2,AXIS3]) Move to position. In given axis order.

positionRS()
positionRS(x,y,z[COORdiNATE SYSTEM,PROBE]) Move to position in coordinate-system with probe

Link to comment
Share on other sites

 Share

×
×
  • Create New...