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:

You-Ji VTL need Q on each line for G83


Recommended Posts

Hi,

 

We have a You-Ji vertical live tooling lathe.. I need the post to put a Q on each line when using G83 peck drilling cycle.. Where in the post is this controlled? I am not sure what the original post was or came from..

 

 

Here is the top of the post

 

POST_VERSION] #DO NOT MOVE OR ALTER THIS LINE# V15.00 P2 E1 W15.00 T1337895755 M15.00 I0 O0

# Post Name : YOU JI

# Product : LATHE

# Machine Name : YOU JI

# Control Name : OI

# Description : YOU JI C-AXIS POST

# Mill/Turn : YES

# 4-axis/Axis subs. : YES

# 5-axis : NO

# Subprograms : YES

# Canned Cycles : YES

# Executable : MP 10.0

#

# WARNING: THIS POST IS GENERIC AND IS INTENDED FOR MODIFICATION TO

# THE MACHINE TOOL REQUIREMENTS AND PERSONAL PREFERENCE.

#

# Associated File List$

#

# GENERIC FANUC 4X MT_LATHE.control

#

# Associated File List$

#

 

 

 

 

This is what it posts out now for G83 peck drill..

N1 M01(17/32 DRILL)

G00 G18 G40 G80

( DRILLS WITH 17/32 DRILL )

G00 T1010 M06

M69

M22

M41

M66

G00 G54 X9.

Z.1

C0.

M08

G97 S1500 M33

G98 G83 Z-1.675 R.1 Q.1 F5.

C90. <------------------------------------------------------ Need a Q.1 on each line ----------------------------------->

C135. <----------------------------------------- Here -------------------------------------------------->

C180. <----------------------------------------- Here -------------------------------------------------->

C270. <----------------------------------------- Here -------------------------------------------------->

C315. <----------------------------------------- Here -------------------------------------------------->

X0. C90. <----------------------------------------- Here -------------------------------------------------->

G80

M09

G00 Z2.0

M35

M21

G28 W0. U0.

H0.

T0000

 

 

 

 

Thanks

Link to comment
Share on other sites

Hi Darin,

 

First, make a backup copy of your post. Then, try replacing your 'mpeck_2$' post block with the following post block code:

mpeck_2$	   #Canned peck drill cycle repeat, mill
  pdrlcommonb
  pcan1, pbld, n$, pxout, pyout, pzout, pcout, prdrlout,
  *peck1$, dwell$, pfr, strcantext, e$
  pcom_movea

 

Hope that helps,

 

Colin

Link to comment
Share on other sites

Hi Darin,

 

First, make a backup copy of your post. Then, try replacing your 'mpeck_2$' post block with the following post block code:

mpeck_2$	 #Canned peck drill cycle repeat, mill
 pdrlcommonb
 pcan1, pbld, n$, pxout, pyout, pzout, pcout, prdrlout,
 *peck1$, dwell$, pfr, strcantext, e$
 pcom_movea

 

Hope that helps,

 

Colin

 

 

 

Perfect thanks that was it.. :fun:

Link to comment
Share on other sites

Hi Darin,

 

First, make a backup copy of your post. Then, try replacing your 'mpeck_2$' post block with the following post block code:

mpeck_2$	 #Canned peck drill cycle repeat, mill
 pdrlcommonb
 pcan1, pbld, n$, pxout, pyout, pzout, pcout, prdrlout,
 *peck1$, dwell$, pfr, strcantext, e$
 pcom_movea

 

Hope that helps,

 

Colin

 

 

 

I just found out the Q needs to be Q1000 not Q .1... Where do I change this at?

 

 

Thanks

Link to comment
Share on other sites

Hi Darin,

 

You need to change the Format Assignment line for the 'peck1$' variable. First, search the post for 'peck1$'. There is usually a 'fmt' line that looks like this:

 

# --------------------------------------------------------------------------
fmt  "Q" 2  peck1$	  #First peck increment (positive)
fmt  "W" 2  peck2$	  #Subsequent Peck value (positive)
fmt  "D" 2  peckclr$    #Pecking clearance (from top of hole)
fmt  "Q" 2  shftdrl$    #Fine bore tool shift
fmt  "R" 2  refht_a	 #Reference height
fmt  "R" 2  refht_i	 #Reference height
# --------------------------------------------

 

