New DMM Servo install

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Raceman17
Posts: 137
Joined: Tue Mar 03, 2020 8:48 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: New DMM Servo install

Post 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?


slodat
Posts: 793
Joined: Thu Apr 12, 2018 11:16 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: New DMM Servo install

Post by slodat »

You can parallel up the ZRI inputs.


slodat
Posts: 793
Joined: Thu Apr 12, 2018 11:16 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: New DMM Servo install

Post 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.


martyscncgarage
Posts: 9932
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: New DMM Servo install

Post 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?
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ


slodat
Posts: 793
Joined: Thu Apr 12, 2018 11:16 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: New DMM Servo install

Post 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


cncsnw
Posts: 4096
Joined: Wed Mar 24, 2010 5:48 pm

Re: New DMM Servo install

Post 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.


Raceman17
Posts: 137
Joined: Tue Mar 03, 2020 8:48 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: New DMM Servo install

Post 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.


Raceman17
Posts: 137
Joined: Tue Mar 03, 2020 8:48 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: New DMM Servo install

Post 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?


Raceman17
Posts: 137
Joined: Tue Mar 03, 2020 8:48 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: New DMM Servo install

Post 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


slodat
Posts: 793
Joined: Thu Apr 12, 2018 11:16 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: New DMM Servo install

Post by slodat »

The "P" in those commands is the input number.


Post Reply