EliH

Generic HAAS TR 5AXIS

Recommended Posts

Hi,

I'm new to the multi axis world. I've been programing 3axis and I can say that I'm confident in any 3axis programing. However when I got into 5th axis I've been dealing with a lot of problems. Mainly posts as I don't know and was not taught in class how to edit the post to suit our machine. I'm currently working with HAAS TR210. The problem I've been having is with the transition. For example with the same tool, every time I want to rotate to cut at a different angle it would generate every single A and B movement which cause stuttering. What I have to do is having to add the same tool but different number then change it in the program later to simplify the movement.  Is there a way to edit the post to tell the machine to retract rotate with a single code line ? If you guys can help me out I would really appreciate it.  I just want to generate tool path without having to think ahead and add a whole bunch of tools for something simple.

Like this:

G20
G0 G17 G40 G49 G80 G90
G0 G28 G91 Z0.
(1/2 FLAT ENDMILL|TOOL - 1|DIA. OFF. - 1|LEN. - 1| DIA. - .5)
M11
M13
T1 M6
G0 G55 G90 X-2.05 Y2.015 B0. A0. S1069 M3
M10
M12
G43 H1 Z8.328 M8
G1 Z8.128 F3.21
Y1.515 F6.41
G3 X-1.55 Y1.015 I.5
G1 X1.55
G3 X2.05 Y1.515 J.5
G1 Y2.015
Z8.328 F3.21
M11
M13
G0 B1. A.5
M10
M12
Y1.9517
Z8.304
M11
M13
B2. A1.
M10
M12
Y1.8884
Z8.2799
M11
M13
B3. A1.5
M10
M12
Y1.8251
Z8.2559
M11
M13
B4. A2.
M10
M12
Y1.7618
Z8.2318
M11
M13
B5. A2.5
M10
M12
Y1.6985
Z8.2078
M11
M13
B6. A3.
M10
M12
Y1.6352
Z8.1837
M11
M13
B7. A3.5
M10
M12
Y1.5719
Z8.1597
M11
M13
B8. A4.
M10
M12
Y1.5086
Z8.1356
M11
M13
B9. A4.5
M10
M12
Y1.4453
Z8.1116
M11
M13
B10. A5.
M10
M12
Y1.3821
Z8.0876
M11
M13
B11. A5.5
M10
M12
Y1.3188
Z8.0635
M11
M13
B12. A6.
M10
M12
Y1.2555
Z8.0395
M11
M13
B13. A6.5
M10
M12
Y1.1922
Z8.0154
M11
M13
B14. A7.
M10
M12
Y1.1289
Z7.9914
M11
M13
B15. A7.5
M10
M12
Y1.0656
Z7.9673
M11
M13
B16. A8.
M10
M12
Y1.0023
Z7.9433
M11
M13
B17. A8.5
M10
M12
Y.939
Z7.9192
M11
M13
B18. A9.
M10
M12
Y.8757
Z7.8952
M11
M13
B19. A9.5
M10
M12
Y.8124
Z7.8712
M11
M13
B20. A10.
M10
M12
Y.7491
Z7.8471
M11
M13
B21. A10.5
M10
M12
Y.6858
Z7.8231
M11
M13
B22. A11.
M10
M12
Y.6225
Z7.799
M11
M13
B23. A11.5
M10
M12
Y.5592
Z7.775
M11
M13
B24. A12.
M10
M12
Y.4959
Z7.7509
M11
M13
B25. A12.5
M10
M12
Y.4326
Z7.7269
M11
M13
B26. A13.
M10
M12
Y.3693
Z7.7028
M11
M13
B27. A13.5
M10
M12
Y.3061
Z7.6788
M11
M13
B28. A14.
M10
M12
Y.2428
Z7.6548
M11
M13
B29. A14.5
M10
M12
Y.1795
Z7.6307
M11
M13
B30. A15.
M10
M12
Y.1162
Z7.6067
M11
M13
B31. A15.5
M10
M12
Y.0529
Z7.5826
M11
M13
B32. A16.
M10
M12
Y-.0104
Z7.5586
M11
M13
B33. A16.5
M10
M12
Y-.0737
Z7.5345
M11
M13
B34. A17.
M10
M12
Y-.137
Z7.5105
M11
M13
B35. A17.5
M10
M12
Y-.2003
Z7.4864
M11
M13
B36. A18.
M10
M12
Y-.2636
Z7.4624
M11
M13
B37. A18.5
M10
M12
Y-.3269
Z7.4384
M11
M13
B38. A19.
M10
M12
Y-.3902
Z7.4143
M11
M13
B39. A19.5
M10
M12
Y-.4535
Z7.3903
M11
M13
B40. A20.
M10
M12
Y-.5168
Z7.3662
M11
M13
B41. A20.5
M10
M12
Y-.5801
Z7.3422
M11
M13
B42. A21.
M10
M12
Y-.6434
Z7.3181
M11
M13
B43. A21.5
M10
M12
Y-.7067
Z7.2941
M11
M13
B44. A22.
M10
M12
Y-.77
Z7.27
M11
M13
B45. A22.5
M10
M12
Y-.8333
Z7.246
M11
M13
B46. A23.
M10
M12
Y-.8965
Z7.222
M11
M13
B47. A23.5
M10
M12
Y-.9598
Z7.1979
M11
M13
B48. A24.
M10
M12
Y-1.0231
Z7.1739
M11
M13
B49. A24.5
M10
M12
Y-1.0864
Z7.1498
M11
M13
B50. A25.
M10
M12
Y-1.1497
Z7.1258
M11
M13
B51. A25.5
M10
M12
Y-1.213
Z7.1017
M11
M13
B52. A26.
M10
M12
Y-1.2763
Z7.0777
M11
M13
B53. A26.5
M10
M12
Y-1.3396
Z7.0536
M11
M13
B54. A27.
M10
M12
Y-1.4029
Z7.0296
M11
M13
B55. A27.5
M10
M12
Y-1.4662
Z7.0056
M11
M13
B56. A28.
M10
M12
Y-1.5295
Z6.9815
M11
M13
B57. A28.5
M10
M12
Y-1.5928
Z6.9575
M11
M13
B58. A29.
M10
M12
Y-1.6561
Z6.9334
M11
M13
B59. A29.5
M10
M12
Y-1.7194
Z6.9094
M11
M13
B60. A30.
M10
M12
Y-1.7827
Z6.8853
M11
M13
B61. A30.5
M10
M12
Y-1.846
Z6.8613
M11
M13
B62. A31.
M10
M12
Y-1.9093
Z6.8372
M11
M13
B63. A31.5
M10
M12
Y-1.9726
Z6.8132
M11
M13
B64. A32.
M10
M12
Y-2.0358
Z6.7892
M11
M13
B65. A32.5
M10
M12
Y-2.0991
Z6.7651
M11
M13
B66. A33.
M10
M12
Y-2.1624
Z6.7411
M11
M13
B67. A33.5
M10
M12
Y-2.2257
Z6.717
M11
M13
B68. A34.
M10
M12
Y-2.289
Z6.693
M11
M13
B69. A34.5
M10
M12
Y-2.3523
Z6.6689
M11
M13
B70. A35.
M10
M12
Y-2.4156
Z6.6449
M11
M13
B71. A35.5
M10
M12
Y-2.4789
Z6.6208
M11
M13
B72. A36.
M10
M12
Y-2.5422
Z6.5968
M11
M13
B73. A36.5
M10
M12
Y-2.6055
Z6.5728
M11
M13
B74. A37.
M10
M12
Y-2.6688
Z6.5487
M11
M13
B75. A37.5
M10
M12
Y-2.7321
Z6.5247
M11
M13
B76. A38.
M10
M12
Y-2.7954
Z6.5006
M11
M13
B77. A38.5
M10
M12
Y-2.8587
Z6.4766
M11
M13
B78. A39.
M10
M12
Y-2.922
Z6.4525
M11
M13
B79. A39.5
M10
M12
Y-2.9853
Z6.4285
M11
M13
B80. A40.
M10
M12
Y-3.0486
Z6.4044
M11
M13
B81. A40.5
M10
M12
Y-3.1119
Z6.3804
M11
M13
B82. A41.
M10
M12
Y-3.1751
Z6.3564
M11
M13
B83. A41.5
M10
M12
Y-3.2384
Z6.3323
M11
M13
B84. A42.
M10
M12
Y-3.3017
Z6.3083
M11
M13
B85. A42.5
M10
M12
Y-3.365
Z6.2842
M11
M13
B86. A43.
M10
M12
Y-3.4283
Z6.2602
M11
M13
B87. A43.5
M10
M12
Y-3.4916
Z6.2361
M11
M13
B88. A44.
M10
M12
Y-3.5549
Z6.2121
M11
M13
B89. A44.5
M10
M12
Y-3.6182
Z6.188
M11
M13
B90. A45.
M10
M12
Y-3.6815
Z6.164
M11
M13
B91. A45.5
M10
M12
Y-3.7448
Z6.14
M11
M13
B92. A46.
M10
M12
Y-3.8081
Z6.1159
M11
M13
B93. A46.5
M10
M12
Y-3.8714
Z6.0919
M11
M13
B94. A47.
M10
M12
Y-3.9347
Z6.0678
M11
M13
B95. A47.5
M10
M12
Y-3.998
Z6.0438
M11
M13
B96. A48.
M10
M12
Y-4.0613
Z6.0197
M11
M13
B97. A48.5
M10
M12
Y-4.1246
Z5.9957
M11
M13
B98. A49.
M10
M12
Y-4.1879
Z5.9716
M11
M13
B99. A49.5
M10
M12
Y-4.2512
Z5.9476
M11
M13
B100. A50.
M10
M12
Y-4.3144
Z5.9236
M11
M13
B101. A50.5
M10
M12
Y-4.3777
Z5.8995
M11
M13
B102. A51.
M10
M12
Y-4.441
Z5.8755
M11
M13
B103. A51.5
M10
M12
Y-4.5043
Z5.8514
M11
M13
B104. A52.
M10
M12
Y-4.5676
Z5.8274
M11
M13
B105. A52.5
M10
M12
Y-4.6309
Z5.8033
M11
M13
B106. A53.
M10
M12
Y-4.6942
Z5.7793
M11
M13
B107. A53.5
M10
M12
Y-4.7575
Z5.7552
M11
M13
B108. A54.
M10
M12
Y-4.8208
Z5.7312
M11
M13
B109. A54.5
M10
M12
Y-4.8841
Z5.7072
M11
M13
B110. A55.
M10
M12
Y-4.9474
Z5.6831
M11
M13
B111. A55.5
M10
M12
Y-5.0107
Z5.6591
M11
M13
B112. A56.
M10
M12
Y-5.074
Z5.635
M11
M13
B113. A56.5
M10
M12
Y-5.1373
Z5.611
M11
M13
B114. A57.
M10
M12
Y-5.2006
Z5.5869
M11
M13
B115. A57.5
M10
M12
Y-5.2639
Z5.5629
M11
M13
B116. A58.
M10
M12
Y-5.3272
Z5.5388
M11
M13
B117. A58.5
M10
M12
Y-5.3905
Z5.5148
M11
M13
B118. A59.
M10
M12
Y-5.4537
Z5.4908
M11
M13
B119. A59.5
M10
M12
Y-5.517
Z5.4667
M11
M13
B120. A60.
M10
M12
Y-5.5803
Z5.4427
M11
M13
B121. A60.5
M10
M12
Y-5.6436
Z5.4186
M11
M13
B122. A61.
M10
M12
Y-5.7069
Z5.3946
M11
M13
B123. A61.5
M10
M12
Y-5.7702
Z5.3705
M11
M13
B124. A62.
M10
M12
Y-5.8335
Z5.3465
M11
M13
B125. A62.5
M10
M12
Y-5.8968
Z5.3224
M11
M13
B126. A63.
M10
M12
Y-5.9601
Z5.2984
M11
M13
B127. A63.5
M10
M12
Y-6.0234
Z5.2744
M11
M13
B128. A64.
M10
M12
Y-6.0867
Z5.2503
M11
M13
B129. A64.5
M10
M12
Y-6.15
Z5.2263
M11
M13
B130. A65.
M10
M12
Y-6.2133
Z5.2022
M11
M13
B131. A65.5
M10
M12
Y-6.2766
Z5.1782
M11
M13
B132. A66.
M10
M12
Y-6.3399
Z5.1541
M11
M13
B133. A66.5
M10
M12
Y-6.4032
Z5.1301
M11
M13
B134. A67.
M10
M12
Y-6.4665
Z5.106
M11
M13
B135. A67.5
M10
M12
Y-6.5297
Z5.082
M11
M13
B136. A68.
M10
M12
Y-6.593
Z5.058
M11
M13
B137. A68.5
M10
M12
Y-6.6563
Z5.0339
M11
M13
B138. A69.
M10
M12
Y-6.7196
Z5.0099
M11
M13
B139. A69.5
M10
M12
Y-6.7829
Z4.9858
M11
M13
B140. A70.
M10
M12
Y-6.8462
Z4.9618
M11
M13
B141. A70.5
M10
M12
Y-6.9095
Z4.9377
M11
M13
B142. A71.
M10
M12
Y-6.9728
Z4.9137
M11
M13
B143. A71.5
M10
M12
Y-7.0361
Z4.8896
M11
M13
B144. A72.
M10
M12
Y-7.0994
Z4.8656
M11
M13
B145. A72.5
M10
M12
Y-7.1627
Z4.8416
M11
M13
B146. A73.
M10
M12
Y-7.226
Z4.8175
M11
M13
B147. A73.5
M10
M12
Y-7.2893
Z4.7935
M11
M13
B148. A74.
M10
M12
Y-7.3526
Z4.7694
M11
M13
B149. A74.5
M10
M12
Y-7.4159
Z4.7454
M11
M13
B150. A75.
M10
M12
Y-7.4792
Z4.7213
M11
M13
B151. A75.5
M10
M12
Y-7.5425
Z4.6973
M11
M13
B152. A76.
M10
M12
Y-7.6058
Z4.6732
M11
M13
B153. A76.5
M10
M12
Y-7.6691
Z4.6492
M11
M13
B154. A77.
M10
M12
Y-7.7323
Z4.6252
M11
M13
B155. A77.5
M10
M12
Y-7.7956
Z4.6011
M11
M13
B156. A78.
M10
M12
Y-7.8589
Z4.5771
M11
M13
B157. A78.5
M10
M12
Y-7.9222
Z4.553
M11
M13
B158. A79.
M10
M12
Y-7.9855
Z4.529
M11
M13
B159. A79.5
M10
M12
Y-8.0488
Z4.5049
M11
M13
B160. A80.
M10
M12
Y-8.1121
Z4.4809
M11
M13
B161. A80.5
M10
M12
Y-8.1754
Z4.4568
M11
M13
B162. A81.
M10
M12
Y-8.2387
Z4.4328
M11
M13
B163. A81.5
M10
M12
Y-8.302
Z4.4088
M11
M13
B164. A82.
M10
M12
Y-8.3653
Z4.3847
M11
M13
B165. A82.5
M10
M12
Y-8.4286
Z4.3607
M11
M13
B166. A83.
M10
M12
Y-8.4919
Z4.3366
M11
M13
B167. A83.5
M10
M12
Y-8.5552
Z4.3126
M11
M13
B168. A84.
M10
M12
Y-8.6185
Z4.2885
M11
M13
B169. A84.5
M10
M12
Y-8.6818
Z4.2645
M11
M13
B170. A85.
M10
M12
Y-8.7451
Z4.2404
M11
M13
B171. A85.5
M10
M12
Y-8.8083
Z4.2164
M11
M13
B172. A86.
M10
M12
Y-8.8716
Z4.1924
M11
M13
B173. A86.5
M10
M12
Y-8.9349
Z4.1683
M11
M13
B174. A87.
M10
M12
Y-8.9982
Z4.1443
M11
M13
B175. A87.5
M10
M12
Y-9.0615
Z4.1202
M11
M13
B176. A88.
M10
M12
Y-9.1248
Z4.0962
M11
M13
B177. A88.5
M10
M12
Y-9.1881
Z4.0721
M11
M13
B178. A89.
M10
M12
Y-9.2514
Z4.0481
M11
M13
B179. A89.5
M10
M12
Y-9.3147
Z4.024
M11
M13
B180. A90.
M10
M12
Y-9.378
Z4.
Z.965
G1 Z-.775
Y-8.878 F6.41
G3 X1.55 Y-8.378 I-.5
G1 X-1.55
G3 X-2.05 Y-8.878 J-.5
G1 Y-9.378
Z-.575 F3.21
G0 Z4.
M9
M5
G0 G28 G91 Z0.
M30

