Page 1 of 3
ATC Spindle Proximity Switches
Posted: Wed Nov 06, 2019 6:30 pm
by cbb1962
I have gotten far enough with my build to do some testing around the ATC. My machine has a simple linear rack mount. During my testing, I discovered that I am not getting any input from the "tool present proximity switch" or the "clamp/unclamp proximity switch" both of these switches are inside the spindle. The switches are 24VDC.
The spindle is a 6HP Chinese water-cooled ATC BT30 Spindle. It is a model number SDS110-30-24Z-4.5 I can't find a manual anywhere but these spindles are still for sale through Alibaba.
I may not understand what these sensors are supposed to do, but I should see something - either when I insert a tool or eject one. I don't show anything in the I/O screen for these inputs in Acorn.
Does anyone have any recommendations - other than buying a new spindle?
Re: ATC Spindle Proximity Switches
Posted: Wed Nov 06, 2019 9:52 pm
by martyscncgarage
Probably not an NPN proximity sensor. Is it a proximity switch or a hall effect sensor? (Need a magnet to trip it)
You can't see the signal state change in the diagnostic scren? Alt+i
Is there an LED on the sensor that changes state?
Re: ATC Spindle Proximity Switches
Posted: Thu Nov 07, 2019 8:37 am
by cbb1962
martyscncgarage wrote: ↑Wed Nov 06, 2019 9:52 pm
Probably not an NPN proximity sensor. Is it a proximity switch or a hall effect sensor? (Need a magnet to trip it)
Is there a way to tell what type of sensor it is? I don't have any documentation on the spindle. I have it wired: Blue to 0VDC, Brown to +24VDC, Black to Acorn.
martyscncgarage wrote: ↑Wed Nov 06, 2019 9:52 pm
You can't see the signal state change in the diagnostic screen? Alt+i
Is there an LED on the sensor that changes state?
No change of state in Alt +i, I haven't seen any type of LED, I don't even know where the sensor is. I assume it is inside the spindle.
Re: ATC Spindle Proximity Switches
Posted: Thu Nov 07, 2019 9:23 am
by HoY
Its nearly the same spindle as I have, except it looks like they put a different label on it. give it the 24v it needs, and test the output with a meter. signal line should be neutral. Mine worked with my Ethernet smooth stepper setup because it used NPN, but the acorn sends +24v out from its inputs (PNP).
Re: ATC Spindle Proximity Switches
Posted: Thu Nov 07, 2019 9:30 am
by martyscncgarage
HoY wrote: ↑Thu Nov 07, 2019 9:23 am
Its nearly the same spindle as I have, except it looks like they put a different label on it. give it the 24v it needs, and test the output with a meter. signal line should be neutral. Mine worked with my Ethernet smooth stepper setup because it used NPN, but the acorn sends +24v out from its inputs (PNP).
If the sensor SENDS voltage when its activated it is PNP (Think P=Positive)
If the sensor GROUNDS when it is activated it is NPN (Think N=Negative)
Acorn needs to have its input sunk to ground. So you need NPN
My hunch is that his sensor is PNP (Providing 24VDC on the black wire when actuated) that won't work.
He could convert it using one of the opto isolated relay boards. They sell them 2 channel and 4 channel
https://www.amazon.com/dp/B00LW2G7V6/re ... XDbYPXVGFD
Re: ATC Spindle Proximity Switches
Posted: Thu Nov 07, 2019 9:31 am
by martyscncgarage
Put a meter on the black wire (red probe) and blue wire (black probe) with 24VDC supplying power to the switch, what do you read?
Can you actuate the sensor (clamp/unclamp) the drawbar?
My guess is when actuated, the sensor provides 24VDC which will not work with Acorn's inputs
Did you not get documentation with the spindle?
Re: ATC Spindle Proximity Switches
Posted: Thu Nov 07, 2019 10:07 am
by cbb1962
I will test later today. This info is what I was looking for!
Re: ATC Spindle Proximity Switches
Posted: Thu Nov 07, 2019 3:26 pm
by cbb1962
I had a 2-channel board and was able to get it configured and have signals coming into Acorn now!
Thanks!
Now for my next snag, more testing. When my M6 macro calls the M15 macro it unclamps the tool as expected:
Code: Select all
;------------------------------------------------------------------------------
; Filename: mfunc15.mac
; Description: Tool unclamp macro
; Notes:
; Requires:
;
; Inputs:
; ToolIsUnclamped IS INP5
;
; Outputs:
; ToolUnclamp IS OUT6
;------------------------------------------------------------------------------
IF #50010 ;Prevent lookahead from parsing past here
IF #4201 || #4202 THEN GOTO 1000 ;Skip macro if graphing or searching
N100 ;Insert your code between N100 and N1000
M94 /15 ;Turn on ToolUnclamp request
IF (#9402 != 0) THEN GOTO 200
G4 P3 ;Wait 3 seconds
GOTO 1000
N200
M101 /70012 ;Wait until tool is unclamped
N1000 ;End of Macro
When it calls the M16 it doesn't do anything:
Code: Select all
;------------------------------------------------------------------------------
; Filename: mfunc16.mac
; Description: Tool clamp macro
; Notes:
; Requires:
;
; Outputs:
; ToolUnclamp IS OUT6
;------------------------------------------------------------------------------
IF #50010 ;Prevent lookahead from parsing past here
IF #4201 || #4202 THEN GOTO 1000 ;Skip macro if graphing or searching
N100 ;Insert your code between N100 and N1000
M95 /15 ;Turn on ToolUnclamp request
N1000 ;End of Macro
If I run an MDI command M94/15 it unclamps the tool and I can see this in the alt+i screen.
If I run M95/15 I see nothing in the alt+i.
What am I missing?
Re: ATC Spindle Proximity Switches
Posted: Thu Nov 07, 2019 3:29 pm
by martyscncgarage
Awesome Clint.
this is a router with linear rack mounted tools?
Sorry, Macros and PLC are my weak point.
Can you take a picture of the machine and the ATC and post for reference here? And how you expect the M6 macro to work?
Maybe Marc or Tom can lend a hand if not one of the boys from Centroid.
Marty
Re: ATC Spindle Proximity Switches
Posted: Thu Nov 07, 2019 3:30 pm
by tblough
What's your PLC code for SV_M94_M95_15?