Re: New DMM Servo install
Posted: Tue Jan 16, 2024 6:32 pm
Marty,
THank you for the reply. The code above was my homing cycle. It still wouldnt work. So i went back into the wizard and let the machine make a new homing sequence. Then i went back in and added the line of code for the ZRI input to #2 and copied it for X Y and Z as shown below. For whatever reason, itworks now. See below:
N100 ;Check for open home switch
IF !#[50000 + #9822] THEN M225 #100 "HomeAll switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF !#[50000 + #9822] THEN GOTO 100
;Disable all limits
M94 /101 /102 /103 /104
;Perform Homing commands
M92/Z L1
M105 /Z P-2 F2 ;Move Z- at 2ipm until input 2 closes
M26/Z
M91/Y L1
M106 /Y P-2 F2 ;Move X- at 2ipm until input 2 closes
M26/Y
M92/X L1
M105 /X P-2 F2 ;Move Y- at 2ipm until input 2 closes
M26/X
;Enable all limits
M95 /101 /102 /103 /104
All my ZRIs are put into input two and it works only using one input.
On the software update.. Will i have to rerun the wizard setup and put everytihing I have done in the past back into the system? Is this why I need screenshots of every page?
Thanks again for your help on this forum. It is much appreciated.
THank you for the reply. The code above was my homing cycle. It still wouldnt work. So i went back into the wizard and let the machine make a new homing sequence. Then i went back in and added the line of code for the ZRI input to #2 and copied it for X Y and Z as shown below. For whatever reason, itworks now. See below:
N100 ;Check for open home switch
IF !#[50000 + #9822] THEN M225 #100 "HomeAll switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF !#[50000 + #9822] THEN GOTO 100
;Disable all limits
M94 /101 /102 /103 /104
;Perform Homing commands
M92/Z L1
M105 /Z P-2 F2 ;Move Z- at 2ipm until input 2 closes
M26/Z
M91/Y L1
M106 /Y P-2 F2 ;Move X- at 2ipm until input 2 closes
M26/Y
M92/X L1
M105 /X P-2 F2 ;Move Y- at 2ipm until input 2 closes
M26/X
;Enable all limits
M95 /101 /102 /103 /104
All my ZRIs are put into input two and it works only using one input.
On the software update.. Will i have to rerun the wizard setup and put everytihing I have done in the past back into the system? Is this why I need screenshots of every page?
Thanks again for your help on this forum. It is much appreciated.