> From: Peter C. Wallace [mailto:[email protected]]
> You can look up the pwmgen manual page, Probably for a 1 KHz PWM filter and
> running the pwmgen at the 1 KHz serco thread I would use the software pwmgens
> PDM mode (so 50% is 1 ms on 1 ms off) This also depends on being able to
> disable the stepgen so this will only work if the stepgen has a higher number
> than any needed stepgen.
> (because you can enable stepgens 0..N not arbitrary stepgens)
> 

Well I've used up all the stepgens on the first parallel port and using the 
hardware PWM from the 7i92H.  I move to the second port for step/dir and then 
configure software PWM I guess I get the best of both worlds.

I'll take a look into the software generation.  I should then be able to 
disable the 7i92H PWM and do it as you suggested.  If that works then it's not 
a big deal to shift it to the second port as long as I have a port card that 
works in the PC for port #2. 

(From a research perspective I'm still keeping this a dual boot machine for WIN 
(MACH3) and LinuxCNC along with the ability to use the Pi4 with the 7i92H and 
the BeagleBone MachineKit Xylotex.

# external I/O signals
# IO Connections for P2 MESA 7i92_C11Gx2D.pin  (from file)
# Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

#  1      0   IOPort       None                                                 
                                        machine-is-enabled (output)
# 14      1   IOPort       PWM              0        PWM             (Out)      
        spindle-vel-cmd-rps PWM (ouput)
#  2      2   IOPort       StepGen          0        Step/Table1     (Out)      
        x axis step pulse (output)
# 15      3   IOPort       None                                                 
                                        max-x-y-min-z (input)
#  3      4   IOPort       StepGen          0        Dir/Table2      (Out)      
        x axis dir signal (output)
# 16      5   IOPort       None                                                 
                                        spindle-ccw output (output)
#  4      6   IOPort       StepGen          1        Step/Table1     (Out)      
        y axis step pulse (output)
# 17      7   IOPort       StepGen          4        Step/Table1     (Out)      
        Charge Pump frequency (output)
#  5      8   IOPort       StepGen          1        Dir/Table2      (Out)      
        y axis dir signal (output)
#  6      9   IOPort       StepGen          2        Step/Table1     (Out)      
        z axis step pulse (output)
#  7     10   IOPort       StepGen          2        Dir/Table2      (Out)      
        z axis dir signal (output)
#  8     11   IOPort       StepGen          3        Step/Table1     (Out)      
        a axis step pulse (output)
#  9     12   IOPort       StepGen          3        Dir/Table2      (Out)      
        a axis dir signal (output)
# 10     13   IOPort       QCount           0        Quad-A          (In)       
        estop-external-in (input)
# 11     14   IOPort       QCount           0        Quad-B          (In)       
        min home-x (input)
# 12     15   IOPort       QCount           0        Quad-IDX        (In)       
        min home-y (input)
# 13     16   IOPort       None                                                 
                                        max-home-z (input)

#IO Connections for P1
#Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir
#
#  1     17   IOPort       None           
# 14     18   IOPort       PWM              1        PWM             (Out)      
        
#  2     19   IOPort       StepGen          5        Step/Table1     (Out)      
        Spindle Step Pulse      
# 15     20   IOPort       None           
#  3     21   IOPort       StepGen          5        Dir/Table2      (Out)      
        Spindle dir signal
# 16     22   IOPort       None                                                 
                                        Spindle Enable/Brake (output)
#  4     23   IOPort       StepGen          6        Step/Table1     (Out)      
        Coolant Pump (output)
# 17     24   IOPort       StepGen          9        Step/Table1     (Out)      
        
#  5     25   IOPort       StepGen          6        Dir/Table2      (Out)      
        Coolant Mist (Ouptut)
#  6     26   IOPort       StepGen          7        Step/Table1     (Out)
#  7     27   IOPort       StepGen          7        Dir/Table2      (Out)
#  8     28   IOPort       StepGen          8        Step/Table1     (Out)
#  9     29   IOPort       StepGen          8        Dir/Table2      (Out)
# 10     30   IOPort       QCount           1        Quad-A          (In)       
        Spindle Encoder-A
# 11     31   IOPort       QCount           1        Quad-B          (In)       
        Spindle Encoder-B
# 12     32   IOPort       QCount           1        Quad-IDX        (In)       
        Spindle Encoder-Index
# 13     33   IOPort       None           

#*******************
# PWM gen signals/setup
#*******************
# PWM signal pin config
setp   hm2_7i92.0.pwmgen.00.output-type  1
setp   hm2_7i92.0.pwmgen.00.scale  [SPINDLE_9]PWM_SCALE
setp   hm2_7i92.0.pwmgen.pwm_frequency 1000

net spindle-enable           =>  hm2_7i92.0.pwmgen.00.enable

# PWM dir pin config 
setp   hm2_7i92.0.gpio.005.is_output true
net spindle-ccw              =>  hm2_7i92.0.gpio.005.out






_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to