Art
I'm Not 100% sure you understood what I said, or i'm not getting what you saying
6680 is what the reading was from the hand held dig tach so there is no feedback going to auggie seeing that auggie can't read an index or rpm value.
so I don't think there is any way for me or auggie to test for speed > 6680... and that will change with all M3 S setting..
I think seeing that the speed is close to double form what I set in auggie M3 S3500 and spindle is running at 6680..
then most likely just divide the duty in half...
But do you think this will help at the low RPM's I can't get the spindle to turn at all till I send at least S700 so I have to send enough voltage to start the spindle and that's seems to be around 700 RPM and I forget but somewhere over 1volts
Not sure if this is correct thinking. or its messed up in my mind
Tested again S2200 is reaching max close to max voltage if 5v is max.. and a rpm reading of spindle at 4700 and 4.95v
the lowest speed is S500 and its voltage is 1.2 and 60 Rpm so it seems it does need at least 1,2 volts to get the spindle moving..
Gary
reading Pokeys pins
Re: reading Pokeys pins
Last edited by gburk on Sun Aug 11, 2019 1:51 pm, edited 1 time in total.
Re: reading Pokeys pins
Art
Have Another script and panel for you to check out
Hoping the math is correct, its a start for auto calculating the motor steps per, for the entered distance and distance traveled and old steps..
Gary
Have Another script and panel for you to check out
Hoping the math is correct, its a start for auto calculating the motor steps per, for the entered distance and distance traveled and old steps..
Gary
You do not have the required permissions to view the files attached to this post.
Re: reading Pokeys pins
Hi Gary:
I'm leaving in a couple days for Alaska, and wont be back for a couple weeks, so Ill
check it out then.
As to Spindle Speeds.. What I was describing is what you do when a S word is called
for it terms of setting the duty cycle..Ill elucidate...
Here is what I have for your spindle speed setting script.. Ill display just
the lines that set the Spindle speed when it see's a S word in the Gcode.
global SpindleSpeed = function( speed )
....
....
zerotohundred = (speed / 25000) * 100;
SpindleDevice.SetPWM( 2, zerotohundred );
speed is whatever your Gcode called for S word..
It seems, like most of us you have a minimum speed..
so the easiest way to handle it is as in ..
zerotohundred = (speed / 25000) * 100;
SpindleDevice.SetPWM( 2, zerotohundred );
The above assumes your max speed is at S25000 which then
translates to 100.0 as a PWM setting, if you change 25000
to your actual max speed call this will then be accurate.
To check for a minimum you simple do this..
if( speed < 700 ) speed = 700;
zerotohundred = (speed / 25000) * 100;
if( zerotohundred > 100) zerotohundred = 100;
SpindleDevice.SetPWM( 2, zerotohundred );
So if the user enter S400, it will be translated to S700
If he enters S56780 , the duty cycle will only be set
to 100, so max speed.
SO the only number you need to figure out to make the above work
is the 25000 number, its probably more like 6000 for you. Just change the
25000 up or down until your upper S word is accurate. If the max your
spindle can do at 5 volts is 6680 RPM, just keep raising or lowering
25000 in the script until a call of S6680 is correct.
As you say, Auggie doesnt read the speed so its all a matter of simply
scaling the users Sword to the proper duty cycle as above.. The 700
can be adjusted to whatever minimum speed actually makes the
spindle turn close to that speed. This isnt unusual at all, most
spindle have no low end and are not very linear in control.
Art
I'm leaving in a couple days for Alaska, and wont be back for a couple weeks, so Ill
check it out then.
As to Spindle Speeds.. What I was describing is what you do when a S word is called
for it terms of setting the duty cycle..Ill elucidate...
Here is what I have for your spindle speed setting script.. Ill display just
the lines that set the Spindle speed when it see's a S word in the Gcode.
global SpindleSpeed = function( speed )
....
....
zerotohundred = (speed / 25000) * 100;
SpindleDevice.SetPWM( 2, zerotohundred );
speed is whatever your Gcode called for S word..
It seems, like most of us you have a minimum speed..
so the easiest way to handle it is as in ..
zerotohundred = (speed / 25000) * 100;
SpindleDevice.SetPWM( 2, zerotohundred );
The above assumes your max speed is at S25000 which then
translates to 100.0 as a PWM setting, if you change 25000
to your actual max speed call this will then be accurate.
To check for a minimum you simple do this..
if( speed < 700 ) speed = 700;
zerotohundred = (speed / 25000) * 100;
if( zerotohundred > 100) zerotohundred = 100;
SpindleDevice.SetPWM( 2, zerotohundred );
So if the user enter S400, it will be translated to S700
If he enters S56780 , the duty cycle will only be set
to 100, so max speed.
SO the only number you need to figure out to make the above work
is the 25000 number, its probably more like 6000 for you. Just change the
25000 up or down until your upper S word is accurate. If the max your
spindle can do at 5 volts is 6680 RPM, just keep raising or lowering
25000 in the script until a call of S6680 is correct.
As you say, Auggie doesnt read the speed so its all a matter of simply
scaling the users Sword to the proper duty cycle as above.. The 700
can be adjusted to whatever minimum speed actually makes the
spindle turn close to that speed. This isnt unusual at all, most
spindle have no low end and are not very linear in control.
Art
Re: reading Pokeys pins
Gary:
I should have mentioned, I updated Auggie for 10 times the script length as
a maximum. I still havent found that starting bug, but will search for it when
Im testing out your panels.
Art
I should have mentioned, I updated Auggie for 10 times the script length as
a maximum. I still havent found that starting bug, but will search for it when
Im testing out your panels.
Art
Re: reading Pokeys pins
Art
Thanks and have a great trip, I'm jealous I have always wanted to do the train ride up there.. maybe someday..
most likely will have plenty of stuff I messed up to bug you about on your return..
Thanks gary
Thanks and have a great trip, I'm jealous I have always wanted to do the train ride up there.. maybe someday..
most likely will have plenty of stuff I messed up to bug you about on your return..
Thanks gary
Re: reading Pokeys pins
Have a nice trip Art, and watch out for wild moose
Kirk
Kirk
Re: reading Pokeys pins
Art
Decided to give it a go in real life didn't go so good, the g code I am attaching doesn't seem to rewind, at first it was created with sheetcam..
I ran the g code many times but just testing and seemed ok, I don't think the problem is the g code.
Here's what is going on with it,
I run the g code it go's ok but when my dialog pops up for a tool change, looks ok now I jog the z up to change the tool jog down to the parts surface set z to 0 and use the single line window to sent the z back to 1 g0 z1 now I exit the tool change dialog to hit the run button and its seems the g code has re wound.
doe's this every time.
Not sure where the problem is maybe I can't exit the g code window to the single line window and back again to the g code window..
any thoughts on this ONE.
Thanks gary
Decided to give it a go in real life didn't go so good, the g code I am attaching doesn't seem to rewind, at first it was created with sheetcam..
I ran the g code many times but just testing and seemed ok, I don't think the problem is the g code.
Here's what is going on with it,
I run the g code it go's ok but when my dialog pops up for a tool change, looks ok now I jog the z up to change the tool jog down to the parts surface set z to 0 and use the single line window to sent the z back to 1 g0 z1 now I exit the tool change dialog to hit the run button and its seems the g code has re wound.
doe's this every time.
Not sure where the problem is maybe I can't exit the g code window to the single line window and back again to the g code window..
any thoughts on this ONE.
Thanks gary
You do not have the required permissions to view the files attached to this post.
Re: reading Pokeys pins
Gary;
I'm sure you already know Art is away on vacation, so I'm replying to say wish I could help with your code rewinding problem after a tool change, but this area of coding will definitely require Art's expertise when he gets back? I'll pass along the message when he gets back next week sometimes..
Cheers
Bob
I'm sure you already know Art is away on vacation, so I'm replying to say wish I could help with your code rewinding problem after a tool change, but this area of coding will definitely require Art's expertise when he gets back? I'll pass along the message when he gets back next week sometimes..
Cheers
Bob
Re: reading Pokeys pins
Bob
Yep knew he was gone but if I don't post things as I am testing and running into problems I seem to forget what was going on in a few days..
Thanks
Gary
Yep knew he was gone but if I don't post things as I am testing and running into problems I seem to forget what was going on in a few days..
Thanks
Gary
Re: reading Pokeys pins
Gary, thanks for your patience.
Cheers
Bob

Cheers
Bob
