CNC Sewing machine question

More
6 years 9 months ago #155028 by andypugh
In PID mode you would need to have the slave run in velocity mode too.

Please Log in to join the conversation.

More
6 years 9 months ago #155050 by ahmetbm
Replied by ahmetbm on topic CNC Sewing machine question
I am having trouble with connecting general mechatronics axis dac, can anybody help me by giving instructions?

When i plug gm axis dac, linuxcnc enters estop mode and can not lift up estop button from axis gui, why this may happen?

Please Log in to join the conversation.

More
6 years 9 months ago #155175 by andypugh
This sounds like you might have a wiring fault that is pulling down one of your control voltages.

I have never used General Mechatronics, so this is speculation.

What are you trying to control with the DAC?

Please Log in to join the conversation.

More
6 years 9 months ago #155258 by ahmetbm
Replied by ahmetbm on topic CNC Sewing machine question

andypugh wrote: This sounds like you might have a wiring fault that is pulling down one of your control voltages.

I have never used General Mechatronics, so this is speculation.

What are you trying to control with the DAC?


I want to run motor in velocity control mode, So i was thinking the gm axis dac may help.

Please Log in to join the conversation.

More
6 years 9 months ago #155270 by andypugh
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 to join the conversation.

More
6 years 9 months ago #155298 by ahmetbm
Replied by ahmetbm on topic CNC Sewing machine question

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 to join the conversation.

More
6 years 9 months ago #155308 by andypugh

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 to join the conversation.

More
6 years 9 months ago #155315 by ahmetbm
Replied by ahmetbm on topic CNC Sewing machine question

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 to join the conversation.

More
6 years 9 months ago #155840 by andypugh
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 to join the conversation.

More
6 years 8 months ago #156695 by ahmetbm
Replied by ahmetbm on topic CNC Sewing machine question

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"

Attachment not found


I appreciate any help.

Attachment not found

Attachment not found

Attachment not found

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.130 seconds
Powered by Kunena Forum