Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

SURFACE HIGH SPEED(Horizontal) toolpath with COMP?


SLuong
 Share

Recommended Posts

Hello everyone,
   Surface HIGH SPEED Horizontal is great toolpath for me to finish walls and floors and the only thing it keeps me anxious about it is the "COMP".  There is not G41 and G40 in the toolpath at all.  Is there away I can manually add it in the toolpath or post?

 

 

 

Thank you,
    S.Luong

SURFACE HIGH SPEED(Horizontal) toolpath .png

  • Haha 1
Link to comment
Share on other sites

Hello Crazy MillMan,
   I am trying to put a statement at the PCCDIA such as:

If TOOLPATPTH IS HORIZONTAL AREA then out put as G41 and end as G40 (see codes below..).  I didn't do right, can you assist me to do so?

 

Thank you.

 

===========================

#Region pccdia
pccdia          #Cutter Compensation
      #Force Dxx#
	 
	  if mmr1 = 4.1, tloffno$ = 3020
	  if mmr1 = 4.1 & (strstr("VERTICAL", sMachineDefinitionManagerDescription) | 
       strstr("VERTC", sMachineDefinitionManagerDescription) |
       strstr("VERT", sMachineDefinitionManagerDescription) |
       strstr("VTC", sMachineDefinitionManagerDescription) |
       strstr("VER", sMachineDefinitionManagerDescription)), 
       result = nwadrs ("D#", tloffno$)
	  
	  if mmr1 = 4.2, tloffno$ = 51999
	  if mmr1 = 4.2 & (strstr("VERTICAL", sMachineDefinitionManagerDescription) | 
       strstr("VERTC", sMachineDefinitionManagerDescription) |
       strstr("VERT", sMachineDefinitionManagerDescription) |
       strstr("VTC", sMachineDefinitionManagerDescription) |
       strstr("VER", sMachineDefinitionManagerDescription)), 
       result = nwadrs ("D#", tloffno$)

	  if (mmr1 = 4.1 | mmr1 = 4.2) & (strstr("HOR", sMachineDefinitionManagerDescription) | 
       strstr("HORI", sMachineDefinitionManagerDescription) |
       strstr("HORIZONTAL", sMachineDefinitionManagerDescription) |
       strstr("HORIZONTALS", sMachineDefinitionManagerDescription) |
       strstr(" HRZ", sMachineDefinitionManagerDescription)), 
	   result = nwadrs ("D#", tloffno$)
	  
      #ToolDia = tldia$/2
      #if HorizontalCellSystem = 3 & prv_cc_pos$ <> cc_pos$ & not(cc_pos$ = 0), "#2499=[2400+#129]-", no_spc$, *ToolDia, e$
      #if HorizontalCellSystem = 3, tloffno$ = 99
      if not(xform_type = 13 | xform_type = 16 | xform_type = 18) & prv_cc_pos$ <> cc_pos$ & cc_pos$, prv_tloffno$ = c9k
      sccomp
      if cc_pos$ & (mmr1 < 4 | mmr1 = 4.1 | mmr1 = 4.2 | mmr1 = 5), tloffno$
      str_comp = slout(comp_dir, sdir0)

      if cc_pos$ = two & cc_error_flg = zero & ContourMultiPassesRoughPassCutDirectionIO = 0,
      [
         if mprint(sG42, 2) = 2, exitpost$ #G42 was used
         cc_error_flg = one #Set flag to suppress redundant calls to error message at operation level
      ]	  
#EndRegion pccdia

 

========================================