The number specified after the "Q" string is '2', which is normal 4/3 place decimal output. You need to create a new 'Format Statement' that will format the numeric portion of the variable. For now, change that '2' to an unused number, let's use '40'. so your new line would look like so:

 

# --------------------------------------------------------------------------
fmt  "Q" 40  peck1$	  #First peck increment (positive)
fmt  "W" 2  peck2$	  #Subsequent Peck value (positive)
fmt  "D" 2  peckclr$    #Pecking clearance (from top of hole)
fmt  "Q" 2  shftdrl$    #Fine bore tool shift
fmt  "R" 2  refht_a	 #Reference height
fmt  "R" 2  refht_i	 #Reference height
# --------------------------------------------

 

Now, search up in the post for the 'fs2' lines. after the last one (before the 'Toolchange NC output formats' section), create a new line, starting in the first column, something like so:

 

# This format statement is used for sequence number output
# Number of places output is determined by value for "Increment Sequence Number" in CD
# Max depth to the right of the decimal point is set in the fs statement below
fs2 21  0^7 0^7	  #Decimal, 7 place, omit decimal if integer value
fs2 22  0^3 0^3	  #Decimal, 3 place, omit decimal if integer value
fs  40  0 4t		 #Omit Decimal, force 4 place trailing (Q parameter)
# --------------------------------------------------------------------------
# Toolchange / NC output Variable Formats
# --------------------------------------------------------------------------

 

I just added the 'fs 40 0 4t' line in the sample above. That Format Statement (type1) tells MP to omit the decimal point, and force 4 trailing zeros in the output. So your 'Q.1' should now output 'Q1000'.

 

Hope that helps,

 

Colin

Link to comment
Share on other sites

Hi Darin,

 

You need to change the Format Assignment line for the 'peck1$' variable. First, search the post for 'peck1$'. There is usually a 'fmt' line that looks like this:

 

# --------------------------------------------------------------------------
fmt "Q" 2 peck1$	 #First peck increment (positive)
fmt "W" 2 peck2$	 #Subsequent Peck value (positive)
fmt "D" 2 peckclr$ #Pecking clearance (from top of hole)
fmt "Q" 2 shftdrl$ #Fine bore tool shift
fmt "R" 2 refht_a	 #Reference height
fmt "R" 2 refht_i	 #Reference height
# --------------------------------------------

 

The number specified after the "Q" string is '2', which is normal 4/3 place decimal output. You need to create a new 'Format Statement' that will format the numeric portion of the variable. For now, change that '2' to an unused number, let's use '40'. so your new line would look like so:

 

# --------------------------------------------------------------------------
fmt "Q" 40 peck1$	 #First peck increment (positive)
fmt "W" 2 peck2$	 #Subsequent Peck value (positive)
fmt "D" 2 peckclr$ #Pecking clearance (from top of hole)
fmt "Q" 2 shftdrl$ #Fine bore tool shift
fmt "R" 2 refht_a	 #Reference height
fmt "R" 2 refht_i	 #Reference height
# --------------------------------------------

 

Now, search up in the post for the 'fs2' lines. after the last one (before the 'Toolchange NC output formats' section), create a new line, starting in the first column, something like so:

 

# This format statement is used for sequence number output
# Number of places output is determined by value for "Increment Sequence Number" in CD
# Max depth to the right of the decimal point is set in the fs statement below
fs2 21 0^7 0^7	 #Decimal, 7 place, omit decimal if integer value
fs2 22 0^3 0^3	 #Decimal, 3 place, omit decimal if integer value
fs 40 0 4t		 #Omit Decimal, force 4 place trailing (Q parameter)
# --------------------------------------------------------------------------
# Toolchange / NC output Variable Formats
# --------------------------------------------------------------------------

 

I just added the 'fs 40 0 4t' line in the sample above. That Format Statement (type1) tells MP to omit the decimal point, and force 4 trailing zeros in the output. So your 'Q.1' should now output 'Q1000'.

 

Hope that helps,

 

Colin

 

Thanks again Colin you have been very helpful... That worked perfect.. You wouldn't happen to know how to change the R in a canned cycle to post R.0 always? The VTL's use a weird canned cycle where the R can't be bigger or the same as the Z before it.. So they just put a R.0 and it works every time...

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