Author Topic: A-Axis TC  (Read 1569 times)

0 Members and 1 Guest are viewing this topic.

Offline TPS

  • Active Member
  • Posts: 1,121
    • View Profile
A-Axis TC
« on: December 13, 2017, 01:46:04 AM »
Hello together,

for the moment i am working on a retrofit of  a TongIL TNV40 Mill.
CS-Lab Controller, new servo motor's for axis , Mach3 aso.

now i have a little "fight" with the TC turn axis (A).
i configured in General config:

-A-Axis is angular
-Rot 360 rollover

positioning of A-Axis is as expected with the rollover at 360°

i have wiritten a small script witch calculates the nearest angle to the next expected tool (not an new idea).

so i get out a relative +/- angle to do the move to the TC Position.

so far so good.

G-code would look like this for example:

Situation:
TC P1 = 0
TC P2 = 30

A-Axis is at 0 (P1) and i want to move to P2(30)


'move incremental to P2
"G91 G1 A30 F800"

'do a absolute move to inviod angle Errors
"G90 G1 A30 F800"

ok this sample makes not much sense in this case, but if you have to go ccw for two ore thre positions, or at the rollpver it makes sense.
it is only to discribe the principal.


so now the real Problem:

'move incremental to P2
"G91 G1 A30 F800"
is working like expected, axis is moving +30deg, and axis dro is 30  at the end

'do a absolute move to inviod angle Errors
"G90 G1 A30 F800"
it does a complete turn in CW direction, an can not understand why.


i am not sure wether this is a Mach3 Problem, or CS-Lab Controller issue.

so i would prechiate if someone could do this simple test on a different Controller,
to figure out on witch side the Problem is.

Thank You in advance, and excuse my bad english.

Thomas
 











anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline TPS

  • Active Member
  • Posts: 1,121
    • View Profile
Re: A-Axis TC
« Reply #1 on: December 13, 2017, 11:37:52 AM »
Hi,

sometimes life is so easy.

the Config-General Config-> Ang Short Rot on G0 was the clue.

now i can do absolute positionigs Mach3 uses the shortest way , everyting perfect.

i can book this 4-5 hours of working arround under "getting some new experience"

Thomas
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline TOTALLYRC

  • Active Member
  • Posts: 831
    • View Profile
Re: A-Axis TC
« Reply #2 on: December 13, 2017, 05:45:55 PM »
Thanks for posting the solution.

Mike

P.S. My Bavarian is much worse than your English. LOL
We never have the time or money to do it right the first time, but we somehow manage to do it twice and then spend the money to get it right.