NT26(FINISH EVERYTHING, BABY!!!, CUT#5)
G0 G17(XY PLANE) G40 G80 G90 M19
G30 P2(ZY HOME)
G116 T26(.5, 1/2 EM, FIN, TiNC,)
G90 G15 H1(WOS) X-.6298 Y-.5477 S3500 M3
G131(OKUMA LOOK AHEAD ON)
G56(TLO) HA Z1.(DOC= Z-.8795)
M8
G1 Z.1599 F25.
X-.6306 Y-.5481 Z.1484
X-.633 Y-.5492 Z.1372
X-.6369 Y-.5509 Z.1266
X-.6423 Y-.5533 Z.1167
X-.649 Y-.5562 Z.1079
X-.6568 Y-.5597 Z.1002
X-.6656 Y-.5636 Z.094
X-.6752 Y-.5678 Z.0893
X-.6853 Y-.5723 Z.0862
X-.6958 Y-.5769 Z.0849
X-.6984 Y-.578
G41 G2 X-1.0281 Y-.4503 Z.0156 I-.101 J.2287    ================> G41 HERE
G3 X-1.4235 Y-.3649 Z.0141 I-.2287 J-.101
X-1.3825 Y-.7674 Z.0125 I.1667 J-.1863
X-1.0124 Y-.604 Z.0109 I.1257 J.2161
(CUTTING...)
G1 X-1.453 Y-1.306
X.3591
G3 X.4341 Y-1.231 Z-.8587 I0. J.075
G40 G1 Y-1.2281 Z-.8586   ================> G40 HERE
Y-1.2167 Z-.8573
Y-1.2056 Z-.8543
Y-1.1952 Z-.8496
Y-1.1855 Z-.8433
Y-1.177 Z-.8357
Y-1.1697 Z-.8269
Y-1.1638 Z-.817
Y-1.1595 Z-.8063
Y-1.1569 Z-.7952
Y-1.156 Z-.7837
Z-.7587
G0 Z1.
G130(OKUMA LOOK AHEAD OFF)
M9
G30 P2(ZY PULL IT UP)
M5

Link to comment
Share on other sites
19 hours ago, crazy^millman said:

Huh? On walls maybe, but floors not seeing where that would be helpful.

Yes a mi or mr trigger can be added to do this, but should add a a logic check that if ziz-zig is picked to not allow that output or crashing could happen very quick like.

I am trying to make it work for my daily life, would you tell me where can I put my G41 in side the PCCDIA?

 

 

Thank you.

Link to comment
Share on other sites
1 hour ago, SLuong said:

 

mmr1 is same as MR1$ I separated to flag the MR1$

So a defined and labeled process that does everything a post builder needs and uses was dumped in favor of something that has be redefined and used in my humble opinion creates a lot of extra work. To each their own and I don't see the operation type being called as a check for it being used to output the cutter comp call.

opcode$ is what I see as one process. The other would be a mi1-9$ or mr1-9$ being used as a trigger. Either way you got a tall wall to climb and sorry don't have a few hours to research into what is the correct opcode$ to use and then what is the correct condition check either. All the best and hope you get it sorted out the correct way.

Link to comment
Share on other sites
On 11/29/2021 at 10:06 AM, SLuong said:

Hello everyone,
   Surface HIGH SPEED Horizontal is great toolpath for me to finish walls and floors and the only thing it keeps me anxious about it is the "COMP".  There is not G41 and G40 in the toolpath at all.  Is there away I can manually add it in the toolpath or post?

 

Thank you,
    S.Luong

SURFACE HIGH SPEED(Horizontal) toolpath .png

Unless your machine has 3D Tool Comp, you are NOT going to get the results you are expecting.

In the case of 3D Tool Comp you will need to use a toolpath that supports it in the first place because vector info needs to be contained in the path. IOW, you need to be using a 5-Axis toolpath,

G43.4Z0.8589H1
X0.0379Y0.1358Z0.8602
X0.0511Y0.1344Z0.1103
X0.0537Y0.1341Z-0.0396
G01G41.2X0.0549Y0.134Z-0.1076D1F54.09
X0.0319Y0.1232Z-0.1228
	.....
	X0.0389Y0.0831Z-0.1399B-1.275C-55.876
X0.048Y0.1073Z-0.123
G40X0.0476Y0.1333Z-0.1088
G00X0.0356Y0.1512Z0.859
G00G90G49
G43.8Z1.2495H17D1
X0.0994Y-1.152Z0.8547,L2I0.5411164J-0.840937K0.004251
X-0.102Y-0.839Z0.2035,L2I0.5411164J-0.840937K0.004251
X-0.1423Y-0.7764Z0.0733,L2I0.5411164J-0.840937K0.004251
G01X-0.1611Y-0.7472Z0.0125F15.0,L2I0.5411164J-0.840937K0.004251
	...
	X-0.2141Y0.1424Z-0.1136,L2I0.3817207J0.9152277K0.1290253
G00X-0.0706Y0.4862Z0.782,L2I0.3817207J0.9152277K0.1290253
G130(HIGH SPEED OFF)
G00G90G49
G49G53Z0.0

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • 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

×
×
  • Create New...