1
VB and the development of wizards / Re: Programing Question
« on: May 08, 2014, 01:09:46 PM »
I ran into an issue where i was slowly losing counts at high speeds (later realized it was too much weight for the stepper motor to go at those speeds) and i got a script to calibrate an offset of the home values so that all of my points would still line up. My logic was that I know that there is some error in my position relative to home (or is not even homed) and by looking at the home flag variable i was able to home the axies fairly well. For the homing process i just moved the x axis to the right at 10mm steps till home flag was active then moved to the left by 1mm steps till it was inactive, then moved it to the right at 0.1mm steps till it was active and finally to the left at 0.01mm steps till it was inactive. Save current position as new_home and then when ever you want to move relative to it you just subtract the new_home position form where you want to go.
Flags for homing, may be different numbers on yours but easy to find.
x-axis GetOEMLED(830)
y-axis GetOEMLED(833)
z-axis GetOEMLED(836)
If you would like i can try and dig up the old code i used ofr this, not sure if i still have it though.
Matt
Flags for homing, may be different numbers on yours but easy to find.
x-axis GetOEMLED(830)
y-axis GetOEMLED(833)
z-axis GetOEMLED(836)
If you would like i can try and dig up the old code i used ofr this, not sure if i still have it though.
Matt