Page 18 of 20

Re: New DMM Servo install

Posted: Thu Oct 01, 2020 1:34 pm
by Raceman17
Ok i think I can easily rewire this and add a contactor. Im using DMM drives.. can I just do the power estop to turn off power to just L1 and L2?

Re: New DMM Servo install

Posted: Thu Oct 01, 2020 1:52 pm
by slodat
You can parallel up the ZRI inputs.

Re: New DMM Servo install

Posted: Thu Oct 01, 2020 1:54 pm
by slodat
Raceman17 wrote: Thu Oct 01, 2020 1:34 pm Ok i think I can easily rewire this and add a contactor. Im using DMM drives.. can I just do the power estop to turn off power to just L1 and L2?
I have a two pole e-stop. One pole switches the e-stop input to acorn. The other is in the coil circuit of the e-stop contractor. The e-stop contactor switches the DYN4 drive motor power. When e-stop switch is pressed both things happen at the same time: motor power is cut and Acorn receives an e-stop input.

Re: New DMM Servo install

Posted: Thu Oct 01, 2020 2:37 pm
by martyscncgarage
slodat wrote: Thu Oct 01, 2020 1:52 pm You can parallel up the ZRI inputs.
What does your cnc.hom program look like?

Re: New DMM Servo install

Posted: Thu Oct 01, 2020 2:44 pm
by slodat
martyscncgarage wrote: Thu Oct 01, 2020 2:37 pm
slodat wrote: Thu Oct 01, 2020 1:52 pm You can parallel up the ZRI inputs.
What does your cnc.hom program look like?
IN1 = X axis home/limit
IN2 = Y axis home/limit
IN3 = Z axis home/limit
IN4 = ZRI input. All axis in parallel

Code: Select all

