reading Pokeys pins

C Scripting questions and answers
Post Reply
gburk
Site Admin
Posts: 324
Joined: Mon Nov 26, 2018 2:57 am

Re: reading Pokeys pins

Post by gburk »

Art

I will also check the globals, I think right now only thing is the probeinvert,1 backoff but works without it, but I got the impression from you that the 0 position could be closer than my results...

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

Re: reading Pokeys pins

Post by ArtF »

Gary:

Well, the ProbeHit positions registers tell you the actual position of the hit. It then decelerates to zero speed.
So its all a function of speed. IF your moving very slow, the probe pretty much can stop instantly. If you
query the hit registers and do a g1 to that location, your about as accurate as you can get.

  So the routine should be

1) probe down.
2) If probehit is true, read hit registers and do a g1 to that location.


  Its probe condition at that point is unknowable, it may close or not depending on system flex,
tolerance etc... but thats about as accurate as you can get ..

Art



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

Re: reading Pokeys pins

Post by gburk »

Art

Back to computer power shutting off while booting, think it may be that the water pump died I got into the bios for a few seconds  to I see the cpu temp going to 130 and raising them power shuts off..

any way I had copied all of auggies files and folders to a sd drive a couple days ago.
And I have an old laptop so I installed auggie and then copied all the files folders to laptop, but auggies configs are not being changed.

The steps are staying at installed version and not changing when I copy all the files over, what file stores this info..
I had all the steps set good I was getting very good travel distances, I really am hoping I don't have to recalibrate again..
Seeing I didn't write them down.. :-\

any suggestions..

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

Re: reading Pokeys pins

Post by gburk »

Art

If I ProbeInvert,1 should that chance it from false to true in the planner config The ProbePolarity doesn't seem to change back and forth from false to turn,
always stays the same as you set it in the config.. so if I want to invert it to back off it doesn't seem to be inverting..

Not sure want you are seeing this but maybe that could be part of my back off problem..

I ran one line of code in the script window to ProbeInvert,1 and them checked the config it was still false.. don't know if you are updating the config on every change or not.. just a thought..

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

Re: reading Pokeys pins

Post by ArtF »

Gary:

No, the probeinvert is a modifier. You can GlobalGet its value as its just a global. If set to true, it inverts the config setting as it sends it to the pokeys, telling the pokeys to expect it to trip on the inverse of your config setting. Ill trace to see why it
may not be responding that way.

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

Re: reading Pokeys pins

Post by gburk »

Art

Not sure how to test to see if its set to true or false

tried this but always get a 0 value.

GlobalSet( "ProbeInvert", 1 );
sig = GlobalGet("ProbeInvert");
print("Probe"+sig);

also you didn't say as to what file the config is saved in.

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

Re: reading Pokeys pins

Post by ArtF »

Gary:

Think I see the issue.. Ill get back to you soon.

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

Re: reading Pokeys pins

Post by gburk »

Art

Thanks,

I would like you to check out this panel and script for auto calculating the steps, may save me some time recalibrating the axis's, mainly check my math ???
it seems to work just needs some polishing up as long as the math is correct..

Gary
You do not have the required permissions to view the files attached to this post.
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: reading Pokeys pins

Post by ArtF »

Gary:

Can you try this script and tell me if it prints 1 , then 1 ..

GlobalSet("ProbeInvert", 1);
test = GlobalGet("ProbeInvert");
print( test);
GlobalSet("ProbeInvert", 0);
test = GlobalGet("ProbeInvert");
print( test);

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:

Sorry, I meant it prints 1, then 0, repeating each time. IT does that here and Im wondering if its just
a version mismatch between us or something..

Art
Post Reply