Neil Baylis wrote: > > Note: I tried monitoring the axis.0.home-sw-in with Halmeter, but it > never changes. Also, when I use Halmeter to monitor the limit switch, > that never changes either, even though it is changing on TkEMC. > Something I don't understand about using Halmeter, I guess. > In your case, the actual switch input will be ppmc.0.din.xx.in, where xx is the input channel number matching the terminal on the board's P4 or P5 connector. You then need to connect that in the univpwm_io.hal file with the specific axis input for that switch. In the case of one switch for both home and limit, you would connect the same signal from the PPMC driver to two HAL input pins on for the axis. It might look like this :
newsig Xminlim bit newsig Xmaxlim bit linksp Xminlim <= ppmc.0.din.01.in linksp Xminlim => axis.0.neg-lim-sw-in linksp Xminlim => axis.0.home-sw-in linksp Xmaxlim <= ppmc.0.din.02.in linksp Xmaxlim => axis.0.pos-lim-sw-in (The above can be written more concisely with the new HAL syntax for the net command) Jon ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
