- Posts: 19899
- Thank you received: 4655
CNC Sewing machine question
- andypugh
- Offline
- Moderator
-
(So that the command value is a step rate, not a position)
Please Log in or Create an account to join the conversation.
- ahmetbm
- Offline
- Junior Member
-
- Posts: 34
- Thank you received: 1
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
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
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?
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.
- ahmetbm
- Offline
- Junior Member
-
- Posts: 34
- Thank you received: 1
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.
Let me clear. I have two modules that i attached the images of manual. I am cunfused which one should i use. At the begining i used Axis DAC module but the machine entered estop and did not come out until i unplug AxisDAC. Then i tried Axis Differential Line driver(breakout). This time the velocity control motors starts to spinning immediately when i power on machine.
Which of these modules can be used? In hal which pins should i use?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
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.
- ahmetbm
- Offline
- Junior Member
-
- Posts: 34
- Thank you received: 1
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,
As your advice, i made my connections and started linuxcnc from terminal, but it enters estop immediately and won't come out.
I attached ini, hal, terminal output and linuxcnc status, i can not figure out what is wrong? In the image there are warnings when i press f1 multiple times, saying "task: main loop took ......... seconds"
I appreciate any help.
Please Log in or Create an account to join the conversation.