working on getting stepper signals out of mesa 6i24 board

More
6 years 6 months ago #165027 by owhite
Hey people I loaded a custom bitfile into my 6i24 board with stepgens in the config file. I would like to do a test to create a bare bones stepper output on some of the pins. Let's go through some halcmds...

Code:
$ halcmd -kf loadrt hostmot2 loadrt hm2_pci loadrt threads name1=card_thread period1=1000000 addf hm2_5i24.0.read card_thread addf hm2_5i24.0.write card_thread start show pin hm2_5i24.0.stepgen.00 Component Pins: Owner Type Dir Value Name 9 bit IN FALSE hm2_5i24.0.stepgen.00.control-type 9 s32 OUT 0 hm2_5i24.0.stepgen.00.counts 9 float OUT 0 hm2_5i24.0.stepgen.00.dbg_err_at_match 9 float OUT 0 hm2_5i24.0.stepgen.00.dbg_ff_vel 9 float OUT 0 hm2_5i24.0.stepgen.00.dbg_pos_minus_prev_cmd 9 float OUT 0 hm2_5i24.0.stepgen.00.dbg_s_to_match 9 s32 OUT 0 hm2_5i24.0.stepgen.00.dbg_step_rate 9 float OUT 0 hm2_5i24.0.stepgen.00.dbg_vel_error 9 bit IN FALSE hm2_5i24.0.stepgen.00.enable 9 float IN 0 hm2_5i24.0.stepgen.00.position-cmd 9 float OUT 0 hm2_5i24.0.stepgen.00.position-fb 9 float IN 0 hm2_5i24.0.stepgen.00.velocity-cmd 9 float OUT 0 hm2_5i24.0.stepgen.00.velocity-fb

my question is what commands should I run to see look at step and direction using and oscilloscope? The following did not seem to work:
Code:
setp hm2_5i24.0.stepgen.00.step_type 0 setp hm2_5i24.0.stepgen.00.velocity-cmd 12.0 setp hm2_5i24.0.stepgen.00.enable true

Any suggestions? THANKS!

Please Log in to join the conversation.

More
6 years 6 months ago #165028 by PCW
Try setting the step type to 1

Please Log in to join the conversation.

More
6 years 6 months ago #165031 by owhite
The line is just staying low. Other ideas?

Please Log in to join the conversation.

More
6 years 6 months ago #165032 by PCW
Sorry, not step type but rather control-type

Please Log in to join the conversation.

More
6 years 6 months ago #165033 by owhite
right again! Thank you.

Please Log in to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum