Dan:
Does it say in the log and on the toolpath screen
"Spindle was Turned on"
and
"Spindle was turned off" ??
Lets go from there...
Art
Re: getting the 57cnc to work with G540
-
ArtF
- Global Moderator

- Posts: 4557
- Joined: Sun Sep 05, 2010 5:14 pm
- Contact:
-
ArtF
- Global Moderator

- Posts: 4557
- Joined: Sun Sep 05, 2010 5:14 pm
- Contact:
Re: getting the 57cnc to work with G540
Dan:
The Docs for the SuperPID seem to show it needs an opencollector drain to turn it on ..
Pin 45 may not be suitable. Id use either the relay.. OR OC1, just as the default spindle was set up for.
Youd connect your RUN wire from the super PID just to OC1 on the board. This also means youd see the LED to show
if its on or off...
Art
The Docs for the SuperPID seem to show it needs an opencollector drain to turn it on ..
Pin 45 may not be suitable. Id use either the relay.. OR OC1, just as the default spindle was set up for.
Youd connect your RUN wire from the super PID just to OC1 on the board. This also means youd see the LED to show
if its on or off...
Art
-
DanL
- Site Admin
- Posts: 357
- Joined: Thu Sep 11, 2014 12:35 am
Re: getting the 57cnc to work with G540
OK I will try that
-
DanL
- Site Admin
- Posts: 357
- Joined: Thu Sep 11, 2014 12:35 am
Re: getting the 57cnc to work with G540
it worked
-
DanL
- Site Admin
- Posts: 357
- Joined: Thu Sep 11, 2014 12:35 am
Re: getting the 57cnc to work with G540
it turn's on or off, but run's at full noise.
now for the pwm control on pin 20 pwm 2 do I put the changes into the Library MotionIO at the bottom it has Pokeys1.SetPWM( channel, duty); so channel will be 2 duty not sure.
and Pokeys1.SetPWM( period ); period would be 20ms
I got 20 from the pokeys config if I set 20ms in the pwm bit it has that it is 50.00 Hz
I will try this anyway and take a guess at what duty should be
now for the pwm control on pin 20 pwm 2 do I put the changes into the Library MotionIO at the bottom it has Pokeys1.SetPWM( channel, duty); so channel will be 2 duty not sure.
and Pokeys1.SetPWM( period ); period would be 20ms
I got 20 from the pokeys config if I set 20ms in the pwm bit it has that it is 50.00 Hz
I will try this anyway and take a guess at what duty should be
Last edited by DanL on Sat Feb 27, 2016 10:25 pm, edited 1 time in total.
-
DanL
- Site Admin
- Posts: 357
- Joined: Thu Sep 11, 2014 12:35 am
Re: getting the 57cnc to work with G540
So i did do the changes the pwm
also the pwm just stays at 5.02 vdc, with the spindle on or off, on oc1. I have read through all post's looking for where to set the pwm. I am a bit lost I will play more to see if I can find what to set, but I need help.
also the pwm just stays at 5.02 vdc, with the spindle on or off, on oc1. I have read through all post's looking for where to set the pwm. I am a bit lost I will play more to see if I can find what to set, but I need help.
-
GlennD
- Site Admin
- Posts: 80
- Joined: Wed Oct 19, 2011 3:19 am
Re: getting the 57cnc to work with G540
Dan
After looking at the Super PID stuff you are going to need to follow several of the post I was working on.
You need to set up the circuit detailed here
That is where I got the schematic from.
You will also need to map the spindle speed to the PWM value not sure if Art has anything in place yet for that.
Click on the quote link for help with that
Glenn
After looking at the Super PID stuff you are going to need to follow several of the post I was working on.
You need to set up the circuit detailed here
You can read up on the circuit hereGlennD wrote:
That is where I got the schematic from.
You will also need to map the spindle speed to the PWM value not sure if Art has anything in place yet for that.
Click on the quote link for help with that
I have been away for a few weeks trying to catch up now so please forgive me if this is covered some where else.GlennD wrote:
Glenn
-
DanL
- Site Admin
- Posts: 357
- Joined: Thu Sep 11, 2014 12:35 am
Re: getting the 57cnc to work with G540
I fixed the PWM being at 5vdc it was the - from OC1 I put it to common and that came good pwm is now working in pokeys.
spindle on/off works.
I will have a look at your stuff again, at a guess I would add it to the library where the spindle control is, or does it need it's own Library. I will just play and see how I get on.
making these mistakes and you boys just pointing and hinting, and Art or anyone giving the idea of how to do it is good
spindle on/off works.
I will have a look at your stuff again, at a guess I would add it to the library where the spindle control is, or does it need it's own Library. I will just play and see how I get on.
making these mistakes and you boys just pointing and hinting, and Art or anyone giving the idea of how to do it is good
-
GlennD
- Site Admin
- Posts: 80
- Joined: Wed Oct 19, 2011 3:19 am
Re: getting the 57cnc to work with G540
Can you post a rough sketch of what you did?
I am very interested in that.
Glenn
I am very interested in that.
Glenn
-
DanL
- Site Admin
- Posts: 357
- Joined: Thu Sep 11, 2014 12:35 am
Re: getting the 57cnc to work with G540
I take a pic I have a HD camera