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:

Okuma VMC 5020M Code


Guest
 Share

Recommended Posts

  • 2 years later...

I also see there is NCYL heading is there a way to POST this with any drill cycle using Subprogams only.

 

 

**************************************************

 

G17 G40 G80 G90 G94

G15 H15

G00 Z20

IF [VATOL EQ 2 ] N2

T2

M06

M01

N2 (.250 DIA )

G00 X-3.0 Y0.0 M3 S1000

G56 H2 Z3.0

M08 T2

G95

G71 Z2.0

G00 Z.11

N2 (.250 DIA )

G00 X-3.0 Y0.0 M3 S1000

G56 H2 Z3.0

M08 T3

G95

G71 Z2.0

G00 Z.11

NCYL G81 Z-.2 R.11 F.0033 M53 ( Sub )

CALL OS1

G80 G00 Z2.0

G94

M09

Z20

M01

M06

Y20 Z20 X-12

M30

OS1

X-1.5

X0.0

X1.5

X3.0

RTS

 

**************************************************

 

G17 G40 G80 G90 G94

G15 H15

G00 Z20

IF [VATOL EQ 2 ] N2

T2

M06

M01

N2 (.250 DIA )

G00 X-3.0 Y0.0 M3 S1000

G56 H2 Z3.0

M08 T2

G95

G71 Z2.0

G00 Z.11

G81 Z-.2 R.11 F.0033 M53 (No Sub )

X-1.5

X0.0

X1.5

X3.0

G80 G00 Z2.0

G94

M09

Z20

M01

M06

Y20 Z20 X-12

M30

 

**************************************************

 

 

pdrill$ # G81 Canned Drill Cycle

pdrlcommonb

pcan1, pbld,?????(NCYL), n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,

prdrlout, *dwell$, *feed, strcantext, e$

pcom_movea

 

Thank you for any suggestions.

Link to comment
Share on other sites

Branches cannot be called up while running DNC,

as DNC is read in line by line to a buffer and executed, as your subs are after the M2/M30, they cannot be read. Not like a PSELECT where the whole file is taken into the bubble memory and subs into a buffer.

( Have not tried the subs as seperate files in the control )

 

There are 4 methods of running a program

A,B,S and DNC

;A=smaller programs with subs, able to background edit

;B=larger programs with subs, not able to background edit

;S=large programs, no subs ( uses all availble bubble memory )

eg. Pselect 1234.MIN;B (will load using B method)

 

G113 or similar ( user G & M macros ), are they inside 1 library (.LIB) file and registered in the control ?

 

*.SSB is a schedule program

where you can auto-load programs, set repeats, etc ( programs must reside in control )

Link to comment
Share on other sites

Superman ,

------------------------------------------------

*.SSB is a schedule program

where you can auto-load programs, set repeats, etc ( programs must reside in control )

-------------------------------------------------

????????

*.sdf is schedule program as far as I know .

 

Can you describe this . I am using ethernet connection , control is E100.

I would like to avoid spining tool 18 which is my probe. So i would like to put in g-code output IF [vatol 18].....(eg) in head of my code output

Do you have any tip for it ?

Link to comment
Share on other sites

mig,

sorry , schedule = .SDF

quote:

"Can you describe this . I am using ethernet connection , control is E100."


sample A.SDF

N1 PSELECT 123A.MIN;A Q2

N2 PSELECT 456B.MIN;S Q4

N3 PSELECT 1298.MIN:B Q99

N4 GOTO N1

END

 

n1=load program and run 2 times

n2=load program and run 4 times

n3=load program and run 99 times

n4=cycle the SDF program continuously ( no stopping

note! these programs must be in bubble memory before loaded in to run

 

quote:

"I would like to avoid spining tool 18 which is my probe. So i would like to put in g-code output IF [vatol 18].....(eg) in head of my code output

Do you have any tip for it ? "


We redefined the toolchange macro to G116 to force certain conditions ( it still uses M6 )

, you mat be able to incorporate your "if VATOL=18 then S=0" statement Spindle RPM to be 0 if tool 18 is loaded, or along those lines.

 

Try your G113 in a .LIB file instead of .SSB as the macro would be easier to call and execute, even thru MDI

 

eg G114 is assigned OTOL2, and the following is in MX40.LIB

 

(*******************)

OTOL2

(G114 T_ D_ A_)

(THIS PROGRAM SETS MXH TOOL LENGTH OFFSETS)

(USING RADIUS OFFSET AND ANGLE)

(D=RAD A=ANG)

G15 H20

IF [PA NE EMPTY] N100

PA=0

N100

IF [PT EQ EMPTY] N1100(IF T IS NOT SET GOTO LINE 1100)

IF [VTLCN EQ PT] N400(IF T=TOOL IN THE SPINDLE GOTO LINE 400)

IF [VNTOL EQ PT] N300(IF T=NEXT TOOL GOTO LINE 300)

IF [VNTOL EQ 0 ] N200(IF NEXT TOOL IS VACANT GOTO LINE 200)

M64 (CANCEL PRE-SELECT TOOL)

N200

T=PT (PRE-SELECT COMMANDED TOOL)

N300

M06 (TOOL-CHANGE)

N400

N1000 G15 H20 (TO SET TOOL OFFSET CENTERLINE)

VFST=129

CALL OO30 PY=PD PRS=PA

G15H0

G56 G0 Z800 H0

X800 Y800

M203 (GET RID OF TOOL)( another custom m-code exists)

N1100 RTS

(*******************)

Link to comment
Share on other sites

No, not always

 

say you program 2 ops for a part, prove them off seperatly, they then can run on a pallet machine, op.1 on one pallet, op.2 or a completely different program running on the other

 

or tombstone

 

or set the A & B ops going on 1 table ( 2 vices or fixtures ), 1 full cycle = 1 part

 

you can set and use variables as you would in the normal manner

 

Can you run this G113 from MDI ?

if you can, fair chance is that it will run while running DNC

Can you post this macro ? plus name and extension ?

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