Re: getting the 57cnc to work with G540
Re: getting the 57cnc to work with G540
thanks art the V1.2 is meant to be pin for pin, I stuck to what the pokeys is set to on the 32 pin but it just would not work it maybe something in Auggie, when I still had all the limits and home wired into the G540 M3 picked them up and they all got set by the pokeys, plus the pin 17 and 14 (20 on pokeys).
Its no problem rely it just means a lot of wires going all over the show, When and if the problem get sorted it wont be hard to stick them back into the G540.
I just need to get of my arise and do some coding.
Its no problem rely it just means a lot of wires going all over the show, When and if the problem get sorted it wont be hard to stick them back into the G540.
I just need to get of my arise and do some coding.
Re: getting the 57cnc to work with G540
Hi art I am still not able to get the spindle to run, I have been trying to do it in M3 as well, I have asked the pokeys people about it i have not had a reply yet, it is wired correctly between the G540 and the superpid and the pins are set, the only thing I can think of is that on the pokeys config the pin's 17, 20, 21, 22 are red.
pin 14 on the DB25 from the G540 (VFD PWM) is pin 20 on the 57CNC whats a PWM output.
I am stumped to what to do
pin 14 on the DB25 from the G540 (VFD PWM) is pin 20 on the 57CNC whats a PWM output.
I am stumped to what to do
Re: getting the 57cnc to work with G540
Hi Dan:
Lets back this up just a bit.. and figure out how to get it running..
The SuperPID needs two things to operate, it has to have 5 volts on its RUN input, and a PWM at 50hz to control its
speed.
So , lets use the Pokeys software first to make it run. Then , get Auggie to duplicate what it takes..
So, couple things first, ( I'll be overly verbose as others will probably read this thread in future and may
want to duplicate what your doing..
kk, so when you hook SuperPID to the Gecko, ( or any device) it requires a RUN signal and a PWM thats 50hz.
Your hooking it to the CNC57, so its not as easy as a 56 where I could just specify to you the pins to use..
First, we need a RUN signal, so lets verify that first. What signal did you hook to the G540
on pin 17 or 1? One of those pins I assume is hooked to the G540 RUN signal. Which G540 pin did you use?
There are a lot of possibilities..
The PWM on Pin 14 on the G540 needs 50Hz PWM.. so we need to also know what pin you used on the CNC57
to hook to that..
Take note here, Dan, you cannot just plug a 25 pin ribbon in the TestIO plug, while x,y,z may match the G540 ,
the rest of the pins do not, the PWM for example is on pin 20 of that connector and woudl be grounded by convention.
So, I need to know exactly how your connecting.. My advice would be from the TestIO plug as follows..
TestIOplug-Pin G540Pin
(2 - 9) -------------- (2 - 9)
14 ------------- 14 // PWM control from 57 to G540
// and now we need RUN. The TestIO connector has only 2 outputs, pin1 ( labeled Xaxis Enable)
and pin 16, which is connected to pin 45 on the pokeys chip. Lets assume you kill
the charge pump input by switch on the G540, ( You only need charge pumps with a printer port..),
so you need to hook up a signmal for spindle ON to the G540 on pin 17, so best to use pin 16
on the Pokeys plug test IO... so that makes it..
TestIOplug-Pin G540Pin
(2 - 9) -------------- (2 - 9)
14 ------------- 14 // PWM control from 57 to G540
16 ------------- 17 //note this is the only one thats isnt pin for pin , youd need to make sure this wire
//is swapped.
So, ios this how its hooked up? If so, try it, TO get the PWM to test, lets do it in Pokeys software first.
Pin 16 of the TestIO plug is actually Pokeys Pin 45 and the PWM pin 14 is actually the PWM from pin20 of the
Pokeys. So all we need to do then is run the Pokeys config software, turn on pin 45 as digitial ouptut for RUN..
and set PWM in the perifierals dialog for PWM setting, to the speed we want on PWM channel(2), which is actually
pin 20 on the pokeys chip, pin 14 on the testIO connector and pin14 on your db25.
Can you confirm thats what we're looking at as far as wiring? You need to set 50hz as the PWM signal strength
but with hose connections and the Pokeys software all should work fine. Let me know how this matches up so far..
Thx, good luck
Art
Lets back this up just a bit.. and figure out how to get it running..
The SuperPID needs two things to operate, it has to have 5 volts on its RUN input, and a PWM at 50hz to control its
speed.
So , lets use the Pokeys software first to make it run. Then , get Auggie to duplicate what it takes..
So, couple things first, ( I'll be overly verbose as others will probably read this thread in future and may
want to duplicate what your doing..
kk, so when you hook SuperPID to the Gecko, ( or any device) it requires a RUN signal and a PWM thats 50hz.
Your hooking it to the CNC57, so its not as easy as a 56 where I could just specify to you the pins to use..
First, we need a RUN signal, so lets verify that first. What signal did you hook to the G540
on pin 17 or 1? One of those pins I assume is hooked to the G540 RUN signal. Which G540 pin did you use?
There are a lot of possibilities..
The PWM on Pin 14 on the G540 needs 50Hz PWM.. so we need to also know what pin you used on the CNC57
to hook to that..
Take note here, Dan, you cannot just plug a 25 pin ribbon in the TestIO plug, while x,y,z may match the G540 ,
the rest of the pins do not, the PWM for example is on pin 20 of that connector and woudl be grounded by convention.
So, I need to know exactly how your connecting.. My advice would be from the TestIO plug as follows..
TestIOplug-Pin G540Pin
(2 - 9) -------------- (2 - 9)
14 ------------- 14 // PWM control from 57 to G540
// and now we need RUN. The TestIO connector has only 2 outputs, pin1 ( labeled Xaxis Enable)
and pin 16, which is connected to pin 45 on the pokeys chip. Lets assume you kill
the charge pump input by switch on the G540, ( You only need charge pumps with a printer port..),
so you need to hook up a signmal for spindle ON to the G540 on pin 17, so best to use pin 16
on the Pokeys plug test IO... so that makes it..
TestIOplug-Pin G540Pin
(2 - 9) -------------- (2 - 9)
14 ------------- 14 // PWM control from 57 to G540
16 ------------- 17 //note this is the only one thats isnt pin for pin , youd need to make sure this wire
//is swapped.
So, ios this how its hooked up? If so, try it, TO get the PWM to test, lets do it in Pokeys software first.
Pin 16 of the TestIO plug is actually Pokeys Pin 45 and the PWM pin 14 is actually the PWM from pin20 of the
Pokeys. So all we need to do then is run the Pokeys config software, turn on pin 45 as digitial ouptut for RUN..
and set PWM in the perifierals dialog for PWM setting, to the speed we want on PWM channel(2), which is actually
pin 20 on the pokeys chip, pin 14 on the testIO connector and pin14 on your db25.
Can you confirm thats what we're looking at as far as wiring? You need to set 50hz as the PWM signal strength
but with hose connections and the Pokeys software all should work fine. Let me know how this matches up so far..
Thx, good luck
Art
Re: getting the 57cnc to work with G540
Hi art there is a few ways to wire the superpid, I think I have a way to do it.
I don't think the G540 can do what is needed at all the output pins 1 and 2 in the 57CNC DB25 are different to the G540 one's pin 14 is the only pin that line's up I will have to just try the other 3 different ways to do it.
pin 14 was doing what it was meant to do fault the superpid so it was getting the machine ok not ok signal, just not the PWM signal. I will post back soon after I have moved the wires
I don't think the G540 can do what is needed at all the output pins 1 and 2 in the 57CNC DB25 are different to the G540 one's pin 14 is the only pin that line's up I will have to just try the other 3 different ways to do it.
pin 14 was doing what it was meant to do fault the superpid so it was getting the machine ok not ok signal, just not the PWM signal. I will post back soon after I have moved the wires
Re: getting the 57cnc to work with G540
Hi Guys;
Good News...
The problem with stutter on my motors using Auggie is finally gone. For weeks now I've been trying to isolate where this problem came from, I switched controllers, installed new shielded cables, added grounds, tried various pokeys, added pull up resistors, even tried IC's to shape the pulses, however nothing I did worked. The symptoms were everything worked fine using Pokey software, however Auggie introduced a stutter on my motors while moving. Since then, Mat from Pokey provided me with test code to test my connections, results showed a somewhat slower response than what I saw on Art's system, so then Art did his magic and added a solution in Auggie to fix this. Long story short, I believe the fix has to do with setting speeds on your network, but maybe best if I let Art fill in the details with this one, all I know it fixed my stuttering motors. Solution is found in the Dev version of Gearotic, then in Auggie, go to Configuration/ Engine Config/ , select the down tab, here click Engine /Planner Config and change your network delay to "0" from the default of "1". Worked for me...
Anyhow thanks to all of you for your input, but a special thanks goes to Art for his dedication to get this one fixed. I do suggest from my tests however that you use a fast enough computer with Auggie, lots going on with this guy, and my 1.6Ghz processor is about the slowest I'd go?
Cheers
Bob
:D
Good News...
The problem with stutter on my motors using Auggie is finally gone. For weeks now I've been trying to isolate where this problem came from, I switched controllers, installed new shielded cables, added grounds, tried various pokeys, added pull up resistors, even tried IC's to shape the pulses, however nothing I did worked. The symptoms were everything worked fine using Pokey software, however Auggie introduced a stutter on my motors while moving. Since then, Mat from Pokey provided me with test code to test my connections, results showed a somewhat slower response than what I saw on Art's system, so then Art did his magic and added a solution in Auggie to fix this. Long story short, I believe the fix has to do with setting speeds on your network, but maybe best if I let Art fill in the details with this one, all I know it fixed my stuttering motors. Solution is found in the Dev version of Gearotic, then in Auggie, go to Configuration/ Engine Config/ , select the down tab, here click Engine /Planner Config and change your network delay to "0" from the default of "1". Worked for me...
Anyhow thanks to all of you for your input, but a special thanks goes to Art for his dedication to get this one fixed. I do suggest from my tests however that you use a fast enough computer with Auggie, lots going on with this guy, and my 1.6Ghz processor is about the slowest I'd go?
Cheers
Bob
:D
Last edited by ArtF on Thu Feb 18, 2016 9:40 am, edited 1 time in total.
Gearotic Motion
Bob
Bob
Re: getting the 57cnc to work with G540
thanks bob I will try that soon. art I am going try to run it like whats on page 24 in the superpid manual it will be connected to pin 14 and 17 on the 57cnc
Re: getting the 57cnc to work with G540
it's still not correct the spindle turns on and off with the stop button or emergency in pokeys. no on/off control at all.
I can change the speed with the pokeys PWM dialog.
the spindle runs at 5000 rpm just sitting there.
changeling pin 45 to high or low does nothing at all turning it of does nothing at all.
the only other way I can see to do it would be to put the output on one of the ADC pin's, pin 45
and the pwm on pin 17 or pin 20 in the encoder plug
just not use the G540 for spindle control at all.
I can change the speed with the pokeys PWM dialog.
the spindle runs at 5000 rpm just sitting there.
changeling pin 45 to high or low does nothing at all turning it of does nothing at all.
the only other way I can see to do it would be to put the output on one of the ADC pin's, pin 45
and the pwm on pin 17 or pin 20 in the encoder plug
just not use the G540 for spindle control at all.
Re: getting the 57cnc to work with G540
Dan:
>>t's still not correct the spindle turns on and off with the stop button or emergency in pokeys. no on/of
But wait, if Estop is stopping it, what signal is the one making it go off and on?
Art
>>t's still not correct the spindle turns on and off with the stop button or emergency in pokeys. no on/of
But wait, if Estop is stopping it, what signal is the one making it go off and on?
Art
Re: getting the 57cnc to work with G540
god only knows having it in the pin 45 on the ADC connection does fa I can turn 45 off and the spindle turns off turn it on and the spindle runs.
on the G540 all I can do is change the speed in pokeys
I tried it on pin 17 on the 57cnc did nothing.
I have wired it in all the different way the superpid can be
I am going to try pin 20 on the 57cnc.
going by the superpid manual all I need is a pwm (pin20) and a output for off and on(pin 45), or a 0 to 10 vdc plus output for off and on(pin45).
I may have to ask on cnczone to see if anyone has got a superpid working with a 57cnc and a G540.
any mad ideas i will try
on the G540 all I can do is change the speed in pokeys
I tried it on pin 17 on the 57cnc did nothing.
I have wired it in all the different way the superpid can be
I am going to try pin 20 on the 57cnc.
going by the superpid manual all I need is a pwm (pin20) and a output for off and on(pin 45), or a 0 to 10 vdc plus output for off and on(pin45).
I may have to ask on cnczone to see if anyone has got a superpid working with a 57cnc and a G540.
any mad ideas i will try
Last edited by DanL on Fri Feb 19, 2016 3:23 pm, edited 1 time in total.
Re: getting the 57cnc to work with G540
taking pin 45 from the 57CNC gives me on and off if I turn the pin on and off. (is this normal inverting the pin does nothing)
taking pin 20 from the 57CNC gives me speed control only have it in pot for now, it should work in the PWM on the superpid.
above is in pokeys config
I have it working in M3 only turning on and off
taking pin 20 from the 57CNC gives me speed control only have it in pot for now, it should work in the PWM on the superpid.
above is in pokeys config
I have it working in M3 only turning on and off
Last edited by DanL on Fri Feb 19, 2016 8:58 pm, edited 1 time in total.
Re: getting the 57cnc to work with G540
Dan:
Well, in fact either pin "could" turn it off or any as a matter of sending speed
command if the on/off is floating high, OR sending a on/off if the speed is floating high..
So if Pin20 is PWM#2, so to use the speed youll need to modify Auggies spindle scripts
to use PWM#2 instead of PWM4 which I typically use. And that should be tied to the Speed
of spindle ... Pin 45 sounds good as an ON/OFF control, but I think its 5v digital logic, or can
be used as an analogue input..
Well, in fact either pin "could" turn it off or any as a matter of sending speed
command if the on/off is floating high, OR sending a on/off if the speed is floating high..
So if Pin20 is PWM#2, so to use the speed youll need to modify Auggies spindle scripts
to use PWM#2 instead of PWM4 which I typically use. And that should be tied to the Speed
of spindle ... Pin 45 sounds good as an ON/OFF control, but I think its 5v digital logic, or can
be used as an analogue input..
Re: getting the 57cnc to work with G540
yer I worked out it just needs mapped to the correct command in M3, since I know it work's I will start playing with coding. pin 45 has digital input or output or analogue, the analogue does not light up it stays grayed out.
to Get the speed changing in M3 I just need to find the correct thing to map it to. this can be done another day.
what I have found so far with the 57CNC none of the outputs can be used with a G540, other than spindle pin 14, pin 20 on the 57CNC.
the inputs work with M3 not Auggie another day thing to sort.
it's all working other than the spindle so that's what I will work on and test the Ethernet.
to Get the speed changing in M3 I just need to find the correct thing to map it to. this can be done another day.
what I have found so far with the 57CNC none of the outputs can be used with a G540, other than spindle pin 14, pin 20 on the 57CNC.
the inputs work with M3 not Auggie another day thing to sort.
it's all working other than the spindle so that's what I will work on and test the Ethernet.
Re: getting the 57cnc to work with G540
Hi art quick note the machine is working fine connected to the Ethernet, I tried the delay set to 1 and 0 and both where fine
Re: getting the 57cnc to work with G540
Thx Dan.
Art
Art
Re: getting the 57cnc to work with G540
well I have found more problems fired the machine up today to set up the spindle it was a no go.
I had the Ethernet cable connected like I had last week when I was trying to get the spindle working it was.
now today the spindle would not start in pokeys at all, plunged the USB in as well as the Ethernet cable still no good, unplugged the Ethernet cable and in pokeys I can start the spindle and change speeds.
the PWM was working in all set up's no problem's there pin 20.
the on/off pin 45 with the Ethernet plugged in was ever 5.20 vdc off or it was 3.83 vdc on, inverting the pin no change.
on USB pin 45 5.2 vdc off, 2.86 VDC or 2.87m on, inverting the pin no change.
I added the code you suggested back on Page 1 for the spindle it was not working. can you post what I should have in the main script just in case it has change from what you first said, I also when't by the example in the library they both compiled.
I then tried to run some G code (road runner and AASubroutineTest) , nup no again I have all liburys on other than laser and rely. tried with all on as well.
the error that is coming up is failed to find spindle on or failed to find spindle off, with all on it was coming up with spindle signal not found using spindle relay.
with 1mmspiral it will run and move the axis's.
jogging works, homing works. just no spindle so far
or should I be doing what you put in Adding a spindle to auggie
I had the Ethernet cable connected like I had last week when I was trying to get the spindle working it was.
now today the spindle would not start in pokeys at all, plunged the USB in as well as the Ethernet cable still no good, unplugged the Ethernet cable and in pokeys I can start the spindle and change speeds.
the PWM was working in all set up's no problem's there pin 20.
the on/off pin 45 with the Ethernet plugged in was ever 5.20 vdc off or it was 3.83 vdc on, inverting the pin no change.
on USB pin 45 5.2 vdc off, 2.86 VDC or 2.87m on, inverting the pin no change.
I added the code you suggested back on Page 1 for the spindle it was not working. can you post what I should have in the main script just in case it has change from what you first said, I also when't by the example in the library they both compiled.
I then tried to run some G code (road runner and AASubroutineTest) , nup no again I have all liburys on other than laser and rely. tried with all on as well.
the error that is coming up is failed to find spindle on or failed to find spindle off, with all on it was coming up with spindle signal not found using spindle relay.
with 1mmspiral it will run and move the axis's.
jogging works, homing works. just no spindle so far
or should I be doing what you put in Adding a spindle to auggie
Last edited by DanL on Wed Feb 24, 2016 5:34 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 1 guest