Using Breakpoints in PC-DMIS | CMMXYZ Tech Tips

Описание к видео Using Breakpoints in PC-DMIS | CMMXYZ Tech Tips

Okay, so in this video, I want to show you how to use a breakpoint. So what's a breakpoint? A breakpoint is a debugging tool, something that you would use to prove out a program. It just lets you edit on the fly as you're proving your program out.

Breakpoints are found in the menu under Edit, Breakpoints. So we're just going to Toggle one Breakpoint in this demo. You can see the keyboard shortcut, Ctrl+B. Okay, so the way it works is, typically you might want to put a breakpoint at a TIP change or an area of concern.

And what happens when PC-DMIS encounters the breakpoint during execution, is that the program will pause, and then you use the execution box to step through the program. So it's like block-by-block proving out from that point forward.

So I'll just demonstrate and show you how it works. So I have a pretty simple program. I have three TIP changes. So once I encounter my second TIP change right here, I want to insert a breakpoint. So I'll use a keyboard shortcut, Ctrl+B. And you can see that little red dot there in the Edit window. So once it encounters that red dot, we will be doing block-by-block programming until I decide to just continue with the program.

Okay, so let's run it. I'll just hit the Play button here. And you can see in the Edit window that as each feature is being executed is shown in red. So whatever is being executed, or what the software is currently on is shown in red. So it's encountered the breakpoint. And now, what I need to do with the execution box is Step Next. So there's a little button here called Step Next. So every time I press that, it will execute wherever the cursor is.

So let's hit it once, so you can see it's done the TIP change. So imagine you're proving out a program, and you're a little nervous. You're not sure what it's going to do, or you wanna make sure it's safe. This is a nice safe way to do that. So now you can see, in the Edit window, my CIR1 is red, so that is waiting to be executed.

So my CIR1 is actually on the backside. So I can actually rotate and take a look. Or if I was actually live doing this, I could, you know, step around the back of the machine, take a look. When I'm ready, I'll just press Step Next, and then it executes my circle. So we're still paused. And the other thing you can do with this breakpoint is that I can actually program on the fly, like, I can add commands here. I can add move points. I can add comments. And I'll just show you, I'll just demonstrate that.

So while this is paused, I can just put my cursor before the TIP change and actually add an operator Comment. So let's go ahead and do that. So I'll just say, "Tip is about to rotate." And just add it there. And when I click OK, you can see, it's actually...well, it's actually put it in the wrong spot. But that's fine, I can just cut and paste. Cut that. Put my cursor here, just like that.

Okay, so let's carry on. So I'll just hit Step Next. So whenever I add something on the fly, like edit on the fly, you'll see this box pop up, "A New Feature Has Been Added!" In this case, all I wanted...it's actually just a comment. So I'm just going to Continue. And then, Step Next, so it should go to the CIR2 next. Or actually, it should go to the new TIP change.

So another warning. So again, at this point, if this is unsafe with the clearance cube motion activated, I can actually insert an incremental move. So let's do that. So I'll put it... Well, clear the warning first. And before I forget, I'll just put my cursor before the operator comment and do an incremental move.

So I'll just come up in Zed, say 200 millimeters. And okay, so you can see that's inserted there. We'll see the comment. It'll come up, it'll rotate, and then measure my circles. So the rest of my program should be good. I'm just going to not step through, but actually just press Continue and it'll just do the rest.

There we go. A really useful debugging tool. It's not something we talk about in training too often, but it recently came up in a training session, so I thought I'd share it with you. I hope you found that useful. Thanks for joining me and we'll see you next time.

About CMMXYZ
We are North America's foremost independent measurement solutions provider. We sell new and used coordinate measuring machines, provide measuring services, upgrade and repair your systems.

CMMXYZ - Coordinate Measuring Machines - http://www.cmmxyz.com/
Follow us on Facebook -   / cmmxyz  
Get the latest on Twitter -   / cmmxyz  
Follow CMMXYZ on LinkedIn -   / canadian-measurement---metrology-inc  .
Learn more about CMMXYZ on our blog - https://blog.cmmxyz.com/blog
Subscribe to our YouTube Channel -    / cmmxyzvideo  

Комментарии

Информация по комментариям в разработке