- Posts: 1029
- Thank you received: 286
Brother TC-225 / TC-229 adventure!
- ihavenofish
- Offline
- Platinum Member
-
Less
More
9 years 2 months ago #97675
by ihavenofish
Replied by ihavenofish on topic Brother TC-225 / TC-229 adventure!
ok.
would account for the deceleration track? the stop is not triggered by reading the encoder position,. but the deceleration track as it has to brake precisely.
would account for the deceleration track? the stop is not triggered by reading the encoder position,. but the deceleration track as it has to brake precisely.
Please Log in or Create an account to join the conversation.
- ihavenofish
- Offline
- Platinum Member
-
Less
More
- Posts: 1029
- Thank you received: 286
9 years 2 months ago #97688
by ihavenofish
Replied by ihavenofish on topic Brother TC-225 / TC-229 adventure!
ok i can command to atc to go to any tool now in the shortest distance.
sorry andy, i did it in g/m code, i know you want people to use crousel so you can improve and refine it, but it made more sense inside my non programmers head the way i did it in g/m code.
the obstacles i had were:
the encoder and deceleration tracks line up on a rising edge clockwise, so you could wait for the decal edge, and ask where it was, then decide if you needed to stop.
trouble was, the other direction, nothing lined up, and you needed to stop the motor and dwell half a second to read the encoder correctly. any faster and it missed its stop.
so, i went more simple and just counted how many spots i was supposed to move, stopped the turret, and THEN asked for position. i will have it toss up an error if it was the wrong position.
the second issue i had was that weighted sums are s32, and m66 is expecting a bit. so i just did the weighted sum inside the g code. works fine, just a few more lines of code.
tomorrows tack is to stick it in a m6 called file and work out the axis motion portion.
thanks for the help andy, id be totally lost without your input
sorry andy, i did it in g/m code, i know you want people to use crousel so you can improve and refine it, but it made more sense inside my non programmers head the way i did it in g/m code.
the obstacles i had were:
the encoder and deceleration tracks line up on a rising edge clockwise, so you could wait for the decal edge, and ask where it was, then decide if you needed to stop.
trouble was, the other direction, nothing lined up, and you needed to stop the motor and dwell half a second to read the encoder correctly. any faster and it missed its stop.
so, i went more simple and just counted how many spots i was supposed to move, stopped the turret, and THEN asked for position. i will have it toss up an error if it was the wrong position.
the second issue i had was that weighted sums are s32, and m66 is expecting a bit. so i just did the weighted sum inside the g code. works fine, just a few more lines of code.
tomorrows tack is to stick it in a m6 called file and work out the axis motion portion.
thanks for the help andy, id be totally lost without your input
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
9 years 2 months ago #97736
by andypugh
There are HAL functions that convert between data types, but doing it in the G-code might be tidier.
Replied by andypugh on topic Brother TC-225 / TC-229 adventure!
ihavenofish wrote: the second issue i had was that weighted sums are s32, and m66 is expecting a bit. so i just did the weighted sum inside the g code. works fine, just a few more lines of code.)
There are HAL functions that convert between data types, but doing it in the G-code might be tidier.
Please Log in or Create an account to join the conversation.
- ihavenofish
- Offline
- Platinum Member
-
Less
More
- Posts: 1029
- Thank you received: 286
9 years 2 months ago #97746
by ihavenofish
Replied by ihavenofish on topic Brother TC-225 / TC-229 adventure!
ok, were stuck on remapping m6.
i put the subroutine path in the ini, and remap m6 line pointing to the ngc file.
it still pops up the "please remove tool" dialogue and does nothing else, so i assume I'm missing something either in the ini, or in hal, or both.
there was an example id found before, but i cant seem to find now.
i put the subroutine path in the ini, and remap m6 line pointing to the ngc file.
it still pops up the "please remove tool" dialogue and does nothing else, so i assume I'm missing something either in the ini, or in hal, or both.
there was an example id found before, but i cant seem to find now.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
9 years 2 months ago #97747
by andypugh
Replied by andypugh on topic Brother TC-225 / TC-229 adventure!
It sounds like you still have hal_manualtoolchange in the HAL file.
Please Log in or Create an account to join the conversation.
- ihavenofish
- Offline
- Platinum Member
-
Less
More
- Posts: 1029
- Thank you received: 286
9 years 2 months ago #97748
by ihavenofish
Replied by ihavenofish on topic Brother TC-225 / TC-229 adventure!
aha. that's a safe bet, cause i sure didn't delete it 
ill be in front of the machine in a few hours, ill check it over.
thanks!
ill be in front of the machine in a few hours, ill check it over.
thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 2.628 seconds