On 19 August 2012 14:00, Viesturs Lācis <viesturs.la...@gmail.com> wrote:
> Anyway, I have an issue of reproducing homing routine either in HAL or > in Ladder. Can anyone share some advice, how to do that? I do not > really understand, how can I reset stepgen position to 0 or whatever > fixed value, based on the state of input from homing switch (rising > and falling edges, to be precise). There will be some offset between > pre-homing and post-homing stepgen positions, which I do not > understand, how to handle. The simplest way is to store the current stepen counts as an offset when the home switch is tripped (sample-hold, or something similar in the Python code) then add that to the stepgen commanded value. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users