User Tools

Site Tools


plc:how_to_add_mandatory_homing_after_emergency_button_and-or_servo_ready_alarm

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
Last revisionBoth sides next revision
plc:how_to_add_mandatory_homing_after_emergency_button_and-or_servo_ready_alarm [2019/01/07 13:18] skirillovplc:how_to_add_mandatory_homing_after_emergency_button_and-or_servo_ready_alarm [2019/07/12 15:52] ivan
Line 1: Line 1:
 ===== How to add mandatory Homing after Emergency Button and-or Servo ready alarm ===== ===== How to add mandatory Homing after Emergency Button and-or Servo ready alarm =====
  
-For many CNC applications, it's very important to have precise machine position all the time. The homing procedure should be done to find the correct machine position if any servo driver fault happens or Emergency button pressed.  +For many CNC applications, it's very important to have precise machine position all the time. The homing procedure should be done to find the correct machine position if any servo driver fault happens or if the Emergency button is pressed. 
- +
-<del>However, plasma/gas cutting users don't care about homes quite often and mostly use "working" position.</del> +
  
 Mandatory Homing procedure handler can be implemented with **Software PLC** Mandatory Homing procedure handler can be implemented with **Software PLC**
- 
  
 There are Homing flags situated in global variables 7391-7399 There are Homing flags situated in global variables 7391-7399
Line 20: Line 16:
  
 The flags are set automatically to "1" if The flags are set automatically to "1" if
-  - The myCNC software just loaded +  - The myCNC software has just loaded 
-  - Emergency button pressed +  - Emergency button has been pressed 
-  - Corresponding Servo Ready alarm triggered+  - Corresponding Servo Ready alarm has been triggered
  
  
-Software PLC Homing procedure handler monitors the flags and stops running G-code if any of the flags is set.+Software PLC Homing procedure handler monitors the flags and stops running G-code if any of the flags is set to 1.
  
 <code C HOMING_HANDLER.plc> <code C HOMING_HANDLER.plc>
Line 143: Line 139:
  
  
-If you need to disable the procedure and remove completely the Popup message widget, then add exit command at the start of the procedure "HOMING_HANDLER" in Software PLC. Exit call is commented by default, you can just remove comment part.+If you need to disable the procedure and remove completely the Popup message widget, then add <code>exit(99);</code> command at the start of the procedure "HOMING_HANDLER" in Software PLC. Exit call is commented by default, you can just remove comment part.
 You need to press "Save Code" button and restart the software to apply the changes. You need to press "Save Code" button and restart the software to apply the changes.
  
plc/how_to_add_mandatory_homing_after_emergency_button_and-or_servo_ready_alarm.txt · Last modified: 2019/09/05 13:24 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki