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:

Need Help again....


Recommended Posts

I'm prefering to this subject

http://www.emastercam.com/board/topic/80558-peck-cycle-full-retract/?hl=%2Bspecial+%2Bdrill

 

G20
G0 G17 G40 G49 G80 G90
T1 M6
G0 G90 G54 X
-.6862 Y.0212 S1681 M3
G43 H1 Z2
.
G0 Z.25
G0 Z-1.555
G1 Z-1.655 F4.04
G0 Z.25
G0 Z-1.635
G1 Z-1.735 F4.04
G0 Z.25
G0 Z-1.715
G1 Z-1.815 F4.04
G0 Z.25
G0 Z-1.795
G1 Z-1.895 F4.04
G0 Z.25
G0 Z-1.875
G1 Z-1.975 F4.04
G0 Z.25
G0 Z-1.955
G1 Z-2.055 F4.04
G0 Z.25
G0 Z-2.035
G1 Z-2.135 F4.04
G0 Z.25
G0 Z-2.115
G1 Z-2.215 F4.04
G0 Z.25
G0 Z-2.195
G1 Z-2.295 F4.04
G0 Z.25
G0 Z-2.275
G1 Z-2.375 F4.04
G0 Z.25
G0 Z-2.355
G1 Z-2.455 F4.04
G0 Z.25
G0 Z-2.435
G1 Z-2.535 F4.04
G0 Z.25
G0 Z-2.515
G1 Z-2.615 F4.04
G0 Z.25
G0 Z-2.595
G1 Z-2.695 F4.04
G0 Z.25
G0 Z-2.675
G1 Z-2.775 F4.04
G0 Z.25
G0 Z-2.755
G1 Z-2.855 F4.04
G0 Z.25
G0 Z-2.835
G1 Z-2.935 F4.04
G0 Z.25
G0 Z-2.915
G1 Z-3.015 F4.04
G0 Z.25
G0 Z-2.995
G1 Z-3.095 F4.04
G0 Z.25
G0 Z-3.075
G1 Z-3.175 F4.04
G0 Z.25
G0 Z-3.155
G1 Z-3.2 F4.04
G0 Z2.
( HOLE COMPLETE )
( )
M5
G91 G28 Z0
.
G28 X0. Y0.
M30

 

I'm having this issue, can you guys help me.  Thank you.

 

code:

