Mark Pictor wrote: > If you jog via the GUI (i.e. Axis), you can select between > Continuous and one of several increments. Why not have jogwheels > behave the same way? Mode selection could be via pyVCP buttons, or > physical buttons on the control panel.
EMC2's jogwheel support already has provision for adjustable increments. The motion controller's joghwheel interface has three HAL pins per axis: axis.N.jog-counts - integer input - counts from the wheel axis.N.jog-enable - bit - enables or disables jogging axis.N.jog-scale - float - distance to move per count A typical jogwheel implementation would connect the encoder.N.counts value from the wheel to the jog-counts pins of all axes. An axis selector switch is connected so that only one of the jog-enable inputs will be true at one time, to determine which axis will move when the wheel is turned. (If all of the jog-enable inputs are false, the wheel will have no effect.) The axis selector switch can be a PyVPC radiobutton, a real switch, or HAL pins exported by the AXIS gui that identify the currently selected axis. Note: if you have more than one jogwheel, you can connect one wheel to each jog-counts input, and have all of the jog-enable inputs true at the same time. A floating point value is connected to all of the jog-scale inputs to determine how far the axis moves per count. This can be a constant value such as 0.001" or 0.01mm, or it can be the output of a multiplexer that chooses one of several values based on switch or PyVCP input. For example, a four input mux can be used to choose between 0.0001, 0.001, 0.01, or 0.1 inches. It doesn't have to be powers of 10... you could arrange the mux to choose between 0.0001", 0.001", 0.01mm, 0.1mm, or between 0.001" and 1/64". It is limited only by your imagination. However, the basic principle of a jogwheel is that movement of the table is DIRECTLY proportional to movement of the wheel. Therefore there must always be some increment of motion per count of the jogwheel. "Continuous" mode only makes sense for pushbutton jogs, not for wheel jogs. Regards, John Kasunich ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users