N100 ;Check for an open home switch
;First axis minus and plus
IF #21301 == 0 THEN #111 = 9 ELSE #111 = #21301
IF #21401 == 0 THEN #112 = 9 ELSE #112 = #21401
IF [#20101 != 78] && [#21301 != 0] && !#[50000 + [#111]] THEN M225 #100 "X Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing";
IF [#20101 != 78] && [#21401 != 0] && !#[50000 + [#112]] THEN M225 #100 "X Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20101 != 78] && [#21301 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
IF [#20101 != 78] && [#21401 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1

;Second axis minus and plus
IF #21302 == 0 THEN #111 = 9 ELSE #111 = #21302
IF #21402 == 0 THEN #112 = 9 ELSE #112 = #21402
IF [#20102 != 78] && [#21302 != 0] && !#[50000 + [#111]] THEN M225 #100 "Y Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20102 != 78] && [#21402 != 0] && !#[50000 + [#112]] THEN M225 #100 "Y Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20102 != 78] && [#21302 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
IF [#20102 != 78] && [#21402 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1

;Third axis minus and plus
IF #21303 == 0 THEN #111 = 9 ELSE #111 = #21303
IF #21403 == 0 THEN #112 = 9 ELSE #112 = #21403
IF [#20103 != 78] && [#21303 != 0] && !#[50000 + [#111]] THEN M225 #100 "Z Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20103 != 78] && [#21403 != 0] && !#[50000 + [#112]] THEN M225 #100 "Z Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20103 != 78] && [#21303 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
IF [#20103 != 78] && [#21403 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1

;Fourth axis minus and plus
;IF #21304 == 0 THEN #111 = 9 ELSE #111 = #21304
;IF #21404 == 0 THEN #112 = 9 ELSE #112 = #21404
;IF [#20104 != 78] && [#21304 != 0] && !#[50000 + [#111]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
;IF [#20104 != 78] && [#21404 != 0] && !#[50000 + [#112]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
;IF [#20104 != 78] && [#21304 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
;IF [#20104 != 78] && [#21404 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1
;IF #101 != 0 THEN GOTO 100


M106 /Z P3 F10	;Move Z plus at 10 in/m until input 3 opens
M105 /Z P-3 F.5	;Back Z off Switch
M105 /Z P-4 F.1	;Move Z minus at 1 in/m until input 4 closes
G4P1
M26 /Z          ;Set Z home here
M105 /Z P4 F1	;Back off ZRI for the next axis

M105 /Y P2 F10
M106 /Y P-2 F.5
M106 /Y P-4 F.1
G4P1
M26 /Y
M106 /Y P4 F1	;Back off ZRI for the next axis

M105 /X P1 F10  
M106 /X P-1 F.5 
M106 /X P-4 F.1 
G4P1
M26 /X      
M106 /X P4 F1	;Back off ZRI for the next axis

;g53 x1 y1
;g53 x15 y10.5 f50

N1000           ;END

Re: New DMM Servo install

Posted: Thu Oct 01, 2020 3:46 pm
by cncsnw
If you connect your ZRI inputs in parallel, then if one motor happens to be sitting on its index pulse when you begin homing (INP4 closed), won't that interfere with homing the other motors?

It seems like you would have to move each of the three motors onto and off of its home switch first, then after all three were just clear of their home switches, go back and move each one to, then off of, the index pulse.

Re: New DMM Servo install

Posted: Thu Oct 01, 2020 6:04 pm
by Raceman17
slodat wrote: Thu Oct 01, 2020 1:54 pm
Raceman17 wrote: Thu Oct 01, 2020 1:34 pm Ok i think I can easily rewire this and add a contactor. Im using DMM drives.. can I just do the power estop to turn off power to just L1 and L2?
I have a two pole e-stop. One pole switches the e-stop input to acorn. The other is in the coil circuit of the e-stop contractor. The e-stop contactor switches the DYN4 drive motor power. When e-stop switch is pressed both things happen at the same time: motor power is cut and Acorn receives an e-stop input.
It appears that you have to use the estopOK as an input in centroid. The utility wizard will not save without it being setup. Am I missing something? I rewired the drives to a separate contactor and went to change acorn and then found out about this.

Re: New DMM Servo install

Posted: Thu Oct 01, 2020 11:01 pm
by Raceman17
slodat wrote: Thu Oct 01, 2020 2:44 pm
martyscncgarage wrote: Thu Oct 01, 2020 2:37 pm
slodat wrote: Thu Oct 01, 2020 1:52 pm You can parallel up the ZRI inputs.
What does your cnc.hom program look like?
IN1 = X axis home/limit
IN2 = Y axis home/limit
IN3 = Z axis home/limit
IN4 = ZRI input. All axis in parallel

Code: Select all

N100 ;Check for an open home switch
;First axis minus and plus
IF #21301 == 0 THEN #111 = 9 ELSE #111 = #21301
IF #21401 == 0 THEN #112 = 9 ELSE #112 = #21401
IF [#20101 != 78] && [#21301 != 0] && !#[50000 + [#111]] THEN M225 #100 "X Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing";
IF [#20101 != 78] && [#21401 != 0] && !#[50000 + [#112]] THEN M225 #100 "X Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20101 != 78] && [#21301 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
IF [#20101 != 78] && [#21401 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1

;Second axis minus and plus
IF #21302 == 0 THEN #111 = 9 ELSE #111 = #21302
IF #21402 == 0 THEN #112 = 9 ELSE #112 = #21402
IF [#20102 != 78] && [#21302 != 0] && !#[50000 + [#111]] THEN M225 #100 "Y Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20102 != 78] && [#21402 != 0] && !#[50000 + [#112]] THEN M225 #100 "Y Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20102 != 78] && [#21302 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
IF [#20102 != 78] && [#21402 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1

;Third axis minus and plus
IF #21303 == 0 THEN #111 = 9 ELSE #111 = #21303
IF #21403 == 0 THEN #112 = 9 ELSE #112 = #21403
IF [#20103 != 78] && [#21303 != 0] && !#[50000 + [#111]] THEN M225 #100 "Z Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20103 != 78] && [#21403 != 0] && !#[50000 + [#112]] THEN M225 #100 "Z Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF [#20103 != 78] && [#21303 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
IF [#20103 != 78] && [#21403 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1

;Fourth axis minus and plus
;IF #21304 == 0 THEN #111 = 9 ELSE #111 = #21304
;IF #21404 == 0 THEN #112 = 9 ELSE #112 = #21404
;IF [#20104 != 78] && [#21304 != 0] && !#[50000 + [#111]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
;IF [#20104 != 78] && [#21404 != 0] && !#[50000 + [#112]] THEN M225 #100 "Home switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
;IF [#20104 != 78] && [#21304 != 0] && !#[50000 + [#111]] THEN #101 = #101 + 1
;IF [#20104 != 78] && [#21404 != 0] && !#[50000 + [#112]] THEN #101 = #101 + 1
;IF #101 != 0 THEN GOTO 100


M106 /Z P3 F10	;Move Z plus at 10 in/m until input 3 opens
M105 /Z P-3 F.5	;Back Z off Switch
M105 /Z P-4 F.1	;Move Z minus at 1 in/m until input 4 closes
G4P1
M26 /Z          ;Set Z home here
M105 /Z P4 F1	;Back off ZRI for the next axis

M105 /Y P2 F10
M106 /Y P-2 F.5
M106 /Y P-4 F.1
G4P1
M26 /Y
M106 /Y P4 F1	;Back off ZRI for the next axis

M105 /X P1 F10  
M106 /X P-1 F.5 
M106 /X P-4 F.1 
G4P1
M26 /X      
M106 /X P4 F1	;Back off ZRI for the next axis

;g53 x1 y1
;g53 x15 y10.5 f50

N1000           ;END
Can I just use the end of your homing code with the zri to open up a few inputs and wire the ZRI inputs in parallel? I would need to look over the code and compare it with mine to make sure the travels are going in the right direction. Also i have my z homing setup to drop my head down. 25" to keep the driver from faulting out. I am using one of the inputs as homeall instead of each individual home call outs. Does this change anything?

Re: New DMM Servo install

Posted: Fri Oct 02, 2020 2:17 pm
by Raceman17
I tried messing around with the code this morning. I put all the ZRI inputs on input 2 and my home all switches are on input 5 wired in series. I could not get it to work by changing the code. I really have ZERO experience with coding so any help would be appreciated. The below code is what I have been using for homing.

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 ;move to z+ home switch, back off until clear
M105 /Z P-4 F3 ;Move Z plus at 3ipm until input 4 closes
M26/Z ;set Z home here

M91/Y L1 ;move to Y- home switch, back off until clear
M106 /Y P-3 F3 ;Move Y- at 3ipm until input 3 closes
M26/Y ;set Y home here

M92/X L1 ;move to X+ home switch, back off until clear
M105 /X P-2 F3 ;Move X+ at 3ipm until input 2 closes
M26/X ;set x home here

Re: New DMM Servo install

Posted: Fri Oct 02, 2020 5:25 pm
by slodat
The "P" in those commands is the input number.