Machine Simulation (reverse A axis direction)

Machine Simulation (reverse A axis direction)

Anonymous
1,157 Views
5 Replies
Message 1 of 6

Machine Simulation (reverse A axis direction)

Anonymous
Not applicable

I have made a simulation file with a Haas VF2 with a TRT160 rotary attached. the simulation file functions well, the issue I am having is that my post processor will only post A- directions instead of A+. essentially I want my rotary platter facing the operator side when doing my 5 axis work so I can see the part easier.  I can get the simulation file to change A axis directions in the machine builder settings, but I am having a hard time figuring out how to get my NC code to post as an A+ direction. I know this can be done somewhere in the post configuration, can anyone point me to the right area to edit? I am using the latest Haas Next Generation post. I know the axis direction can be changed in the rotary settings file on the Haas control (I used to work as an Applications Engineer) but I would like to avoid doing this and would prefer being able to control the direction in the post itself. 

 

any help would be much appreciated!

 

0 Likes
Accepted solutions (2)
1,158 Views
5 Replies
Replies (5)
Message 2 of 6

mattdlr89
Advisor
Advisor
Accepted solution

Not at my computer at the mo so can’t provide more details. However you should be able to go to the machine library then edit the machine configuration. If you got to the A axis there should be a preference drop down menu for “positive, don’t care or negative” this should be the setting you’re looking for. 

0 Likes
Message 3 of 6

Anonymous
Not applicable
Accepted solution

Thanks for the reply. I have played with that setting and not seeing any difference. I may be doing something wrong in the simulation file, but what I mean is that in my actual posted NC code, the A axis is always in the negative direction. When I change the setting you mentioned, the simulation turns in the correct manner, but the actual posted code is opposite from the simulation. Again I may be doing something wrong but I know there should be a way to force A in the positive direction, regardless of the machine simulation file settings. 

0 Likes
Message 4 of 6

mattdlr89
Advisor
Advisor

Ok In that case I think you need to go back to that page where the setting is but change the orientation for the A axis. The x value is probably set to 1 but you need to change that to -1. This should correct the machine simulation for you. 

Hope you follow that if not I’ll try and be clearer when I’m next at my computer with a screenshot. 

0 Likes
Message 5 of 6

programming2C78B
Advisor
Advisor

check around line ~445 for this in your HAAS post

if (hasA) { // A Axis - For horizontal machines and trunnions
var dir = properties.hasAAxis == "reversed" ? -1 : 1;
if (hasC || hasB) {
var aMin = (dir == 1) ? -120 - 0.0001 : -30 - 0.0001;
var aMax = (dir == 1) ? 30 + 0.0001 : 120 + 0.0001;
aAxis = createAxis({coordinate:0, table:true, axis:[dir, 0, 0], range:[aMin, aMax], preference:dir});
} else {
aAxis = createAxis({coordinate:0, table:true, axis:[dir, 0, 0], cyclic:true});
}

Please click "Accept Solution" if what I wrote solved your issue!
0 Likes
Message 6 of 6

Anonymous
Not applicable

This was actually the issue, I guess it either wasn't saving or I was re-uploading the simulation file incorrectly, or a combo of both. Thanks for all the help! glad it is working now.

0 Likes