On 19 August 2012 15:04, Viesturs Lācis <viesturs.la...@gmail.com> wrote:
> I am not sure that I understand, how did You mean that. Stepgen has a "counts" output. You need to store that value somewhere in HAL at the point when the home switch is tripped. (alternatively, store the position-fb value). That value is your "home" position in absolute stepgen space. All you need to do is to add that "home" position to the output from your VCP. loadrt sample_hold loadrt sum2 addf... net homed sample_hold.0.hold net stepgen.0.counts sample-hold.0.in net home-counts sample-hold.0.out sum2.0.in0 net VCP-pos-out sum2.0.in1 setp sum2.0.gain0 [AXIS_N]STEPGEN_SCALE The "homed" signal probably needs to be set by a latch on the home switch, and reset from the VCP. The VCP can generate the homing moves in userspace, as the actual home logic happens in realtime. -- 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