Hello Guest it is May 11, 2021, 08:57:28 PM

Author Topic: PART CNC PART MECHANICAL  (Read 22537 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: PART CNC PART MECHANICAL
« Reply #50 on: May 17, 2012, 02:51:38 PM »
Will have a look at the xml in a few but when you say "I start my spindle through the mechanical lever (so old fasioned)" I presume that is outwith Mach so are you telling Mach the spindle has started by having a M3 in the code or pressing the spindle button? If not then no spindle speed will be seen and threading wont work as Mach needs to be told to look for the spindle speed.
Hood

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: PART CNC PART MECHANICAL
« Reply #51 on: May 17, 2012, 03:01:04 PM »
Ok first thing is Ports and Pins, Motor Outputs, you have Spindle set to Pin 10 for step, you cant have that as it is an input pin and I think you control the spindle on/off manually anyway so just disable spindle all together on that page if that is the case. Next on your outputs page you have Output 2 set to Pin 10, you cant have that as previously mentioned it is an input pin, just place 0 in that box instead, same goes for Outut 1, you can just enter 0 for that as well as I dont think you are using it.
See how you go with changing these settings and also remember to tell Mach the spindle has started (M3 in code or press Spindle button) and hopefully you will see a spindle speed and threading will work

Hood
Re: PART CNC PART MECHANICAL
« Reply #52 on: May 17, 2012, 03:58:15 PM »
Hood
Redone ports and pins.
As you can see from my screenshot there is an m03 in the code and I have manually started the spindle  The s true box shows a build up of revs and the dwell active red light is on. Then it drops to zero and the dwell active light goes off and the yellow bar appears.
The same happens with no programm and just pressing spindle start.
Latest xml attached as well.
Graham
« Last Edit: May 17, 2012, 04:01:14 PM by GRAYHIL »

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: PART CNC PART MECHANICAL
« Reply #53 on: May 17, 2012, 04:00:58 PM »
Config menu then General Config and over to the right at the top you will see Index Debounce, its at 100 so is unlikely to work, set it to 0 and see.
Hood
Re: PART CNC PART MECHANICAL
« Reply #54 on: May 17, 2012, 04:07:56 PM »
Hood
Debounce set at zero, no change to symptons,
Graham

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: PART CNC PART MECHANICAL
« Reply #55 on: May 17, 2012, 04:28:16 PM »
Ok then it would seem your index signal is not getting to Mach. A scope would soon let you know if its working but I would imagine you dont have one. I am thinking a volt meter should work though if you have one. If you connect the meter between the input and the Gnd terminal and move the spindle so the slot is in the sensor you should see 5v I would think.
If you can do that and see and we can take it from there.
Hood
Re: PART CNC PART MECHANICAL
« Reply #56 on: May 17, 2012, 04:48:44 PM »
Hood
4.98 volt at supply side to sensor cell.
4.43 volt on output side when slot is opposite cell and when it is rotated away.
Graham

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: PART CNC PART MECHANICAL
« Reply #57 on: May 17, 2012, 04:51:19 PM »
Cant see how you would get an output when its blanked but then again I am no electronics expert so maybe. Dont think I have one here to test but should have one at the workshop. Can you unhook the connector from the BOB and see if its the same on the signal pin, may be the Bob that is supplying the voltage.
Hood
Re: PART CNC PART MECHANICAL
« Reply #58 on: May 17, 2012, 05:15:56 PM »
Hood
Just the same.
Will take a photo of connections etc and post later

Graham

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: PART CNC PART MECHANICAL
« Reply #59 on: May 17, 2012, 05:53:50 PM »
Ok will try and remember to look for an opto to test at the workshop tomorrow. I think I should still have one there anyway, dont use them now as I use the encoders on the spindle motors but I never throw anything away ;D
Hood