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
  • Piggybacking off this idea. Readpoint is certainly the best bet here.

    Just something I quickly threw together to give errors within parameters you can set.

    PNT1       =FEAT/POINT,CARTESIAN
                THEO/<-25,25,20>,<0,0,1>
                ACTL/<-25,25,20>,<0,0,1>
                READPOINT/
                ASSIGN/LOC={PNT1}
    $$ NO,
                Adjust assignments for your own limits below
                ASSIGN/LIMITX=35
                ASSIGN/LIMITY=35
                ASSIGN/LIMITZ=25
    $$ NO,
                If X position of Tip is 25 or -25, throw warning. End routine automatically if desired, even if operator does not hit cancel.
                Set your own min/max in each statement
                IF/LOC.X >= 25 OR LOC.X <= -25
                  COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,OVC=NO,
                  "Warning, exceeding X limits! Only " +(LIMITX-ABS(LOC.X))+ " units remain"
                  ROUTINE/END
                END_IF/
                IF/LOC.Y >= 25 OR LOC.Y <= -25
                  COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,OVC=NO,
                  "Warning, exceeding Y limits! Only " +(LIMITY-ABS(LOC.Y))+ " units remain"
                  ROUTINE/END
                END_IF/
                IF/LOC.Z >= 20 OR LOC.Z <= -20
                  COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,OVC=NO,
                  "Warning, exceeding Z limits! Only " +(LIMITZ-ABS(LOC.Z))+ " units remain"
                  ROUTINE/END
                END_IF/

  • Hello everyone,
    I have tested the whole thing and have to say that unfortunately I cannot use it. In manual mode, the read point is updated and everything runs as desired. In CNC mode, there is no update, which is absolutely necessary.
    Using it in CNC mode is dangerous!
    When running the program in CNC mode, the coordinate measuring machine starts to perform undefined movements when assigning the variables!!!!
    PC-DMIS for Windows V.2022.1 Build 260 SP2

  • It absolutely should not be making random moves while the variables are being assigned values. I don't even know where to begin with that. The only thing I can suggest is to set MODE/MANUAL prior to the READPOINT and MODE/DCC after. But again, it should not be making any moves that you haven't programmed.