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..
Re: getting the 57cnc to work with G540
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 Thu Feb 25, 2016 4:34 am, edited 1 time in total.
Re: getting the 57cnc to work with G540
Hi Dan:
Its as if the power supply your feeding ht epokeys with cant handle the current of turn on/off ( it should be able to pull the
5volts to 0, not just down to 2.5. Is your power supply for the polkeys more than 1Amp capable?
OK,in Auggie:
Auggie will fail to tun any program with an M3 if the spindle isnt setup script wise. You need only two libraries on really..
The Gcode library , and a spindle library. Firs, enable the Gcode library, and the Spindle-Relay library. No other spindle
lib, only one must be enabled.
Now, go to the config menu up top, and check the "Debug Log", this enables more messages..
Now, in the Single Line MDi, enter M3, set your line to that and hit run. You should see the following message in the log
" Setting Spindle with 1 " , if so , the Gcode library is on.
You should then see "Relay Spindle was turned on with OC1" , which is how the relay spindle
is set up. It uses OC1 to turn on or off the spindle. Check first that you get those messages.
Next, for your SuperPID on pin 45, youll change the scripts as below, but not till you verify
the messages above..
global SpindleOn = function()
{
//SpindleDevice.SetOC( MySpindleOutput, 1); //turn on spindle
//you want pin 45 to be digital on or off, sounds like 0 is on, so..
Motion.SetPinDig(45,0);
print("Relay Spindle was turned on with pin 45 = 0");
};
//this is a relay spindle control,
//it will use only the OC output #1
//to control a relay to turn a simple
//on/off spindle, on or off.
global SpindleOff = function()
{
//SpindleDevice.SetOC( MySpindleOutput, 0); //turn on spindle
Motion.SetPinDig(45,1);
print("Relay Spindle was turned off");
print("using pin45 ");
};
Speed is just as easy, but lets see how you make out with off or on.
The fact your on pin only goes to 2.5 volts or 3.5 from 5, may mean you need a pulldown
resistor in that circuit. Ill release a new version shortly to ensure all your script bugs are gone,
but this proceedure will work if the messages are in your log as above. All we need to know is that
the proper libraries are being called. The log tells you that from the print statements in the scripts.
Let me know how far its getting..
Using M3 and M5 in the single MDI is a good fast way to test, no need to run files till
you know its working..
Art
Art
Its as if the power supply your feeding ht epokeys with cant handle the current of turn on/off ( it should be able to pull the
5volts to 0, not just down to 2.5. Is your power supply for the polkeys more than 1Amp capable?
OK,in Auggie:
Auggie will fail to tun any program with an M3 if the spindle isnt setup script wise. You need only two libraries on really..
The Gcode library , and a spindle library. Firs, enable the Gcode library, and the Spindle-Relay library. No other spindle
lib, only one must be enabled.
Now, go to the config menu up top, and check the "Debug Log", this enables more messages..
Now, in the Single Line MDi, enter M3, set your line to that and hit run. You should see the following message in the log
" Setting Spindle with 1 " , if so , the Gcode library is on.
You should then see "Relay Spindle was turned on with OC1" , which is how the relay spindle
is set up. It uses OC1 to turn on or off the spindle. Check first that you get those messages.
Next, for your SuperPID on pin 45, youll change the scripts as below, but not till you verify
the messages above..
global SpindleOn = function()
{
//SpindleDevice.SetOC( MySpindleOutput, 1); //turn on spindle
//you want pin 45 to be digital on or off, sounds like 0 is on, so..
Motion.SetPinDig(45,0);
print("Relay Spindle was turned on with pin 45 = 0");
};
//this is a relay spindle control,
//it will use only the OC output #1
//to control a relay to turn a simple
//on/off spindle, on or off.
global SpindleOff = function()
{
//SpindleDevice.SetOC( MySpindleOutput, 0); //turn on spindle
Motion.SetPinDig(45,1);
print("Relay Spindle was turned off");
print("using pin45 ");
};
Speed is just as easy, but lets see how you make out with off or on.
The fact your on pin only goes to 2.5 volts or 3.5 from 5, may mean you need a pulldown
resistor in that circuit. Ill release a new version shortly to ensure all your script bugs are gone,
but this proceedure will work if the messages are in your log as above. All we need to know is that
the proper libraries are being called. The log tells you that from the print statements in the scripts.
Let me know how far its getting..
Using M3 and M5 in the single MDI is a good fast way to test, no need to run files till
you know its working..
Art
Art
Re: getting the 57cnc to work with G540
cool thank's art I was playing with different code combo's last night, when you cut and past it make's a mess of the pasted code it needs a fix or re written.
the spindle not working with the Ethernet is a pokeys problem, if it don't work in pokeys it wont work in Auggie.
I was going to ask about the relay as on off as it works with your laser panel.
I am still have fun with it, it's a good new challenge for me to learn coding in monkey.
for the PWM will it be like what glen did.
the spindle not working with the Ethernet is a pokeys problem, if it don't work in pokeys it wont work in Auggie.
I was going to ask about the relay as on off as it works with your laser panel.
I am still have fun with it, it's a good new challenge for me to learn coding in monkey.
for the PWM will it be like what glen did.
Re: getting the 57cnc to work with G540
this does come up
Setting Spindle with 1
Relay Spindle was turned on with OC1
in pokeys I am getting 5.23 off 0 on. PWM is working, inverting pin 45 does nothing.
In Auggie it just stays at 3.23 no change what ever I do. M3 or M5 the wiring is good
one thing is IO online under config meant to be ticked or not, if I tick it then look again it's un ticked
Setting Spindle with 1
Relay Spindle was turned on with OC1
in pokeys I am getting 5.23 off 0 on. PWM is working, inverting pin 45 does nothing.
In Auggie it just stays at 3.23 no change what ever I do. M3 or M5 the wiring is good
one thing is IO online under config meant to be ticked or not, if I tick it then look again it's un ticked
Re: getting the 57cnc to work with G540
Dan:
SO the scripts are getting called, and the OC1 relay is begin commanded. ( OC1 turns on my laser supply..)
You need to change that script to set pin 45 to on or off.. You need to put a
SpindleDevice.SetPinDig( 45, 1);
Where I put the line
SpindleDevice.SetOC( MySpindleOutput, 1); //turn on spindle
and you need to put
SpindleDevice.SetPinDig( 45, 0);
Where I put the line
SpindleDevice.SetOC( MySpindleOutput, 0); //turn on spindle
That way, instead of the OC1 relay toggling as in my system, your pin 45 will toggle ..
Art
SO the scripts are getting called, and the OC1 relay is begin commanded. ( OC1 turns on my laser supply..)
You need to change that script to set pin 45 to on or off.. You need to put a
SpindleDevice.SetPinDig( 45, 1);
Where I put the line
SpindleDevice.SetOC( MySpindleOutput, 1); //turn on spindle
and you need to put
SpindleDevice.SetPinDig( 45, 0);
Where I put the line
SpindleDevice.SetOC( MySpindleOutput, 0); //turn on spindle
That way, instead of the OC1 relay toggling as in my system, your pin 45 will toggle ..
Art
Re: getting the 57cnc to work with G540
that makes senses fuck I am a noob ;D ;D ;D
