hexagon logo

Study hard (want to write scrip of loop measure)

I want to know how to perform a feature by VBS. For example, a separate-execution "PNT1".such as the "CTRL+E",how to achieve this script.
seeking the core code or key function
Parents
  • Don't know if this matters to anyone, but I was able to create a step and repeat program code for our machining centers. It used just one part program to run the quantity needed on the billet. It would run one or more up to the full quantity that was allowed. The start location could be varied by setting a variable related to parts previously ran and the quantity variable would determine the end point. It worked great, Disappointed but we don't use it because we're scared or something. Can't recall the code, but it had 1,2,3,4,5, 6 variables two controled quantity and start part, two controlled X,Y location and any others were used for calculations only. There were more variables to hold constants too. It only ran the same direction whereever it started X+ to X- tehn step Y- or any other direction, but it was always the same. Not sure how it could be converted into PC-DMIS commands but I could give a short of it if you were interested.
    Thought maybe your operator could arrange the parts in the set direction and just set the variable to equal the quantity and it would stop when done. I belive it was a WHILE DO statement.
Reply
  • Don't know if this matters to anyone, but I was able to create a step and repeat program code for our machining centers. It used just one part program to run the quantity needed on the billet. It would run one or more up to the full quantity that was allowed. The start location could be varied by setting a variable related to parts previously ran and the quantity variable would determine the end point. It worked great, Disappointed but we don't use it because we're scared or something. Can't recall the code, but it had 1,2,3,4,5, 6 variables two controled quantity and start part, two controlled X,Y location and any others were used for calculations only. There were more variables to hold constants too. It only ran the same direction whereever it started X+ to X- tehn step Y- or any other direction, but it was always the same. Not sure how it could be converted into PC-DMIS commands but I could give a short of it if you were interested.
    Thought maybe your operator could arrange the parts in the set direction and just set the variable to equal the quantity and it would stop when done. I belive it was a WHILE DO statement.
Children
No Data