N3(.750, 3/4  X 90DEG. SPOT DR)
G0 G17 G40 G49 G53 G80 G90 Z0.
T3 M6(SPOT 7X 1.000DIA, CUT#5)
G90 G54
X4.48 Y2.88 S1500 M3
G43 H3 Z1. T5 M8(DOC= Z-.51)
G98 G82 Z-.51 R.125 P0 F5.24
X8.7
X24.16
X27.26 Y1.76
X30.35 Y2.88
X45.81
X50.03
G80
(T3= .750, 3/4  X 90DEG. SPOT DR)
(SPOT 7X .690DIA, CUT#6)
(DOC= Z-.49)
X5.6
G98 G82 Z-.49 R.125 P0 F5.24
X7.57
X25.28
X27.26
X29.23
X46.93
X48.9
G80 M9
G90 G53 Z0. M5
/G53 Y0.
M1
(*)
N5(.6875, 11/16 STUB DRILL)
G0 G17 G40 G49 G53 G80 G90 Z0.
T5 M6(DRILL 7X .690DIA, CUT#7)
G90 G54
X5.6 Y2.88 S1389 M3
G43 H5 Z1. T3 M8(DOC= Z-.375)
G98 G83 Z-.375 R.125 Q.14 F4.86
X7.57
X25.28
X27.26
X29.23
X46.93
X48.9
G80 M9
G90 G53 Z0. M5
G53 Y0.
M1
T3 M6
M30
%

 

error message:

07 Apr 2015 08:36:55 PM - PST LINE (663) - The left side of the formula is the wrong type (var/string)
07 Apr 2015 08:36:55 PM - PST LINE (1990) - Illegal label modifer for type or context
07 Apr 2015 08:36:55 PM - PST LINE (4309) - The formula/boolean failed (general message), , Label has not been defined[31]
07 Apr 2015 08:36:55 PM - PST LINE (4309) - The formula/boolean does not terminate properly
07 Apr 2015 08:36:55 PM - PST LINE (663) - The math calculation/formula has an error

 

Line 663 is

#Custom Defined Variables
operation_depth : 0 # Operation full depth
IncrementalOperationDepth : no$ # Operation full depth
last_op_id2 : 0 # OP tracking ID
OpTopOfStock : 0 # Operation Top of Stock
IncrementalOpTopOfStock : no$ #
ClearanceRetractionFunction : 0 #
OpClrPlane  : 0  # Operation Clearance plane
ClearancePlane  : 0  # Operation Clearance plane
OpRtrPlane  : 0  # Operation Retract plane
IncrementalRetractPlane : no$  # Operation Retract plane
OpFeedPlane  : 0  # Operation Feed plane
IncrementalOpFeedPlane  : no$  # Operation Feed plane
OpClrPlane_ON : yes$ # Operation Clearance plane set or not
OpRtrPlane_ON : yes$ # Operation Retract plane set or not
OpClrPlane_min : 0 # Operation Minimum Clearance value - SET MINIMUM HERE
OpRtrPlane_min : 0  # Operation Minimum Retract value - SET MINIMUM HERE
OpFeedPlane_min : 0  # Operation Minimum Feed value - SET MINIMUM HERE
scharwarn : 0 #
speckcheck: 0
stooltotalmax: 0 #
sToolCurruption: 0 #
sTapSync: 0
soperation_depthcheck: 0
soperation_depthchecknegative: 0
sWorkOffsetDuplicate: 0
sholdercheck: 0
HolderCapDiameter:0
susername : ""
sConstructToolPlane: 0
sholder_name   : ""

drill_dist: "

 

 

 

line 1990 is:

fmt      2  drill_dist  #calulate drilling distance
fmt      2  pck_amt     # Peck amount
fmt      22 pck_no      # Calculate no. OF PECKS
fmt  Z   2  drl_depth   # Calculate Z drill depth
fmt  Z   2  z_return    # Rapid Z dpeth
fmt  Z   2  rtr_hgt
fmt      2  z_calc      #calulated Z doeth
fmt      2  prv_zdrill  # Capture previousl drilled depth
fmt  Z   2  z_clear     # Z clearance return value
fmt      2  z_clear_val  # Clearance distance to previous peck
fmt  Z   2  z_start_pos

 

 

pdrilldeep
      pdrlcommonb
      pck_amt = peck1$
      drill_dist = (-depth$ + topsz$)
      pck_no = (drill_dist/ pck_amt)
      pck_no = fmtrnd(pck_no)
      pass = pck_no
      rtr_hgt = peckclr$
      z_calc = 0
      z_clear_val = peck2$
      z_clear = (tosz$ + z_clear_val)
      z_start_pos = initht$
     
      pbld, n$, pxout, pyout, e$
      pbld, n$, sg00, *rtr_hgt, e$
      while pass > 0,
      [
      drl_depth = ((tosz$-(pck_amt)) + (-z_calc))
      pbld, n$, sg00, z_clear, e$
      pbld, n$, *sg01, *drl_depth, *feed, e$
      pbld, n$, sg00, *rtr_hgt, e$
     
      prv_zdrill = drl_depth
      z_calc = z_calc + pck_amt
      z_clear = (prv_zdrill + z_clear_val)
      pass = pass - 1
      ]
     
      z_clear = (prv_zdrill + z_clear_val)
      pbld, n$, sg00, z_clear, e$
      pbld, n$, sg01, pfzout, *feed, e$
      pbld, n$, sg00, z_start_pos, e$
      pbld, n$, "(", "HOLE COMPLETE", ")", e$
      pbld, n$, "(" ")", e$
      pcom_movea

 

pdrlcst_2$       #Custom drill cycles 8 - 19, additional points (user option)    
      #Use this postblock to customize drilling cycles 8 - 19
      if drillcyc$ = 10, pdrilldeep
      if drillcyc$ <> 10, pdrlcst8_2

 

 

pdrlcst$         #Custom drill cycles 8 - 19 (user option)
      #Use this postblock to customize drilling cycles 8 - 19
      if drillcyc$ = 10, pdrilldeep
      if drillcyc$ > 10, pdrilldeep

Link to comment
Share on other sites

No, the logic is fine Ron

 

Mr master post editor has trouble with the most simple things and instead of looking at what he has, he comes here asking the most rudimentary questions.

He HAS to be a resellers nightmare

 

For someone who supposedly does such trick post edits, the act of simply defining a variable seems to elude him.

 

If you simply copied the code as I posted it, it works.....

 

You start changing things

 

 

for starters, what is this?

 

 

 

drill_dist: "

 

You are either trying to define it as a string and if so, you have that wrong because you're missing another drill_dist : ""

 

However, that variable is already defined

 

 

fmt      2  drill_dist  #calulate drilling distance

 

So I have NO clue what you're trying to do but the issue here is between the keyboard and monitor

 

The code as posted works fine...

N100 G20
N102 G0 G17 G40 G49 G80 G90
N104 T2 M6
tool_material 1.
N106 G0 G90 G54 X-2.1296 Y.6716 S900 M3
N108 G43 H2 Z2. M8
N110 G0 Z.25
N112 G0 Z-1.08
N114 G1 Z-1.175 F4.18
N116 G0 Z.25
N118 G0 Z-1.155
N120 G1 Z-1.25 F4.18
N122 G0 Z.25
N124 G0 Z-1.23
N126 G1 Z-1.325 F4.18
N128 G0 Z.25
N130 G0 Z-1.305
N132 G1 Z-1.4 F4.18
N134 G0 Z.25
N136 G0 Z-1.38
N138 G1 Z-1.475 F4.18
N140 G0 Z.25
N142 G0 Z-1.455
N144 G1 Z-1.55 F4.18
N146 G0 Z.25
N148 G0 Z-1.53
N150 G1 Z-1.625 F4.18
N152 G0 Z.25
N154 G0 Z-1.605
N156 G1 Z-1.7 F4.18
N158 G0 Z.25
N160 G0 Z-1.68
N162 G1 Z-1.775 F4.18
N164 G0 Z.25
N166 G0 Z-1.755
N168 G1 Z-1.85 F4.18
N170 G0 Z.25
N172 G0 Z-1.83
N174 G1 Z-1.925 F4.18
N176 G0 Z.25
N178 G0 Z-1.905
N180 G1 Z-2. F4.18
N182 G0 Z.25
N184 G0 Z-1.98
N186 G1 Z-2.075 F4.18
N188 G0 Z.25
N190 G0 Z-2.055
N192 G1 Z-2.15 F4.18
N194 G0 Z2.
N196 ( HOLE COMPLETE )
N198 ( )
N200 M5
N202 G91 G28 Z0. M9
N204 G28 X0. Y0.
N206 M30 
Link to comment
Share on other sites

 

No, the logic is fine Ron

 

Mr master post editor has trouble with the most simple things and instead of looking at what he has, he comes here asking the most rudimentary questions.

He HAS to be a resellers nightmare

 

For someone who supposedly does such trick post edits, the act of simply defining a variable seems to elude him.

 

If you simply copied the code as I posted it, it works.....

 

You start changing things

 

 

for starters, what is this?

 

 

You are either trying to define it as a string and if so, you have that wrong because you're missing another drill_dist : ""

 

However, that variable is already defined

 

 

So I have NO clue what you're trying to do but the issue here is between the keyboard and monitor

 

The code as posted works fine...

N100 G20
N102 G0 G17 G40 G49 G80 G90
N104 T2 M6
tool_material 1.
N106 G0 G90 G54 X-2.1296 Y.6716 S900 M3
N108 G43 H2 Z2. M8
N110 G0 Z.25
N112 G0 Z-1.08
N114 G1 Z-1.175 F4.18
N116 G0 Z.25
N118 G0 Z-1.155
N120 G1 Z-1.25 F4.18
N122 G0 Z.25
N124 G0 Z-1.23
N126 G1 Z-1.325 F4.18
N128 G0 Z.25
N130 G0 Z-1.305
N132 G1 Z-1.4 F4.18
N134 G0 Z.25
N136 G0 Z-1.38
N138 G1 Z-1.475 F4.18
N140 G0 Z.25
N142 G0 Z-1.455
N144 G1 Z-1.55 F4.18
N146 G0 Z.25
N148 G0 Z-1.53
N150 G1 Z-1.625 F4.18
N152 G0 Z.25
N154 G0 Z-1.605
N156 G1 Z-1.7 F4.18
N158 G0 Z.25
N160 G0 Z-1.68
N162 G1 Z-1.775 F4.18
N164 G0 Z.25
N166 G0 Z-1.755
N168 G1 Z-1.85 F4.18
N170 G0 Z.25
N172 G0 Z-1.83
N174 G1 Z-1.925 F4.18
N176 G0 Z.25
N178 G0 Z-1.905
N180 G1 Z-2. F4.18
N182 G0 Z.25
N184 G0 Z-1.98
N186 G1 Z-2.075 F4.18
N188 G0 Z.25
N190 G0 Z-2.055
N192 G1 Z-2.15 F4.18
N194 G0 Z2.
N196 ( HOLE COMPLETE )
N198 ( )
N200 M5
N202 G91 G28 Z0. M9
N204 G28 X0. Y0.
N206 M30 

Thank you JParis, I for got the ""

 

Once again, thank you for your help.

Link to comment
Share on other sites

drill_dist = (-depth$ + topsz$)

 

I suspect the -depth$ is the issue here. What are you trying to accomplish with the equation?

Thank you 5th Axis Consulting, I think I know where my mistake is.  It is that I forgot the quotation "" while I was typing.

 

Thank you, 5th Axis Consulting.

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...