- Posts: 17524
- Thank you received: 0
Brother TC-225 Retrofit and Robot integration
or analog out scale backwards, so you get a runaway.
These need to be fixed to make orient work
Please Log in to join the conversation.
[SPINDLE_0]
P = 1
I = 0
D = 0
FF0 = 1
FF1 = 0
FF2 = 0
BIAS = 0
DEADBAND = 0.0001
MAX_OUTPUT = 6000
ENCODER_SCALE = 4096
OUTPUT_SCALE = -6000
output scale sign changed to minus and set p equal to one again
Please Log in to join the conversation.
timfaber wrote: Couldn't make much sense of the linuxcnc.org/docs/2.8/html/man/man9/orient.9.html
Have you seen wiki.linuxcnc.org/cgi-bin/wiki.pl?SpindleOrient ?
Please Log in to join the conversation.
Now for which route to choose:
1) write my own hal file to use spindle indexing
2) use LaserK3000's github.com/laserK3000/tc215Retrofit/blob...215/brotherTC215.hal , which is using machinekit and has a brother TC215 instead of a TC225
3) Use orient V2? forum.linuxcnc.org/10-advanced-configura...ent-revised?start=50
Now I'm kind of leaning towards writing it myself since that would mean i really understand what is going on. And i really only need to index for a toolchange. point 2 and 3 seem to be much more capable and complicated than i need. My spindle is a servo motor with a +-10V drive
Any advice would be appreciated!
Please Log in to join the conversation.
I've got the orient working using the example Andy Pugh
Now for the homing of the spindle, it has a a, b and z signal so i should be able to home the spindle using that. or at least make sure M19 R0 always ends up in the same orientation. I think this should be doable only need to figure out how. And i also want to home x,y and z using the z pulse. Any pointers in the right direction are welcome!
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.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
I am pretty sure that has to be set on the VFD, the deceleration slope or full brake if the VFD had braking resistor.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.
Please Log in to join the conversation.
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.tommylight wrote:
I am pretty sure that has to be set on the VFD, the deceleration slope or full brake if the VFD had braking resistor.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.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
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 to join the conversation.
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.
Please Log in to join the conversation.
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 to join the conversation.
