![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| CamSoft Products Discuss Camsoft PC based CNC controller products here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#2
| ||||
| ||||
| Here's my macros to home and park off the limit switches. It saves a buch of time at startup if machine is in park posiiton so i tell operator to do this before shutdown. '*********************************PARK MACHINE**************************************** [[PARKMACHINE]] 'called from M111 IF \140=1 THEN MESSAGE . Start of Park Machine IF \141=1 THEN [GALILERRORS] 'message Galil errors IF #59=0 THEN MESSAGE Need a Reset:EXIT \124=f 'current feed rate f=20 MACHGO ;;0 MACHGO ;0 MACHGO 0 f={\124} MESSAGE Machine Parked IF \141=1 THEN [GALILERRORS] 'message Galil errors '**************************************HOME MACHINE************************************* [[HOMEMACHINE]] 'called from M110 IF \140=1 THEN MESSAGE . Start of HomeMachine IF #59=0 THEN MESSAGE Need a Reset:EXIT QUESTION Is machine at limit switches?;\55;N IF \55=Y THEN GOTO :STARTHOME EXIT :STARTHOME IF \141=1 THEN [GALILERRORS] 'message Galil errors MACHZERO 0;0;0 'set machine zero point temporarily for this macro SUSPEND BYPASS 'suspends position checking for MACHGO move MACHGO ;10 'move toward limit switch WAITUNTIL #12=1 'foward limit switch Y axis STOP 'stop when switch is hit FINDINDEX 2;R 'find Y axis index mark SUSPEND BYPASS 'suspends position checking for MACHGO move MACHGO -10 'move toward limit switch WAITUNTIL #6=1 'reverse limit switch X axis STOP 'stop when switch is hit MACHZERO 0;0;0 'set machine zero point temporarily for this macro GO .05 'index mark too close to limit switch FINDINDEX 1;F SUSPEND BYPASS 'suspends position checking for MACHGO move MACHGO ;;10 'move toward limit switch WAITUNTIL #13=1 'reverse limit switch Z axis STOP 'stop when switch is hit FINDINDEX 3;R MACHZERO 0;0;0 'set machine zero point LIGHT 5;ON \123=1 'flag for machine homed MESSAGE AT MACHINE 0 IF \141=1 THEN [GALILERRORS] 'message Galil errors |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Home/Limit on same switch? | hargray2 | General Electronics Discussion | 1 | 04-02-2006 02:20 PM |
| limit switch and home switch setup | Runner4404spd | General Electronics Discussion | 0 | 12-15-2005 07:58 AM |
| Is it possible to use the home switch as the limit switch as well? | Darc | Mach Software (ArtSoft software) | 2 | 10-23-2005 12:50 AM |
| Limit Switch / Home Switch in Software | Sanghera | General Electronics Discussion | 6 | 11-01-2004 05:58 PM |