У нас вы можете посмотреть бесплатно Using the Else/Else_End Command in PC DMIS | PC-DMIS Tech Tips - CMMXYZ или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
PC-DMIS Tech Tip: This short video demonstrates how to use the Else/End_Else command in PC-DMIS. Using this command allows you to write a program with 2 different execution options. Hey, so, in this video, I'm going to show you how to use the else end else command. So, I'll quickly show you where to find that in the menu. It's under insert, flow control command, controlled pairs. And there it is right there. So, else end else. Okay, so, let's take a look at my program. So, what I'm doing here is auto-calibration, but I have to auto-calibrate commands. So, my goal is to execute either one or the other. So, it's always gonna execute one depending on the answer to a question. So, the question is, has the calibration sphere moved? So, if the answer is no, it will execute the first command. You can see it there between the if and the end if. And what I've done to the auto-calibrate command is programmed it to say qualification tool moved =no. So, I've just answered that question ahead of time. So, the beauty of the else end else command is that, if the first question fails, it will do the other command in between the else and the end else. So, you can see in my second auto Calibri command, I have answered the question, "Yes, the qualification tool has moved." So, two similar commands with one important difference. So, one thing to note about the ELSE_END_ELSE command is it's required to come immediately after the END IF command. So, I can't just space it out and put it somewhere else in the program. It has to be attached, it has to come right after the END IF. Okay, so let's run the program, and I'll go through both scenarios. Okay, so, we'll just answer this operator comment, okay, to begin auto-calibration. Okay, so, here's my yes, no question. Has the calibration sphere moved? So, I'll answer yes. So, now the operator is prompted to take a manual hit to locate. And this is the command that's in between the ELSE and the END_ELSE statement. Okay, so you can see it there. My second auto-calibrate command. So, let's run it again. And I'll answer... So, click OK first. And here I'll answer no. So, you can see there, I'm just simulating, calibrating the probe. So, this is actually the first auto-calibrate command in my program. Okay, so, I'll just click OK to exit. So, looking at the code, you can see in my second execution, the IF statement is true. So, because it's true, it executes the first auto-calibrate command with the qualification tool moved =no, so it just goes ahead and calibrates. Okay, so that's about it. I just wanted to show you a good use of the ELSE_END_ELSE command. It was actually not that hard, but extremely useful in a situation like this. So, 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/ Get the latest on Twitter - / cmmxyz Follow CMMXYZ on LinkedIn - / cmmxyz Learn more about CMMXYZ on our blog - https://blog.cmmxyz.com/blog Subscribe to our YouTube Channel - / cmmxyzvideo