- Posts: 19311
- Thank you received: 4655
Please Log in or Create an account to join the conversation.
andypugh wrote: An alternative would be to configure the stepgen in to velocity mode.
(So that the command value is a step rate, not a position)
Please Log in or Create an account to join the conversation.
ahmetbm wrote:
andypugh wrote: An alternative would be to configure the stepgen in to velocity mode.
(So that the command value is a step rate, not a position)
I was trying that, however when i made the connections and power on the machine, the velocity control mode motors starts to spinning immediately. I connected the "dac serial line +" to driver's reference input. What is wrong, i am confused?
Please Log in or Create an account to join the conversation.
andypugh wrote:
Is this two questions or one?
Did you change the stepgens to velocity mode? When you did that, what did you connect the velocity command pin to in the HAL?
To use velocity mode to slave the motors you need to add a position PID component to the HAL, so the master motor position is the command input, the slave motor position is the feedback and the slave motor velocity is connected to the PID output. Then the PID would need to be tuned.
Do you know how PID works?
I am puzzled about why a DAC would have a serial line.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
andypugh wrote: I have never used GM hardware, but I would expect that some reconfiguraiton would be needed when switching from step to DAC
It is generally useful to start LinuxCNC from the command line to see if any useful error reports are generated,
Please Log in or Create an account to join the conversation.