reading Pokeys pins

C Scripting questions and answers
Post Reply
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: reading Pokeys pins

Post by ArtF »

Gary:

A jog below 0.0005 would require a steps/unit of 2000 for that axis. The planner will
only update 1 motion of 1 step of your motors. So if your at 1600 steps/unit then
the minimum jog amount recognized will be .000625

Ill replace my scripts with your new ones in my test setup, but I cant exactly duplicate your
setup, so Ill see what they show.

  Seems strange for ssr's to go so much. Are you sure their high enough current capability?

Art


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

Re: reading Pokeys pins

Post by ArtF »

Gary:

  Ive added your jogging panel but you diodnt give me your scripts for the controls
of it. Ive been using my jog instead. Does it seem to work in order with my jogging
buttons? If so, what is the script your using for Jogyplus and such.

  If it doesnt work when using my buttons, describe the operation and Ill duplicate here
to see where Im missing the sync call.

Thx
Art
gburk
Site Admin
Posts: 324
Joined: Mon Nov 26, 2018 2:57 am

Re: reading Pokeys pins

Post by gburk »

Art

Sorry my mind with the scripts has been in left field, think I have been abscessed with the SSR problems, and can't focus on anything else, OCD..
Seems what I been finding is the SSR relays at least some of them are staying closed so the current never stops flowing, I had 4 do this already..
Ordered 2 more If another one messes up i'm going back to no reverse, and will just make a mount to use a stepper on the spindle for threading..

As for the jogging with your jog panel it works my problem is I can't get it to single step or close to a single step when I am near the top of a part for touch off.
I think I did say before it seems like every time I am almost at the top of the part and try to jog to touch it seems that I hit jog arrow and it doesn't stop
dives into part and keeps going of course now missing steppes and I have to hit estop..

The main problem I have with your jog panel is not enough control for the short jogs, every time I hit a jog button it travels way to far..

I though the scripts for my jog were in the zip I will check and resend if not..

I haven't tried the probe to top of part from the dialog, maybe that would work better, but have to wait till new relays get here now :P..

I looked at the zip file on my end and it has the babystep.panel the jogging script also the testtool for tool change its a slimed down version.. and the dialog script.
so if you did get them all the jog should work. its not a good script but lets me move in smaller amounts also the first dro in the my jog panel is the jog amount so it won't move if you don't enter a value there.. like 0.0100 or whatever..

Gary
Last edited by gburk on Tue Sep 03, 2019 6:29 pm, edited 1 time in total.
User avatar
Mooselake
Site Admin
Posts: 512
Joined: Sun Dec 26, 2010 11:21 pm
Location: Mooselake Manor

Re: reading Pokeys pins

Post by Mooselake »

Gary, what kind of load are you switching with those SSRs?  Do they need to be heatsinked?  If you're blowing that many I'd suspect there's a problem with over stressing them.

Kirk
gburk
Site Admin
Posts: 324
Joined: Mon Nov 26, 2018 2:57 am

Re: reading Pokeys pins

Post by gburk »

Kirt

There all mounted to heatsinks, don't think they even have run lone enough to overheat, but you know how hot it is down here right now..
They are all rated from 5-200 vdc and I don't think I pushing any more the 100vdc.


Just got the new relay and its working again, going to test them running just with a 12v motor in the house for a day or two and see how they heat up inside before I move them back to the mill..

Gary
Last edited by gburk on Thu Sep 05, 2019 8:18 pm, edited 1 time in total.
gburk
Site Admin
Posts: 324
Joined: Mon Nov 26, 2018 2:57 am

Re: reading Pokeys pins

Post by gburk »

Art


as for the m6 tool change it seems to work on first run the x y z jog back to start pos in the correct order...
if you hit stop and rewind then run again is when they all move at the same time..

just a couple more thoughts..

Thanks gary
Last edited by gburk on Thu Sep 05, 2019 2:10 am, edited 1 time in total.
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: reading Pokeys pins

Post by ArtF »

Thx Gary:

I think I know where the problem may lie..

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

Re: reading Pokeys pins

Post by ArtF »

Gary:

Cant find your jogging scripts anywhere. There not in the panel and I cant find a script
for any of the buttons being registered. What I need to know is how are you doing the jog, with a Engine.FeedTo
or a .GCode(..) ? I need to trace that section to see why it might forget your position..

Art
gburk
Site Admin
Posts: 324
Joined: Mon Nov 26, 2018 2:57 am

Re: reading Pokeys pins

Post by gburk »

Art

Sorry here are the scripts again they seemed to be there at least when it checked the zip before uploading..

I tried both Feedto, and engine.gcode same results..

I mounted the relays back and reconnected the spindle, so planning on testing it if it cools down some tonight when the sun go's down
I did test the m6 dialog with the Z touch off seems to work when dry running probe trigged good and retracted but, will need a real motion
test to see if it retracts and sets the new tool to the correct Hight.
will let you know how that go's..

also I had the problem with the jog not stopping again I'll be jogging then it seems to go into continuous mode I tap the jog button and it doesn't stop
I though it may be the mouse or computer but now i don't think so now it has happened on two different computers and with different mouse's it was only showing up in the Z jog but last night it did it in the X jog and this is in auggies jog panel..

Gary 
You do not have the required permissions to view the files attached to this post.
Last edited by gburk on Fri Sep 06, 2019 11:15 pm, edited 1 time in total.
gburk
Site Admin
Posts: 324
Joined: Mon Nov 26, 2018 2:57 am

Re: reading Pokeys pins

Post by gburk »

Art

Have connected and did a couple test, seems my steps were way off, I had the z set to 1800, well I had to set it to 16000 to move 1 inch seems close for the z now anyway..
Having a few probing issues my touch probe seems to be high and go's low when hit...

if I use an isolated touch plate its the opposite low then high when hit..
also seems even with the plastic between the touch plate and top of part I seem to get a slight signal going though to the breakout board the probe led light is real dim but does light up i'm not sure what would cause that.. if I remove one wire it gos off..
so sometimes I seem to be getting false signals..

one example is I probe down in the M6 call it touches off and stops fine but it looks like it may be getting a false trigger when it inverts and backsoff for the release signal.. and of course it stops there and doesn't retract to the correct Hight because it thinks there was an probe error...

making any sense to you..?

Gary
Post Reply