User Tools

Site Tools


mycnc:popup_messages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
mycnc:popup_messages [2020/05/25 11:04] ivanmycnc:popup_messages [2020/05/28 12:26] ivan
Line 1: Line 1:
-FIXME - WORK IN PROGRESS 
- 
 ====== Popup messages ====== ====== Popup messages ======
 +
 +{{youtube>uq1Rk6kRHL8?large}}
  
 This is an expanded manual that serves to introduce the user to the concept of popup messages beyond the basics described in the [[mycnc:mycnc_configuration_dialogs|MyCNC Configuration Dialogs]] manual.  This is an expanded manual that serves to introduce the user to the concept of popup messages beyond the basics described in the [[mycnc:mycnc_configuration_dialogs|MyCNC Configuration Dialogs]] manual. 
Line 55: Line 55:
       flag=gvarget(1999); //check the flag, if flag<=0, then tool changed and a job should be resumed       flag=gvarget(1999); //check the flag, if flag<=0, then tool changed and a job should be resumed
     };     };
 + 
   }while(flag>0);   }while(flag>0);
  
Line 69: Line 70:
  
 {{:mycnc:popup-messages-002-f.png}} {{:mycnc:popup-messages-002-f.png}}
 +
 +===M604===
 +
 +<code>#include pins.h
 +main()
 +{
 +  //clamp new tool
 +  portclr(OUTPUT_TOOL_CLAMP);
 +
 +  timer=300;do{timer--;}while(timer>0);
 +
 +  timer=2000;
 +  do
 +  {
 +    timer--;
 +    t=portget(INPUT_TOOL_CLAMPED);// 5
 +    if (t!=0)
 +    {
 +      exit(99);
 +    };
 +  }while(timer>0);
 +
 +  gvarset(9124,1);
 +  timer=20;do{timer--;}while(timer>0);
 +
 +  message=PLCCMD_MOTION_BREAK;
 +  timer=20;do{timer--;}while(timer>0);
 +
 +
 +  exit(99);
 +};</code>
mycnc/popup_messages.txt · Last modified: 2020/11/19 11:59 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki