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:

Capture manual entry in pwrt?


Recommended Posts

I'm wondering if its possible to capture the text from a manual entry when doing  the preread of the NCI file.

 

I tried add the following to the pwrtt$ postblock

 

if gcode$ = 1005, "TEST1005", e$

if gcode$ = 1006, "TEST 1006", e$

 

and it doens't trigger anything.

 

i've looked in the nci and it is indeed there so whats going on?

 

help!

 

 

Link to comment
Share on other sites

Whats going on is that not all NCI Gcodes are read during the Pre-Read call.

 

Besides that, comments aren't designed to be read/output by using their NCI Gcode value directly. Comments are stored in an internal buffer file, and the comment buffer is processed when the Command Variable 'comment$' is placed by itself on a post line. This causes MP to process the lines that are stored inside the comment buffer in the 'pcomment$' post block. During that processing, each line is read from the comment buffer and processed according to the logic in 'pcomment$/pcomment2'.

 

Still, the likely reality is that you won't be able to access these comments during the pre-read...

Link to comment
Share on other sites

Thanks for the info colin.

 

That is kinda disappointing.

 

Is there a way to tell if there is a manual entry operation when you pre-read the nci?

 

looks like i'm looking at a nethook to pre-read the nci and grab the comments maybe? or i might give up?

Link to comment
Share on other sites

i use the pwrt to compile a program header with m98 loops for each toolpath and use the manual entry for probe stuff. So if i don't know there is a manual entry operation i can't make a m98 call in the header to loop down to that toolpath code.

Link to comment
Share on other sites

Also, along with what Ron is asking, what are you doing with the Probe routines? Are you doing in-process inspection, or just probing to set a Work Offset? The reason I ask is that Mastercam now has Renishaw probing routines integrated into the software, using a "Probe" operation.

 

While the Custom Drill Cycles work great, the Renishaw package just takes the ability to program a Probe to the next level...

Link to comment
Share on other sites

I know about the drill cycle probe stuff and about the inspection plus. I am not doing inspection just setting offsets and such but sometimes it is complicated with the math and such that a manual entry is the easiest option.

 

I have it working really slick but only if a manual entry is the first operation posted. Looks like this is the way it will remain.

 

I would like to be able to extract alot of info in the prwt for future uses such as automatic calculating 5 ax clearance moves based on your stock definition. Also just for xxxxs to see what can be done.

As always thanks for the help!

Link to comment
Share on other sites

Here is some code of how my header looks just so it makes a little more sense what i'm trying to do:

O0091 ()
(CUSTOMER:)
(Part#:   REV: )
(MACHINE: VARIAXIS i-700)
(OP: of   )
(PROG DESC:  )
(MCX FILE - )
(POSTED:07-21-2015 10:08)
(VERICUT VERIFIED:7.21.15 10:15AM)
(PROVEN:   BY:)
G91 G28 Z0.
G91 G28 X0.
G91 G28 Y0.
G90 G53 G00 A0. C0.
M98 H1 (G10 WORK OFFSETS)
(PROGRAM WORK OFFSET COMP)
G91 G10 L2 P1 X0. Y0. Z0. A0. C0. (G54 SHIFT)
M98 H2 (PALLET WORK OFFSET COMP)
M98 H3  (PROBE ROUTINE)
(!!!!!!!!!!!!!!!!!!!!!!!!!!!!)
(-->**SAFE RESTART HERE **<--)
(!!!!!!!!!!!!!!!!!!!!!!!!!!!!)
( T1001 - FM - 3.0D x .031R ROUGH-AIR - 5FL)
#1=0.0     (SEQUENCE TOOL WEAR D COMP - P100 X )
M98 H650    (FACE TOP)
(!!!!!!!!!!!!!!!!!!!!!!!!!!!!)
(-->**SAFE RESTART HERE **<--)
(!!!!!!!!!!!!!!!!!!!!!!!!!!!!)
( T1006 - SPT/CHMF .397D x 90 CHIPTIP CARB ARBOR - 2FL)
#1=0.0     (SEQUENCE TOOL WEAR D COMP - P101 X )
M98 H660    (OUTER CHAMFER)
(****)
M9
G91 G28 Z0.
G91 G28 X0. Y0.
G90 G53 A-120. C0. M05
G53 C180.
G04 X2.0
G00 G53 A0. C0.
M30
N1
(****************)
(G10 WORK OFFSETS)
(****************)
G90 G10 L2 P1 X-12.40157 Y-23.6218 Z-17.46997 A0. C0.
M99
N2
(*************************)
(PALLET WORK OFFSET COMP)
(*************************)
(G54 PALLET SHIFT - USES G54.1 P54 VALUES)
G65 P9005 S54. T.01 (INPUT ERROR CHECK)
G91 G10 L2 P1 X#71061 Y#71062 Z#71063 A#71064 C#71066
M99
(----)
N3
(********************)
(MANUAL ENTRY/PROBING)
(********************)
(PROBE ROUTINE)
#1=150. (PROBE FEED)
G0 G40 G80 G90
T120 M6 T1001
G54
G0 X0. Y0. Z5.0
G65 P9810 Z1.0 F#1
G65 P9812 X4.5 Z-.5 S1.
G91 G28 Z0.
G91 G28 X0. Y0.
G90 G53 A0. C0.
M99
(----)
( ************************* )
( *  T O O L  C H A N G E * )
( ************************* )
N650
T1001 M06 T1006 (  T1001 - FM - 3.0D X .031R ROUGH-AIR - 5FL   )
G65 P9005 S100 T.010 (INPUT ERROR CHECKING)
#1 = #1 + #[70001+[20*99]] (SEQUENCE TOOL D COMP = P100 X)
#10001 = #[#3020+41000] + #1
(  FACE TOP  )
G00 G17 G20 G40 G80 G90 G94
S12000 M03
M133
M131
G54
A0. C0.
X-4.2625 Y2.0999 Z1.00001
G61.1 R.0015
Z.50001
G01 Z.33668 F300.
X3.9625
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...