Загрузка страницы

PC-DMIS Get Program Info | CMM Tech Tips - CMMXYZ

This Tech Tip Video from Canadian Measurement – Metrology shows the PC-DMIS code that automatically inserts the number of failed results into a comment. This video also shows how to give the operator an option to skip the report printing.

Hey there. Thanks for joining me again.

Today, I wanted to show you a neat trick that you can do with the GetProgramInfo string function. So what I'll do is just run the program and show you what happens, and then afterwards explain how I did it. So let's execute the program and I'll explain it as we go along.

So, I have four circles, four dimensions, and I'll just let it run there. Okay, so after the program is finished, there's a report that shows the Total Measured and the total Out of Tolerance. So this is an operator comment. So I'll need to click "OK" to continue.

Next, we have the question, a "Yes/No" comment, indicating the number Out of Tolerance and giving us the option to either print the report or not. So if you wanted to go back and check some features, some of our measurements, we can cancel this, investigate, and then re-execute. In this case, I'll say no. And that's the end of it.

Okay, I'll show you how I did it. So the first thing we need to look at are these assignments. First one, NM=GETPROGRAMINFO. And in brackets and quotations, this is important, the wording "NUMMEAS". So that will report the number of dimensions in our program, the number of measured features.

The next one, OT, is the same command, GETPROGRAMINFO. And in brackets and in quotations, N-U-M-O-O-T. So that's the number of Out of Tolerance. So because those are variables, we can plug them in and use them in equations, in expressions.

So, the first place I use it is that operator comment. So this is just a report. In brackets again, because it's a string command, "Total Measured =" and then a space, and then the variable "+NM".

Next one is the same. Same type of expression but this time we're plugging in the variable for Out of Tolerance and then "OK" to continue.

Moving down a line, is the evaluation of the variable. So if there's more than zero, Out of Tolerance, it goes to the comment, indicating the number Out of Tolerance and giving us the option to print the report.

So what I've done here is included two PRINT/REPORT commands. So the first PRINT command will only execute if we answer "yes" to the question above. If we answer "no," it will go to the end of the program and it will finish without printing. The ELSE and END_ELSE command, here, is the alternative. So that means if nothing is Out of Tolerance, if it's a perfect part, it will print automatically.

Okay. So that's it. So let's run it again. I'll give you another chance to look at it, and you can see how that works.

Okay. So same thing. This is just a report. I'll click "OK." So this time, I'll actually want to print it. I'll say "yes" to Print Report?" There we go.

So another thing that happens is it opens automatically. That's another thing I've controlled. So I'll just close this for now and show you how I did that.

So you can see in my code here, from my PRINT command, it says "AUTO OPEN REPORT" and I have that set to "ON." That's a new feature and that's a really handy one, if you want to see it automatically.

Okay. So that's it. Quick little tip on what you can do to summarize your part program at the end of execution. I hope you found this useful. Thanks for joining me and we'll see you next time.

Hey, so while I've still got your attention, I just wanted to take a moment to promote our e-learning training program. If you like my tech tips, then you may want to check out our series of instructional e-learning videos. Our CMM e-learning courses are internet-based and cover the complete PC-DMIS training courses from start to finish. This will be the same material covered in our classroom training with the added convenience of allowing you to view them whenever and wherever you want.

About Canadian Measurement-Metrology Inc.
CMM is North America's foremost independent measurement solutions provider. We sell new and used coordinate measuring machines, provide measuring services, upgrade and repair your systems.

Canadian Measurement Metrology - Coordinate Measuring Machines - http://www.cmmxyz.com/
Follow us on Facebook - https://www.facebook.com/cmmxyz
Get the latest on Twitter - https://twitter.com/CMMxyz
Follow CMM Inc. on LinkedIn - http://www.linkedin.com/company/canadian-measurement---metrology-inc.
Learn more about CMM on our blog - http://www.cmmxyz.com/new-reviews
Subscribe to our Youtube Channel - https://www.youtube.com/user/CMMXYZvideo/

Видео PC-DMIS Get Program Info | CMM Tech Tips - CMMXYZ канала CMMXYZ
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
14 декабря 2015 г. 20:11:30
00:04:59
Яндекс.Метрика