Work around:

G20
G0 G17 G40 G49 G80 G90
G0 G28 G91 Z0.
(1/2 FLAT ENDMILL|TOOL - 1|DIA. OFF. - 1|LEN. - 1| DIA. - .5)
M11
M13
T1 M6
G0 G55 G90 X-2.05 Y2.015 B0. A0. S1069 M3
M10
M12
G43 H1 Z8.328 M8
G1 Z8.128 F3.21
Y1.515 F6.41
G3 X-1.55 Y1.015 I.5
G1 X1.55
G3 X2.05 Y1.515 J.5
G1 Y2.015
Z8.328 F3.21
M9
M5
G0 G28 G91 Z0.
M01
G0 G17 G40 G80 G90 G94 G98
G0 G28 G91 Z0.
(1/2 FLAT ENDMILL|TOOL - 3|DIA. OFF. - 3|LEN. - 3| DIA. - .5)
M11
M13
T3 M6
G0 G55 G90 X2.05 Y-9.378 B180. A90. S1069 M3
M10
M12
G43 H3 Z4.
Z.965
G1 Z-.775 F3.21
Y-8.878 F6.41
G3 X1.55 Y-8.378 I-.5
G1 X-1.55
G3 X-2.05 Y-8.878 J-.5
G1 Y-9.378
Z-.575 F3.21
G0 Z4.
M5
G0 G28 G91 Z0.

 

