Connect Siggen to Stepgen?
- Todd Zuercher
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 4708
- Thank you received: 1443
12 Mar 2026 15:37 #344172
by Todd Zuercher
Connect Siggen to Stepgen? was created by Todd Zuercher
I am working at tuning some older digital (step/dir command) servos, that don't have any auto tuning capabilities. In order to avoid needing to use an oscillo scope I would like to be able to connect a square wave siggen signal to the velocity command input of an unused stepgen on a 7i76eu (I also have a 5i85 for encoder feedback.) I loaded the siggen, and made the hal connections, set all the parameters and enabled everything from halshow. I can see the input for the stepgen's velocity-cmd changing, but I don't think any steps are being generated (no changes of any of the stepgen's count or feedback pins.
Where am I going wrong? Is this another situation where changes to parameter pins are only effective in a hal file at startup?
I was hoping to just create a little hal file that I can load manually after Linuxcnc was running to set tuning parameters then plug one of the drives step/dir plugs into the testing plug to run the tuning (moving them back to their regular position when running.)
Where am I going wrong? Is this another situation where changes to parameter pins are only effective in a hal file at startup?
I was hoping to just create a little hal file that I can load manually after Linuxcnc was running to set tuning parameters then plug one of the drives step/dir plugs into the testing plug to run the tuning (moving them back to their regular position when running.)
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17779
- Thank you received: 5200
12 Mar 2026 16:10 - 12 Mar 2026 18:02 #344177
by PCW
Replied by PCW on topic Connect Siggen to Stepgen?
Did you set the stepgen to control mode 1? (velocity mode)
Is the stepgen enabled?
I use stepgens all the time for encoder and frequency counter testing
so this will work.
Sserial parameters can only be set in the hal file, but this is not true of general
hostmot2 parameters, these can be changed at any time. Even though hostmot2 parameters
can be changed at any time, this may lead to unexpected behaviour as these are typically
used as setup rather than process variables.
Also of you want a step frequency change, you will have so set the stepgen acceleration
to a large number.
Is the stepgen enabled?
I use stepgens all the time for encoder and frequency counter testing
so this will work.
Sserial parameters can only be set in the hal file, but this is not true of general
hostmot2 parameters, these can be changed at any time. Even though hostmot2 parameters
can be changed at any time, this may lead to unexpected behaviour as these are typically
used as setup rather than process variables.
Also of you want a step frequency change, you will have so set the stepgen acceleration
to a large number.
Last edit: 12 Mar 2026 18:02 by PCW.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 4708
- Thank you received: 1443
12 Mar 2026 18:33 #344186
by Todd Zuercher
Replied by Todd Zuercher on topic Connect Siggen to Stepgen?
I'm not sure if I set the control mode to 1. I'll have to check that. I thought I had most of the settings the same as the stepgens that were in use, and those are commanded by velocity command from the PID.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 4708
- Thank you received: 1443
12 Mar 2026 18:36 #344188
by Todd Zuercher
Replied by Todd Zuercher on topic Connect Siggen to Stepgen?
I think I overlooked the control type (because its in the pin list rather than a parameter.)
Thanks
Thanks
Please Log in or Create an account to join the conversation.
Time to create page: 0.863 seconds