Perhaps I'm really just missing something obvious here. > > > > Ah, if you just need to _swap_ pwm and dir with each other, then that is > > actually easy. > > set the output-type to 4, and they get swapped: > > > > http://linuxcnc.org/docs/2.7/html/man/man9/hostmot2.9.html#pwmgen > > That information is for the 7i43 not the 7i92 and I don't believe the 7i92 can > be swapped around like that. The pin file for the 7i92 only allocates two PWM > logic modules, one to each port. The 7i43 is probably more versatile and they > can be allocated differently. > > John > > > All HostMot 2 modules (like PWM) are the same regardless of the hardware > so anything a 7I43 can do a 7I92 can also do. > Peter, I don't believe that and I've been pretty clear about which pin file I'm using thoughout this entire conversation.
Here's the 7i92_C11Gx2D HAL file information. Notice that I'm accessing pwmgen.00 which is listed in the pin file as coupled to I/O 1 which is DB-25 pin 14. And I'm attaching the spindle-cw to gpio.005 which is DB-25 pin 16. # PWM gen signals/setup setp hm2_7i92.0.pwmgen.00.scale [SPINDLE_9]PWM_SCALE setp hm2_7i92.0.pwmgen.00.output-type 1 setp hm2_7i92.0.gpio.005.is_output true net spindle-enable => hm2_7i92.0.pwmgen.00.enable net spindle-vel-cmd-rps => hm2_7i92.0.pwmgen.00.value net spindle-cw => hm2_7i92.0.gpio.005.out As I understand it the pin file defines which pins are used for the pwmgen.00. So what Andy andn you are saying is if I set output-type to 4 instead of one the pwmgen.00 will magically appear on DB-25 pin 16? And then I can set spindle-cw to gpio.001.out? Only one tiny problem with that. I'd have to also change then to a pin file that actually allocates a PWM DIR like 7i92_R990x2D. Otherwise for the existing pin file (7i92_C11Gx2D) how in the heck does it know that I want to swap pins? And Peter, you stated previously that it's more versatile to not use a pin file with the PWM DIR allocated. So which is it? John _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users