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.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
plc:how_to_add_mandatory_homing_after_emergency_button_and-or_servo_ready_alarm [2019/01/07 13:15] – skirillov | plc: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, | + | For many CNC applications, |
- | + | ||
- | < | + | |
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 " | The flags are set automatically to " | ||
- | - The myCNC software just loaded | + | - The myCNC software |
- | - Emergency button pressed | + | - Emergency button |
- | - 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 " | + | If you need to disable the procedure and remove completely the Popup message widget, then add < |
+ | You need to press "Save Code" | ||
+ | Homing Handler DISABLED (No popup message) | ||
<code C> | <code C> | ||
main() | main() | ||
Line 153: | Line 151: | ||
{{mycnc: | {{mycnc: | ||
+ | |||
+ | |||
+ | Homing Handler ENABLED (Homing popup message at the start of the software or after Emergency button pressed) | ||
+ | <code C> | ||
+ | main() | ||
+ | { | ||
+ | // | ||
+ | .... | ||
+ | </ | ||
plc/how_to_add_mandatory_homing_after_emergency_button_and-or_servo_ready_alarm.txt · Last modified: 2019/09/05 13:24 by ivan