reading Pokeys pins
Re: reading Pokeys pins
Art
ran the script 10 or 15 times let it run to end 5 time always returned to 0, hit probe at different distances and always returned to 0
then added the line to set axis position to .250, let it run to end g31x10 then set the position to .250 so now axis position is set to .250 and then the g1x0 runs but go's past 0 to -9.9498.
so far as I can tell right now its good endless you reset the work position from where it stops. does the same thing if you hit the probe but stops at different - positions I assume it reversing to the - value from the probe hit so if I hit the probe at 3.467 when axis reset to .250 it travel's to -3.467 not exactly the back distance but in the area
hope this helps a little
thanks gary
ran the script 10 or 15 times let it run to end 5 time always returned to 0, hit probe at different distances and always returned to 0
then added the line to set axis position to .250, let it run to end g31x10 then set the position to .250 so now axis position is set to .250 and then the g1x0 runs but go's past 0 to -9.9498.
so far as I can tell right now its good endless you reset the work position from where it stops. does the same thing if you hit the probe but stops at different - positions I assume it reversing to the - value from the probe hit so if I hit the probe at 3.467 when axis reset to .250 it travel's to -3.467 not exactly the back distance but in the area
hope this helps a little
thanks gary
Re: reading Pokeys pins
Gary:
Thx, that points to the error, I must not be resetting the planner after the scripted Axis position
set. Ill fix that up. Thx for your tests, when I wrote Auggie I put in a lot of code that has never
been tested, I added it just in case. Much of this problem seems related to simply being
untested code. Comes from writing a controller in a year. :)
Ill let you know when the fix is online.
Art
Thx, that points to the error, I must not be resetting the planner after the scripted Axis position
set. Ill fix that up. Thx for your tests, when I wrote Auggie I put in a lot of code that has never
been tested, I added it just in case. Much of this problem seems related to simply being
untested code. Comes from writing a controller in a year. :)
Ill let you know when the fix is online.
Art
Re: reading Pokeys pins
Ok thanks
Hopefully you have some code to read the encoder pins13 I would like to be able to setup the pin for spindle index 1 rev per if possible.
and also be able to use pin17 for pwm output 0-10v for the spindle speed control.. but first things first lets get probing going first..
I know I keep bring this up but is there a way to get the global script running so I don't have to run it first in the script edit then use the button.
Thanks gary
Hopefully you have some code to read the encoder pins13 I would like to be able to setup the pin for spindle index 1 rev per if possible.
and also be able to use pin17 for pwm output 0-10v for the spindle speed control.. but first things first lets get probing going first..
I know I keep bring this up but is there a way to get the global script running so I don't have to run it first in the script edit then use the button.
Thanks gary
Re: reading Pokeys pins
Gary:
I believe you can poll the encoder counts from the pokeys, but I dont think you can
the index. Ill have to look up what information the pokeys sends back on that.
You can use any PWM channel you like. Examples of that are in the laser control
library as I use that library to control pwm power for the lasers.
As to the problem with the script having to be run before the button call to it will
function, Im still not sure whats going on there. I'll take a look to see how one of mine
works and perhaps we can figure why yours doesn't mimic it..
Art
I believe you can poll the encoder counts from the pokeys, but I dont think you can
the index. Ill have to look up what information the pokeys sends back on that.
You can use any PWM channel you like. Examples of that are in the laser control
library as I use that library to control pwm power for the lasers.
As to the problem with the script having to be run before the button call to it will
function, Im still not sure whats going on there. I'll take a look to see how one of mine
works and perhaps we can figure why yours doesn't mimic it..
Art
Re: reading Pokeys pins
Art
I don't own a laser so that Greek to me right now...
I did look at the laser lib didn't see anything for pwm only turning on and off relays for air blow?
looked in the gcode lib that had some on pwm spindle speed don't look like its functional and looks like you need a real high spindle speed over 25000 to get it to return a value other than 0 not sure on how you are sending the pwm pulse. I'm used to just sending m3 s3600, or similar. right now I do have m3 and m8 working for turning on the spindle relay and coolant and m5 and m9 to turn off relays.
I thought I read some where that you are using motor 8 for laser control, I may be wrong.
I think pin17 is just a pwm pin for 0 to 10 v output I tried setting pin17 but haven't any luck changing the voltage output...
But this is a later problem :-\
One thing at a time first probing, we are almost there, just a couple things not quite right, but I know you will get it...
Gary
I don't own a laser so that Greek to me right now...
I did look at the laser lib didn't see anything for pwm only turning on and off relays for air blow?
looked in the gcode lib that had some on pwm spindle speed don't look like its functional and looks like you need a real high spindle speed over 25000 to get it to return a value other than 0 not sure on how you are sending the pwm pulse. I'm used to just sending m3 s3600, or similar. right now I do have m3 and m8 working for turning on the spindle relay and coolant and m5 and m9 to turn off relays.
I thought I read some where that you are using motor 8 for laser control, I may be wrong.
I think pin17 is just a pwm pin for 0 to 10 v output I tried setting pin17 but haven't any luck changing the voltage output...
But this is a later problem :-\
One thing at a time first probing, we are almost there, just a couple things not quite right, but I know you will get it...
Gary
Re: reading Pokeys pins
Gary:
Just uploaded a new Auggie that should rest the planner after you use SetAxisPos so that
subsequent moves do not overrun. Let me know if this fixes the current script problem.
I use motor channel 8 for realtime pwm control, but this isn't how you'd do it for a spindle,
in that case youd call the PWM script calls to set up a channel , a base frequency and an output
level. We'll go into that after this probing is all settled..
Art
Just uploaded a new Auggie that should rest the planner after you use SetAxisPos so that
subsequent moves do not overrun. Let me know if this fixes the current script problem.
I use motor channel 8 for realtime pwm control, but this isn't how you'd do it for a spindle,
in that case youd call the PWM script calls to set up a channel , a base frequency and an output
level. We'll go into that after this probing is all settled..
Art
Re: reading Pokeys pins
Ok will test it out
I think the PWM channel is 5 if I'm reading things right but after probing is going...
Gary
I think the PWM channel is 5 if I'm reading things right but after probing is going...
Gary
Re: reading Pokeys pins
Art
Here is some numbers I am getting all are with g31 x-3 and retract after probe is hit I set the axis to .250, then do a g00 x1
Probe run started at 0 - hit at -.3955 reset to .250 retracted to 0.6255 - started at positive hit at negative ended at positive
Probe run started at .6455 - hit at -.3802 reset to .250 retracted to 1.2758 - started at positive hit at negative ended at positive
Probe run started at 1.2758 - hit at -.2863 reset to .250 retracted to 1.8120 - started at positive hit at negative ended at positive
Probe run started at 1.1820 - hit at +.5002 reset to .250 retracted to 1.5681 - started at positive hit at positive ended at positive
Seems close to before I think is there a way to tell if the version of auggie has changed....
I thought I left a message last night about this but don't see it, that's a good thing I was having all kinds of problems last night
estop getting triggered off every time I had the line to setaxispos(.250) in the code, if I removed it all was good, now decided to try again tonight and I don't seem to be having the problem maybe I was having a computer gulch
looked at the way I have mach4 setup for my spindle I am using ob5(10) step/dir and ob5(10) set to motor5 with the smoothstepper
Thanks gary
Here is some numbers I am getting all are with g31 x-3 and retract after probe is hit I set the axis to .250, then do a g00 x1
Probe run started at 0 - hit at -.3955 reset to .250 retracted to 0.6255 - started at positive hit at negative ended at positive
Probe run started at .6455 - hit at -.3802 reset to .250 retracted to 1.2758 - started at positive hit at negative ended at positive
Probe run started at 1.2758 - hit at -.2863 reset to .250 retracted to 1.8120 - started at positive hit at negative ended at positive
Probe run started at 1.1820 - hit at +.5002 reset to .250 retracted to 1.5681 - started at positive hit at positive ended at positive
Seems close to before I think is there a way to tell if the version of auggie has changed....
I thought I left a message last night about this but don't see it, that's a good thing I was having all kinds of problems last night
estop getting triggered off every time I had the line to setaxispos(.250) in the code, if I removed it all was good, now decided to try again tonight and I don't seem to be having the problem maybe I was having a computer gulch
looked at the way I have mach4 setup for my spindle I am using ob5(10) step/dir and ob5(10) set to motor5 with the smoothstepper
Thanks gary
Re: reading Pokeys pins
Gary:
Thx, I neglected to update the version number. Ill have to do some checking to see why its the same.
Ill be away though until a week from Monday getting some sun. Ill fix this up when I return;
It does look like nothing changed.. which is odd as I reset the last position during any SetAxisPos call..
Sorry for the delay on this reply, I didn't get a message on this post for some reason.
Sounds like your driving your spindle with step pulses from Mach3, if so we'll set it on
an axis and use the FreeAxis calls to simply set a frequency. That can be added into
the spindle off and on calls as far as making the spindle work at any frequency. The FreeAxis
axis ( 4 of them) can be used individually at any frequency output and can be left as simply
frequency instead of step counts.
Art
Thx, I neglected to update the version number. Ill have to do some checking to see why its the same.
Ill be away though until a week from Monday getting some sun. Ill fix this up when I return;
It does look like nothing changed.. which is odd as I reset the last position during any SetAxisPos call..
Sorry for the delay on this reply, I didn't get a message on this post for some reason.
Sounds like your driving your spindle with step pulses from Mach3, if so we'll set it on
an axis and use the FreeAxis calls to simply set a frequency. That can be added into
the spindle off and on calls as far as making the spindle work at any frequency. The FreeAxis
axis ( 4 of them) can be used individually at any frequency output and can be left as simply
frequency instead of step counts.
Art
Re: reading Pokeys pins
Ok Thanks
Your coming to the sun i'd like to get out of the sun, been getting way to hot for me in the summer and winter! down here in Florida can't even work in the garage most of the time.
have a great trip...
gary
Your coming to the sun i'd like to get out of the sun, been getting way to hot for me in the summer and winter! down here in Florida can't even work in the garage most of the time.
have a great trip...
gary
Re: reading Pokeys pins
Gary:
Im freezing.. .. Be back in a week..
Art
Im freezing.. .. Be back in a week..
Art
Re: reading Pokeys pins
Hi Art
Had a couple questions before I forget I will ask,,
I haven't figured out a way to setup say 10 buttons with the same id name and a different id number
and press any of the ten buttons and then read the id number, can't figure out how to read the id number..
that way hopefully I could just use the id number and a case: statement to do as I want.
also you have a toolbox, can you use the toolbox to keep tract of your current tool# maybe to do a tool change
and change to a tool you may select form the toolbox?
also getting gcode errors created with cambam..
Error--44, G2 X1.547 Y-0.1575 I-0.0305 J0.0
I have other gcode errors but just showing you this one for now.
And i did get the problem fixed about having to run scripts first in the script run screen..
Gary
Had a couple questions before I forget I will ask,,
I haven't figured out a way to setup say 10 buttons with the same id name and a different id number
and press any of the ten buttons and then read the id number, can't figure out how to read the id number..
that way hopefully I could just use the id number and a case: statement to do as I want.
also you have a toolbox, can you use the toolbox to keep tract of your current tool# maybe to do a tool change
and change to a tool you may select form the toolbox?
also getting gcode errors created with cambam..
Error--44, G2 X1.547 Y-0.1575 I-0.0305 J0.0
I have other gcode errors but just showing you this one for now.
And i did get the problem fixed about having to run scripts first in the script run screen..
Gary
Re: reading Pokeys pins
Hi Gary:
What was the scripting problem with the button.. (just so I know..)..
I just got back and Ill fix up the last probe issue this week. ..
kk,buttons. ..You cant really call their ID.. a button will send out a state of 1 when pressed, and 0 when released.
They cant be named the same either or they'll all press when you press one. I do recall making a group button
sequence though,where one buttons turns off all others in the group, Ill have to look up how exactly I did that at the time.
There is no real toolbox in Auggie, I didn't implement one really, Auggie's point was to be fairly simplistic
so a tool table wasnt set up as I didnt want the complexity. You may find command hooks simply to stop errors
but theres likely no underlying functionality.
Is that error perhaps due to the G91 mode for absolute or incremental arcs? There is a list of errors,
Ill take a look at error 44 to see exactly what it is.. I just got in so Im still a bit jetlagged and Im
not sure top of head..
Art
Art
What was the scripting problem with the button.. (just so I know..)..
I just got back and Ill fix up the last probe issue this week. ..
kk,buttons. ..You cant really call their ID.. a button will send out a state of 1 when pressed, and 0 when released.
They cant be named the same either or they'll all press when you press one. I do recall making a group button
sequence though,where one buttons turns off all others in the group, Ill have to look up how exactly I did that at the time.
There is no real toolbox in Auggie, I didn't implement one really, Auggie's point was to be fairly simplistic
so a tool table wasnt set up as I didnt want the complexity. You may find command hooks simply to stop errors
but theres likely no underlying functionality.
Is that error perhaps due to the G91 mode for absolute or incremental arcs? There is a list of errors,
Ill take a look at error 44 to see exactly what it is.. I just got in so Im still a bit jetlagged and Im
not sure top of head..
Art
Art
Re: reading Pokeys pins
Did you have a great trip?
Wasn't expecting a response so soon, I'm getting to that age if I don't post the message when info is on my mind, it may be lost or forgotten by tomorrow ???
Not really having a scripting problem with the buttons
just was hoping there would be a way to read the button id number so if they were all named with the same var name I could use just one button global function for all the buttons in a panel, say I had 16 buttons to do a tool change I would press button for tool1 then move x y z to save position, now move my tool rack in and rotate to tool1. make sense? I figured a case: statement would make it a little easier then creating a global function for each button,..
Just was checking to see if it was in your code, when I create a button I see when editing that button there is a value for a id number in there also.
Toolbox really wouldn't make a big difference to me just checking.
Gary
Wasn't expecting a response so soon, I'm getting to that age if I don't post the message when info is on my mind, it may be lost or forgotten by tomorrow ???
Not really having a scripting problem with the buttons
just was hoping there would be a way to read the button id number so if they were all named with the same var name I could use just one button global function for all the buttons in a panel, say I had 16 buttons to do a tool change I would press button for tool1 then move x y z to save position, now move my tool rack in and rotate to tool1. make sense? I figured a case: statement would make it a little easier then creating a global function for each button,..
Just was checking to see if it was in your code, when I create a button I see when editing that button there is a value for a id number in there also.
Toolbox really wouldn't make a big difference to me just checking.
Gary
Re: reading Pokeys pins
Hi Gary:
>>Did you have a great trip?
It was great. Jamaica is nice and hot this time of year. :)
>>Wasn't expecting a response so soon, I'm getting to that age if I don't post the message when info is on my mind, it may be lost or forgotten by tomorrow Huh
Welcome to my world.
>>Not really having a scripting problem with the buttons
No, I meant the reason why you used to have to run the script before the button script would work..I
was curious as to why that happened.
>>just was hoping there would be a way to read the button id number so if they were all named with the same var name I could use just one button global function for all the buttons in a panel, say I had 16 buttons to do a tool change I would press button for tool1 then move x y z to save position, now move my tool rack in and rotate to tool1. make sense? I figured a case: statement would make it a little easier then creating a global function for each button,..
There is a way to do that, I just cant recall at the moment. Ill take a good to look to see how I used to do that..
>>Toolbox really wouldn't make a big difference to me just checking.
Yeah, a toolbox was one of those things I figured if one need sit, theres always Mach3 or 4.. :)
Art
>>Did you have a great trip?
It was great. Jamaica is nice and hot this time of year. :)
>>Wasn't expecting a response so soon, I'm getting to that age if I don't post the message when info is on my mind, it may be lost or forgotten by tomorrow Huh
Welcome to my world.
>>Not really having a scripting problem with the buttons
No, I meant the reason why you used to have to run the script before the button script would work..I
was curious as to why that happened.
>>just was hoping there would be a way to read the button id number so if they were all named with the same var name I could use just one button global function for all the buttons in a panel, say I had 16 buttons to do a tool change I would press button for tool1 then move x y z to save position, now move my tool rack in and rotate to tool1. make sense? I figured a case: statement would make it a little easier then creating a global function for each button,..
There is a way to do that, I just cant recall at the moment. Ill take a good to look to see how I used to do that..
>>Toolbox really wouldn't make a big difference to me just checking.
Yeah, a toolbox was one of those things I figured if one need sit, theres always Mach3 or 4.. :)
Art
Who is online
Users browsing this forum: No registered users and 1 guest