Share this post


Link to post
Share on other sites

Open your post with a text editor.

Find the variable "brk_mv_head". Set it to '-1'.

Share this post


Link to post
Share on other sites
10 hours ago, Colin Gilchrist said:

Open your post with a text editor.

Find the variable "brk_mv_head". Set it to '-1'.

I just checked mine is set to that value. Sorry if I don't  make sense. Kinda hard to explain 😅. So what I'm trying to say is when I'm using just 1 tool and rotate to cut say the back side instead of it posting B1. B2. B3. and A1. A2. A3. all the way to A90. B180. I just want the tool to retract  and post A90. B180. Thanks for helping me out

Share this post


Link to post
Share on other sites
brk_mv_head  : no$   #Break the 5 axis moves to remove gouge
brk_max_ang  : -1     #'brk_mv_head' maximum angle move, applied if chordal

Setting those two variables should disable the "breaking behavior".

For proof; leave 'brk_mv_head' set to 'yes$', and set 'brk_max_ang' to '30.'. That will cause the Post to "break the moves" every 30 degrees, instead of every "1 degree".

 

Are you 100% certain of exactly which Post you are using? 

MP can grab a different Post Processor (in another location), depending on where the copies of your Post are located.

For debugging something like this, I typically add a String Literal line to 'psof$', so that I can be 100% sure I'm posting from the Post that I'm actually editing in the text editor.

