User Tools

Site Tools


mycnc:mycnc_setup_examples

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:mycnc_setup_examples [2019/05/23 13:48] ivanmycnc:mycnc_setup_examples [2019/06/10 09:33] ivan
Line 48: Line 48:
  
 ===How to set up a Probing Wizard in Mill profile=== ===How to set up a Probing Wizard in Mill profile===
-In order to properly set up a probe system on a mill profile from scratch on your machine (especially if the software has not, for any reason, been updated to its latest version) please check the following: +In order to properly set up a probe system on a mill profile from scratch on your machine (especially if the software has not, for any reason, been updated to its latest version) please consult the [[quickstart:mycnc-quick-start:probe_setup|QuickStart manual for the probe sensor setup]]:
- +
-1. In **CNC Settings > PLC > Hardware PLC**, check that the command **TRIG04** is created. The program should contain the following code: +
- +
-<code> +
-main() +
-+
-  gvarset(9122,1);  timer=30;do{timer--;}while(timer>0); //show message +
- +
-  if (gvarget(6060)!=0x57) +
-  { +
-    message=PLCCMD_MOTION_BREAK; +
-    timer=30;do{timer--;}while(timer>0); +
-  }; +
- +
-  exit(99); +
-}; +
-</code> +
-{{:mycnc:mill-probe-software-001.jpg}} +
- +
-2. In **CNC Settings > Probing Wizard > Probing Macro Wizard**, click **Generate All Probing Macros** and **Generate PLC Probing procedure M288**. Among other settings, this generates the necessary windows for the popup screens of the probe sensor (popups 20, 21 and 22). +
-{{:mycnc:mill-probe-software-002.jpg}} +
-  +
-3. If you want to set the particular port that you are using for your sensor, go to Go to **CNC Settings > Probing Wizard > Probing Config** and click the **Enable Probe sensor protection** button after setting the particular port desired (Port 9 for this example). This setting will be automatically mirrored in the **CNC Settings > Triggers/Timers** window.  +
-{{:mycnc:mill-probe-software-003.jpg}} +
- +
-4. Double-check the TRIG04 procedure from Step 1, and edit it back to the code above if it had been changed (this can occur on older versions of the software). +
- +
-The probe wizard setup should now be complete. +
  
 === How to set up a Lathe/Turning machine === === How to set up a Lathe/Turning machine ===
Line 337: Line 309:
  
  
 +===How to set up Homing Handler===
 +
 +If the machine has stopped unexpectedly, due to things like an emergency stop button press/power failure/etc, it is sometimes necessary to prompt the user to run the Homing procedure again before allowing any further actions to be taken in order to safely calibrate the machine. In order to do that, a software PLC is put in place called the **HOMING_HANDLER**
 +
 +The Homing Handler can be set up by using the following instructions:
 +
 +1. Go to **Settings > Config > PLC > Software PLC** and select **HOMING_HANDLER**
 +{{:mycnc:homing-handler-001.png}}
 +
 +2. In the HOMING_HANDLER code, put the two forward slashes in front of the **exit(99);** line, commenting it out.
 +{{:mycnc:homing-handler-002.png}}
 +
 +Note that the axes for which the homing is not required (Axis C in this case) have also been commented out. If only select axes need to be included in the homing procedure after the emergency stop, these can be configured in the code by adding/deleting forward slashes in front of the respective axes' commands.
 +{{:mycnc:homing-handler-003.png}}
 +
 +At this point, in an emergency stop situation, myCNC will prompt the user to run the homing procedure for the selected axes before any other action is taken after starting the machine back up again.
 +
 +In order to disable the Homing Handler, add the two forward slashes in front of **exit(99);** again, then Save and reload the application. 
  
  
mycnc/mycnc_setup_examples.txt · Last modified: 2024/01/30 12:09 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki