Ok I have attached a halcmd file that demonstrates the issue.

The debug.txt contains the output of the halrun session.

Notice that after the position-cmd is set, position-fb has not changed.

The firmware on the 5i25 is 5i25_7i85sspx2


Thanks,
   Curt

On Saturday, January 28, 2017 at 2:43:18 AM UTC-5, Schooner wrote:
>
> Without seeing your configuration files, we cannot even begin to guess.
>
> If you have done the same as John Fairbanks on the 7i80 post, you may have 
> omitted the trajectory planner
>
> *loadrt tp*
>
> after trivkins or whatever is loaded and not specified
>
> *tp=tp kins=trivkins* at the end of the motmod configuration line
>
> These are specific to Machinekit and without them your config will act 
> more like a sim.
>
> See the sample configs for using 5i25 with Machinekit
>
>
> https://github.com/machinekit/machinekit/blob/master/configs/hm2-stepper/hm2-stepper-5i25.hal#L33
>
> regards
>
>
>
> On 27/01/2017 22:07, Curtis Dutton wrote:
>
> I'm experimenting with running my laser engraver with machinekit. 
> Currently I'm running linuxcnc master and have it set up and operating 
> properly. 
>
>
> The trouble I'm having is that my stepgens and my pwmgen doesn't seem to 
> be working properly. The signals are all wired up properly, I have my 
> threads scheduled properly etc....
>
>
> The stepgen shows it is enabled.
>
> Anyhow when I send my position command to the stepgen nothing seems to 
> happen The position-feedback from the stepgen does not change.
>
> I also have a 7I84 hooked up to the 5i25 through sserial. All of those 
> pins show up in hal so communication is working properly there. I can set 
> pins on the 7i84 interface and have physically verified that they are 
> changing properly.
>
>
> It looks like the 5i25 is not responding even though it works properly 
> under linuxcnc.
>
>
> Any suggesstions on what could be going on? Any tips or things I should do 
> to debug this?
>
>
> Thanks,
>    Curt
> -- 
> website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
> https://github.com/machinekit
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> Visit this group at https://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Attachment: debug.hal
Description: Binary data

user@localhost:~/machinekit/configs/debug$ halrun -I -i debug.ini  debug.hal
msgd:0 stopped
rtapi:0 stopped
debug.hal:6: Realtime module 'hostmot2' loaded
debug.hal:9: Realtime module 'hm2_pci' loaded
debug.hal:11: Function 'hm2_5i25.0.read' added to thread 'servo-thread'
debug.hal:12: Function 'hm2_5i25.0.write' added to thread 'servo-thread'
debug.hal:22: setting parameter 'hm2_5i25.0.stepgen.00.control-type' to '0'
debug.hal:22: Pin 'hm2_5i25.0.stepgen.00.control-type' set to 0
debug.hal:23: setting parameter 'hm2_5i25.0.stepgen.00.step_type' to '0'
debug.hal:23: Pin 'hm2_5i25.0.stepgen.00.step_type' set to 0
debug.hal:24: setting parameter 'hm2_5i25.0.stepgen.00.maxaccel' to '0'
debug.hal:24: Pin 'hm2_5i25.0.stepgen.00.maxaccel' set to 0
debug.hal:25: setting parameter 'hm2_5i25.0.stepgen.00.maxvel' to '0'
debug.hal:25: Pin 'hm2_5i25.0.stepgen.00.maxvel' set to 0
debug.hal:26: setting parameter 'hm2_5i25.0.stepgen.00.dirhold' to '5000'
debug.hal:26: Pin 'hm2_5i25.0.stepgen.00.dirhold' set to 5000
debug.hal:27: setting parameter 'hm2_5i25.0.stepgen.00.dirsetup' to '5000'
debug.hal:27: Pin 'hm2_5i25.0.stepgen.00.dirsetup' set to 5000
debug.hal:28: setting parameter 'hm2_5i25.0.stepgen.00.steplen' to '5000'
debug.hal:28: Pin 'hm2_5i25.0.stepgen.00.steplen' set to 5000
debug.hal:29: setting parameter 'hm2_5i25.0.stepgen.00.stepspace' to '5000'
debug.hal:29: Pin 'hm2_5i25.0.stepgen.00.stepspace' set to 5000
debug.hal:30: setting parameter 'hm2_5i25.0.stepgen.00.position-scale' to 
'-208.335617032'
debug.hal:30: Pin 'hm2_5i25.0.stepgen.00.position-scale' set to -208.335617032
debug.hal:36: setting parameter 'hm2_5i25.0.stepgen.00.enable' to '1'
debug.hal:36: Pin 'hm2_5i25.0.stepgen.00.enable' set to 1
debug.hal:39: Realtime threads started
debug.hal:42: setting parameter 'hm2_5i25.0.stepgen.00.position-cmd' to '10'
debug.hal:42: Pin 'hm2_5i25.0.stepgen.00.position-cmd' set to 10

halcmd: show pin hm2_5i25.0.stepgen.00
Component Pins:
  Comp   Inst Type  Dir         Value  Name                                     
        Epsilon         Flags
    75        bit   IN          FALSE  hm2_5i25.0.stepgen.00.control-type       0
    75        s32   OUT             0  hm2_5i25.0.stepgen.00.counts             0
    75        float OUT           -10  hm2_5i25.0.stepgen.00.dbg_err_at_match   
0.000010        0
    75        float OUT             0  hm2_5i25.0.stepgen.00.dbg_ff_vel         
0.000010        0
    75        float OUT           -10  
hm2_5i25.0.stepgen.00.dbg_pos_minus_prev_0.000010        0
    75        float OUT             0  hm2_5i25.0.stepgen.00.dbg_s_to_match     
0.000010        0
    75        s32   OUT             0  hm2_5i25.0.stepgen.00.dbg_step_rate      0
    75        float OUT             0  hm2_5i25.0.stepgen.00.dbg_vel_error      
0.000010        0
    75        u32   IN     0x00001388  hm2_5i25.0.stepgen.00.dirhold            0
    75        u32   IN     0x00001388  hm2_5i25.0.stepgen.00.dirsetup           0
    75        bit   IN           TRUE  hm2_5i25.0.stepgen.00.enable             0
    75        float IN              0  hm2_5i25.0.stepgen.00.maxaccel           
0.000010        0
    75        float IN              0  hm2_5i25.0.stepgen.00.maxvel             
0.000010        0
    75        float IN             10  hm2_5i25.0.stepgen.00.position-cmd       
0.000010        0
    75        float OUT            -0  hm2_5i25.0.stepgen.00.position-fb        
0.000010        0
    75        float IN      -208.3356  hm2_5i25.0.stepgen.00.position-scale     
0.000010        0
    75        u32   IN     0x00000000  hm2_5i25.0.stepgen.00.step_type          0
    75        u32   IN     0x00001388  hm2_5i25.0.stepgen.00.steplen            0
    75        u32   IN     0x00001388  hm2_5i25.0.stepgen.00.stepspace          0
    75        u32   IN     0x00000000  hm2_5i25.0.stepgen.00.table-data-0       0
    75        u32   IN     0x00000000  hm2_5i25.0.stepgen.00.table-data-1       0
    75        u32   IN     0x00000000  hm2_5i25.0.stepgen.00.table-data-2       0
    75        u32   IN     0x00000000  hm2_5i25.0.stepgen.00.table-data-3       0
    75        float IN              0  hm2_5i25.0.stepgen.00.velocity-cmd       
0.000010        0
    75        float OUT             0  hm2_5i25.0.stepgen.00.velocity-fb        
0.000010        0


Reply via email to