Brother TC-225 Retrofit and Robot integration

More
5 years 5 months ago - 5 years 5 months ago #210639 by timfaber

tommylight wrote:

timfaber wrote: I also ran into the problem that M5 doesn't directly brake the spindle, is there some way to remap M5 to do something like M19 R0 or S1 M3 and then S0 since the M3 forces the spindle to change rather rapidly.

I am pretty sure that has to be set on the VFD, the deceleration slope or full brake if the VFD had braking resistor.

It's a servo drive(+-10V) not a vfd, i suppose it want to see 0V for 0 rpm but somehow m5 doesn't accomplish that but S1 M3 does, the rapid deceleration that is.
Last edit: 5 years 5 months ago by timfaber.

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago #210644 by tommylight
Might be that M5 disables PWM altogether while S1 does not.
Should be easy to test, in hal set the spinena pin together with servo enable, it is separate on 7i77 (assuming using 7i77) and test with M5, it should bring it to a stop immediately.

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago #210664 by timfaber
I've got a 7i97, but in principle you where right. I had pwm enabled on machine startup and now m5 stops the spindle in something like 0.2s. Only problem was that it drifted away, so used a time delay to disable the pwm enable it after 0.25s or so.

Now im working on getting the pid settings of the spindle right for indexing. Im using near to set spindle-is-oriented, with orient.position and orient.command. Since i can seem to get orient.is-oriented to work, while my poserr is smaller than tolerance.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago #210717 by andypugh
I have "add spindle homing to LinuxCNC"on my to-do list. But I haven't done it yet.

Basically you need to set index-enable true, then rotate the spindle through index. That should be all that is required.

You can do the first step just by adding a "setp" command in the HAL file. The slightly more complicated part is ensuring that the spindle rotates through index (to reset the encoder counts) before the first orient command.

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago #210725 by timfaber

andypugh wrote: I have "add spindle homing to LinuxCNC"on my to-do list. But I haven't done it yet.

Basically you need to set index-enable true, then rotate the spindle through index. That should be all that is required.

You can do the first step just by adding a "setp" command in the HAL file. The slightly more complicated part is ensuring that the spindle rotates through index (to reset the encoder counts) before the first orient command.


managed to get 90% of the tool change script to work, needs some timing adjustment and the "spindle homing". Will dive into that next weekend:laugh:

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #211878 by timfaber
So I would like to connect a potentiometer to linuxcnc to control feed/rapid and spindle override. What's the best way to do this?

Will post an update about the progress of the machine pretty soon.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum