2011/4/30 Florian Rist <[email protected]>: > Hello, > I'm using EMC for quite a while now, but now I have some special demands > and need some help: > > I use EMC to control a 4 axis router type mill, its a simple stepper > motor setup controlled by two parallel ports. Now I need to find a way > to adjust the Z axes during executing a G-code program (change the touch > off height). The best would be to have to keys on keyboard (+ and -) > that will shift the z axis position by 0.1 mm each time one of the keys > is pressed. > > How could I implement this? Any hints are welcome, right now I just > don’t' know where to start looking for a solution.
I see 2 options: 1) start with existing thc component and adjust it - add pyvcp/gladevcp panel with a spinbox or something similar to set the offset value. Positive side of this solution is that it is not that hard, negative side - the offset is not shown in the current position of particular joint/axis; 2) modify trivkins or any other kinematics module, where the offset value is added to the position of particular joint: joints[n] = pos.x + offset I did it this way in "nozzle height control" implementation on waterjet machine. Positive side is that EMC is aware of the amount of offset and the actual joint position is shown in DRO Negative side is that it is harder to implement Viesturs ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
