hexagon logo

Get current tip position to variable in PC-DMIS

I need the current tip position to variable for safety reasons in PC-DMIS.

I know, that the current tip position is shown in the status bar.

But I would like to calculate automatically with the values of the tip.

Do any of you know a way to transfer the current position of the tip into a variable?

I thank you in advance

Parents Reply Children
  • It's actually quite frustrating, because you can get the Tip A angle, B angle, IJK, and last parameter "Angle", but you cannot get the XYZ. If there is a secret way to find the X, Y, and Z this way please share. These are displayed in the status window. So I feel like there IS a way.

                TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
                ASSIGN/V1=GETCOMMAND("Set Active Tip", "UP",1)
                ASSIGN/WRIST=GETTEXT(3, "TOP", V1)
                ASSIGN/TIPI=GETTEXT(229, "TOP", V1)
                ASSIGN/TIPJ=GETTEXT(230, "TOP", V1)
                ASSIGN/TIPK=GETTEXT(231, "TOP", V1)
                ASSIGN/TIPANG=GETTEXT(38, "TOP", V1)
                COMMENT/REPT,
                "Active Tip is " +WRIST+ " ShankIJK is " +TIPI+","+TIPJ+","+TIPK+" and angle is " +TIPANG

  • There is a way, but it involves scripting. The object model includes a "machine" object. You would have to create an instance of that class and monitor the Readout Event. It just doesn't seem to be exposed to the pc-dmis program itself. If you were automating, however, and responding already to application events, you could always add that in.