hexagon logo

PC-DMIS 4.2 Macros

I'm looking for information on the PC-DMIS macros that use automov to check holes, pins, square slots, and round ended slots. The PCD_Defines.dmi file that gets output when I export my programs does not have the same macros as the ones in the program. Is there a new PCD_Defines.dmi file with the correct format for the macros?
  • I Do Know You Can't Use A Move Point Within Auto Moves Yet. In Ver. 4.3 You Will Be Able To. But It Is Not Out Yet. They Are Still Testing It.
  • Here is an example of one hole measurement.

    F(AL1)=FEAT/CIRCLE,INNER,CART,759.89,-111.07,727.96,0.9607791,-0.0000002,$
    0.2773147,5.32
    CALL/EXTERN,DMIS,M(PCD_AUTO_CIRCLE_606),(AL1),755.933,-111.113,726.949,$
    0.9607791,-0.0000002,0.2773147,'THEO_THICKNESS',0,'STRAIGHT','LEAST_SQR',$
    'NO','BOTH',1,(),(),(),'NO','DISABLED','NO',0,1,1,3,0,90,450,1.5,$
    0.2773147,0,-0.9607791,0,0,1,0,0,1,'861.164,235.911,-1068.431,-0.9578975,$
    -0.0773916,-0.276483,857.853,236.414,-1066.719,0.2870999,-0.2663525,$
    -0.920125,856.068,235.499,-1069.902,0.9578975,0.0773916,0.276483,859.38,$
    234.997,-1071.614,-0.2870999,0.2663525,0.920125'


    This is the closest match in the PCD_DMIS_Defines.dmi file
    M(PCD_AUTO_SURFACE_POINT_606) = MACRO/'id', x, y, z, i, j, k, thickness_type,$
    thickness, algorithm, math_type, read_pos_on_error, auto_move, $
    auto_move_distance, 'rmeas', read_pos, find_hole, remeasure, n_hits, init, $
    perm, spacer, pitch, sang, eang, depth, ang_i, ang_j, ang_k, hits
    MODE/AUTO,MAN
    RMEAS/CIRCLE,F(id),n_hits,VECBLD,spacer,perm
    ENDMES
    ENDMAC


    But there are also macros in the PCD_DMIS_Defines.dmi file that have the same names, but appear to be to check a slot and a sphere?

    M(PCD_AUTO_CIRCLE_606) = MACRO/'id', x, y, z, i, j, k, slot_i, slot_j, $
    slot_k, thickness_type, thickness, on_error, auto_move, auto_move_distance, $
    'rmeas', read_pos, find_hole, remeasure, init, perm, spacer, depth, minmax, $
    corner_radius, hits
    MODE/AUTO,MAN
    RMEAS/CPARLN,F(id),5,VECBLD,spacer,perm
    ENDMES
    ENDMAC
    $$
    M(PCD_AUTO_CIRCLE_606) = MACRO/'id', x, y, z, i, j, k, diam, height, $
    thickness_type, thickness, algorithm, on_error, auto_move, $
    auto_move_distance, 'rmeas', read_pos, n_hits, n_rows, init, perm, spacer, $
    sang, eang, depth, ang_i, ang_j, ang_k, hits
    MODE/AUTO,MAN
    RMEAS/SPHERE,F(id),n_hits*n_rows,FA(rmeas)
    ENDMES
    ENDMAC

    Does this make sense or is there a new PCD_DMIS_defines.dmi file that will have matching macros?
  • ha. Saw this article is really good, you write make sense very much. 洒水车 洒水车 洒水车 洒水车 洒水车


    whatbe dabda doba bobba.....