psof$    #Start of file for non-zero tool

      "TEST POST", e$

That way I can be sure of which Post is doing the work.

If you want to be sure "at the time of posting", you can press the "G1" button to Post, and when the dialog box comes up, press and hold CTRL + SHIFT + ALT, and while holding those down, press "P" on the keyboard. That will activate the "Select Post" button, and allow you to browse and select a specific Post Processor.

 

If you are creating a "Test Post" to play around with, you will need to copy the ".PST" file, and the ".PSB" file, for MP to work when you Post the code. You must have two files with the exact same Post name, but one needs a .PST extension, and the other a .PSB.

  • Thanks 1
  • Like 4

Share this post


Link to post
Share on other sites
23 hours ago, Colin Gilchrist said:
brk_mv_head  : no$   #Break the 5 axis moves to remove gouge
brk_max_ang  : -1     #'brk_mv_head' maximum angle move, applied if chordal

Setting those two variables should disable the "breaking behavior".

For proof; leave 'brk_mv_head' set to 'yes$', and set 'brk_max_ang' to '30.'. That will cause the Post to "break the moves" every 30 degrees, instead of every "1 degree".

 

Are you 100% certain of exactly which Post you are using? 

MP can grab a different Post Processor (in another location), depending on where the copies of your Post are located.

For debugging something like this, I typically add a String Literal line to 'psof$', so that I can be 100% sure I'm posting from the Post that I'm actually editing in the text editor.

psof$    #Start of file for non-zero tool

      "TEST POST", e$

That way I can be sure of which Post is doing the work.

If you want to be sure "at the time of posting", you can press the "G1" button to Post, and when the dialog box comes up, press and hold CTRL + SHIFT + ALT, and while holding those down, press "P" on the keyboard. That will activate the "Select Post" button, and allow you to browse and select a specific Post Processor.

 

If you are creating a "Test Post" to play around with, you will need to copy the ".PST" file, and the ".PSB" file, for MP to work when you Post the code. You must have two files with the exact same Post name, but one needs a .PST extension, and the other a .PSB.

Hey man thank you so much. It work!!! I changed to exactly how you had it and tested it and it did retract and did not break movement.  I'm excited not having to spend half an hour editing the program.

  • Like 3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us