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:

variable for operation number in ops manager


Recommended Posts

Jeremy,

Yes there is a way for you to set that up. If you are using the MpMaster post, there is a variable called "tseqno" set the variable to 1. Then in the control definition file, go to the NC output in the control topics list, and uncheck the box for output sequence numbers.

 

tseqno : 1 #Output sequence number at toolchanges when omitseq = yes

#0=off, 1=seq numbers match toolchange number, 2=seq numbers match tool number

 

Don't forget that if you open the control def from the settings drop down instead of opening the machine def first, you will need to replace the existing machine def in the machine group properties. Just do a file replace as if you're changing posts and replace it with itself. That will reset the control def to the new settings.

Link to comment
Share on other sites

Here is the format statement...

fmt  "N"   		4	opnumber # N#= opnumber

 

Here is the pparam line...

  	if prmcode$ = 15240, opnumber = rpar(sparameter$,1)

 

And this is the line in the ltlchg postblock

      	pbld, *opnumber, *sgcode, pfxout, pfyout, pfzout, *gltlno, "M00", e$

 

I just replaced the "n{:content:}quot; with "*opnumber"

 

Let me know how it works...

  • Like 1
Link to comment
Share on other sites

I have it set as you described above and it works fine. The problem I have is that most of my files are so big and have so many toolpaths that if I post say toolpaths 1-50 because that is all I can fit in the control at once and then I post 50-100, then 100-150 and so on, each program is n1-n50, I want my N numbers to macth the op number in the operation manager so if I post toolpath 50-100 I would get N50-N100. That way if my operator comes and tells he has a problem with a toolpath in program 3, toolpaths 100-150 I know which one it is without counting. Sorry, If I was not clear earlier.

Link to comment
Share on other sites

Jeremy,

Right in the pparameter postblock.

pparameter$  	#Information from parameters
 	#"pwrttparam", ~prmcode$, ~sparameter$, e$
 	if prmcode$ = 15145, metvals   = rpar(sparameter$,1)
 	if prmcode$ = 15346, comp_type = rpar(sparameter$,1)
 	if prmcode$ = 20103, stinsert2 = sparameter$
 	if prmcode$ = 20110, stholder2 = sparameter$
 	if prmcode$ = 10124, g71type = rpar(sparameter$,1)
 	#if prmcode$ = 10080, srefz = sparameter$
 	if prmcode$ = 10080, srefz = rpar(sparameter$,1)
 	if prmcode$ = 10081, srefx = rpar(sparameter$,1)
 	if prmcode$ = 13356, sgroovy = rpar(sparameter$,1)
 	if prmcode$ = 20102, aonecomp = rparsngl(sparameter$, 8)
 	result = fprm (abs(lathecc))
 	if prmcode$ = 15240, opnumber = rpar(sparameter$,1)

The last one there.

Link to comment
Share on other sites

This is what your looking for right?

 

%

(TOOL - 12  - OFFSET - 12  - INSERT - DNMG-432 - HOLDER - MDJNR-204D)
(TOOL - 1   - OFFSET - 1   - INSERT - NONE - HOLDER - NONE)
(SET X .005 FROM FIXTURE OD LEFT SIDE)
N32G00X12.5Z5.H12M00                                                        	<<<<<<<<<<op 32
T12H12(TNR = 0.0313)
M41C120.S200.M05
G00X-12.2865Z0.
Z-10.9
M00
Z5.
X12.5
(SEMI FINISH TOP .010 AWAY)
N33G00X12.5Z5.H12M00                                                    	<<op 33
T12H12(TNR = 0.0313)
M41C200.S200.M03
G00X9.823Z-3.5126
Z-3.7552
G01X10.1568E.01
G03X10.1756Z-3.7363I.0001K-.019
G01Z-3.658
X10.1954Z-3.6502
G02X10.2844Z-3.6332I-.089K.225
X10.3605Z-3.6455I0.K.2419
G01X10.4225
M9
G00Z5.
X12.5
(FINISH TOP)
N34G00X12.5Z5.H12M00                                 			<<<<<op 34
T12H12(TNR = 0.0313)
M41C200.S200.M03
G00X9.8177Z-3.5332
Z-3.7652
G01X9.923E.01
X10.1568
G03X10.1856Z-3.7363I.0001K-.029
G01Z-3.6641
X10.2064Z-3.6567
G02X10.2844Z-3.6432I-.078K.2184
X10.3968Z-3.6723I0.K.2319
G01X10.406Z-3.6774
X10.504
M9
G00Z5.
X12.5
(SET Z 10.0 FROM TABLE)
N35G00X-8.Z5.H01M00                                                      	<<<<<<<<op 35
T01H01(TNR = 0.0315)
M41C120.S200.M05
X-6.0311
Z.0615
M00
X-8.
Z5.
(SET X .005 FROM FIXTURE OD)
N36G00X-8.Z5.H01M00                                                	<<<<<<<<op 36

Link to comment
Share on other sites

I knew there was a reason I could not find it. The pparameter lines are in my .psb file. I inserted this in my post file:

 

# --------------------------------------------------------------------------

# Parameter read postblocks:

# --------------------------------------------------------------------------

pwrttparam$ #Information from parameters

 

if prmcode$ = 15240, n$ = rpar(sparameter$,1)

 

and it works but I get this error when I post:

 

14 Jul 2011 06:08:46 PM - <2> - PSB LINE (-1,4903) - Duplicate assignment of label

 

Anything to worry about?

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