Hello Andy,
I tried to disable the highest numbered Stepgen(9th in our case) and got the 
following DMESG o/P : 

[ 2136.149105] hm2/hm2_5i25.0: 34 I/O Pins used:
[ 2136.149109] hm2/hm2_5i25.0:     IO Pin 000 (P3-01): StepGen #0, pin 
Direction (Output)
[ 2136.149112] hm2/hm2_5i25.0:     IO Pin 001 (P3-14): StepGen #0, pin Step 
(Output)
[ 2136.149115] hm2/hm2_5i25.0:     IO Pin 002 (P3-02): StepGen #1, pin 
Direction (Output)
[ 2136.149118] hm2/hm2_5i25.0:     IO Pin 003 (P3-15): StepGen #1, pin Step 
(Output)
[ 2136.149121] hm2/hm2_5i25.0:     IO Pin 004 (P3-03): StepGen #2, pin 
Direction (Output)
[ 2136.149123] hm2/hm2_5i25.0:     IO Pin 005 (P3-16): StepGen #2, pin Step 
(Output)
[ 2136.149126] hm2/hm2_5i25.0:     IO Pin 006 (P3-04): StepGen #3, pin 
Direction (Output)
[ 2136.149129] hm2/hm2_5i25.0:     IO Pin 007 (P3-17): StepGen #3, pin Step 
(Output)
[ 2136.149131] hm2/hm2_5i25.0:     IO Pin 008 (P3-05): StepGen #4, pin 
Direction (Output)
[ 2136.149134] hm2/hm2_5i25.0:     IO Pin 009 (P3-06): StepGen #4, pin Step 
(Output)
[ 2136.149137] hm2/hm2_5i25.0:     IO Pin 010 (P3-07): Smart Serial Interface 
#0, pin TxData0 (Output)
[ 2136.149140] hm2/hm2_5i25.0:     IO Pin 011 (P3-08): Smart Serial Interface 
#0, pin RxData0 (Input)
[ 2136.149143] hm2/hm2_5i25.0:     IO Pin 012 (P3-09): IOPort
[ 2136.149145] hm2/hm2_5i25.0:     IO Pin 013 (P3-10): IOPort
[ 2136.149148] hm2/hm2_5i25.0:     IO Pin 014 (P3-11): Encoder #0, pin Index 
(Input)
[ 2136.149150] hm2/hm2_5i25.0:     IO Pin 015 (P3-12): Encoder #0, pin B (Input)
[ 2136.149153] hm2/hm2_5i25.0:     IO Pin 016 (P3-13): Encoder #0, pin A (Input)
[ 2136.149156] hm2/hm2_5i25.0:     IO Pin 017 (P2-01): StepGen #5, pin 
Direction (Output)
[ 2136.149158] hm2/hm2_5i25.0:     IO Pin 018 (P2-14): StepGen #5, pin Step 
(Output)
[ 2136.149161] hm2/hm2_5i25.0:     IO Pin 019 (P2-02): StepGen #6, pin 
Direction (Output)
[ 2136.149165] hm2/hm2_5i25.0:     IO Pin 020 (P2-15): StepGen #6, pin Step 
(Output)
[ 2136.149167] hm2/hm2_5i25.0:     IO Pin 021 (P2-03): StepGen #7, pin 
Direction (Output)
[ 2136.149172] hm2/hm2_5i25.0:     IO Pin 022 (P2-16): StepGen #7, pin Step 
(Output)
[ 2136.149174] hm2/hm2_5i25.0:     IO Pin 023 (P2-04): IOPort
[ 2136.149176] hm2/hm2_5i25.0:     IO Pin 024 (P2-17): IOPort
[ 2136.149179] hm2/hm2_5i25.0:     IO Pin 025 (P2-05): PWMGen #0, pin Out0 (PWM 
or Up) (Output)
[ 2136.149182] hm2/hm2_5i25.0:     IO Pin 026 (P2-06): PWMGen #0, pin 
Not-Enable (Output)
[ 2136.149185] hm2/hm2_5i25.0:     IO Pin 027 (P2-07): PWMGen #0, pin Out1 (Dir 
or Down) (Output)
[ 2136.149187] hm2/hm2_5i25.0:     IO Pin 028 (P2-08): IOPort
[ 2136.149189] hm2/hm2_5i25.0:     IO Pin 029 (P2-09): IOPort
[ 2136.149191] hm2/hm2_5i25.0:     IO Pin 030 (P2-10): IOPort
[ 2136.149194] hm2/hm2_5i25.0:     IO Pin 031 (P2-11): Encoder #1, pin Index 
(Input)
[ 2136.149196] hm2/hm2_5i25.0:     IO Pin 032 (P2-12): Encoder #1, pin B (Input)
[ 2136.149199] hm2/hm2_5i25.0:     IO Pin 033 (P2-13): Encoder #1, pin A (Input)
I changed num_stepgen=8 in config string  rather than 9 earlier.
So, the highest numbered stepgen become GPIO pins as 023 and 024 .
I tried to redirect the PWM output to one of this pin as follows but it says 
this pin dosen't exist
net pwm-generate    => hm2_5i25.0.gpio.023

1.) How should I use this pin now ?
And also, I called write_gpio function as follows within base thread:
 addf hm2_5i25.0.write_gpio base-thread
BRAdit
      From: andy pugh <[email protected]>
 To: adit bhargava <[email protected]> 
Cc: Enhanced Machine Controller (EMC) <[email protected]>
 Sent: Friday, April 22, 2016 4:50 PM
 Subject: Re: [Emc-users] Need to add a faster thread base-thread with 100 
microseconds, Compilation changes required !!!
   
On 22 April 2016 at 15:43, adit bhargava <[email protected]> wrote:
> Does this mean that if I redirect the PWM output to 5i25 GPIO pin(after
> disabling the stepgen),
> the PWM signal will be forwarded to 7i76 also ?

No, the 5i25 pins currently associated with the highest-numbered
stepgen are hard-wired to the port that you (probably) have the 7i78
connected to.
Though you could swap the 7i78 and 7i76 ports.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

  
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to