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:
sorry for not reasing the post correctly.
Just drank my first cup of coffee here.
almost seems like you need to evaluate everything
by putting a
If
end if
Please let me know how you handle this problem because I want to learn this too. Thanks
Declare a variable
At the ptoolend block,
save the mr1 variable value to the new variable you declared.
Use this new variable to do the switching thing at the ptlchg0
HTH
look at your sdk page 5-52 and 5-53
there's a variable declare:
code:
char comment[COMMENT_SIZE]; //operation description
COMMENT_SIZE is limited to 120
Is this what you want?
Good luck with your C-hook development.
Like Bryan said,
quote:
Mastercam SDK does not not give access to everything. The sdk is crippled in some very odd ways.
I find that sometime it's better to goto the header file and search for the function call yourself. SDK has limited explanation on what does the function do and how to properly call it.
also, since version X is almost here , might want to consider putting this project on hold. Version X might not work with the Chook you develop now since it's .Net based. JM2C...
Since this answer won't change, you can set your answer in your post. Or use the treacherous edit common feature in your toolpath manager.
or edit the post to ask you the question and then answer the question every time.
Hope this helps
Jim,
Th edit common doesn't work very well with the misc int.
if you have mi1 = 1, mi2=4 in the first toolpath
and mi1=0,mi2=3 in the second toolpath.
Using edit common to change the mi1=1 for all toolpath will reset the mi2 value to whatever value the selected toolpath have.
Is that true? or I am missing something here?
Please advise. Thanks
You will need to declare this variable at the top
map_mode : 0
I am not familar with this variable. Maybe MayDay use that variable for some kind of switch.
If this is a permanent thing, just hard code it at your peof block.
n, "S.1", "M30", e
HTH
I am not sure whether you are using mpfan.pst or not.
If you do, under your format section, there's a line like this:
code:
fmt F 15 feed #Feedrate
Change it to:
code:
fmt F 13 feed #Feedrate
Check to see if you have this line of code in your post in order for this to work.
code:
fs2 13 0.5 0.5 #Decimal, absolute, 5 place
HTH
code:
psof #Start of file for non-zero tool number
pcuttype
toolchng = one
if ntools = one,
[
#skip single tool outputs, stagetool must be on
stagetool = m_one
!next_tool
]
"%", e
*progno, e
"(PROGRAM NAME - ", sprogname, ")", e
"(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e
pbld, n, *smetric, e
pbld, n, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, e
sav_absinc = absinc
if mi1 <= one, #Work coordinate system
[
absinc = one
pfbld, n, sgabsinc, *sg28ref, "Z0.", e
pfbld, n, *sg28ref, "X0.", "Y0.", e
pfbld, n, "G92", *xh, *yh, *zh, e
absinc = sav_absinc
]
pcom_moveb
c_mmlt #Multiple tool subprogram call
ptoolcomment
comment
pcan
if stagetool >= zero, pbld, n, *t, "M6", e
pindex
if mi1 > one, absinc = zero
pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,
pfcout, *speed, *spindle, pgear, strcantext, e
pbld, n, "G43", *tlngno, pfzout, scoolant, next_tool, e
absinc = sav_absinc
pcom_movea
toolchng = zero
c_msng #Single tool subprogram call
add this line
code:
absinc = 1
before this line
code:
pbld, n, *sgcode, *sgplane, "G40", "G49", "G80", *sgabsinc, e
HTH
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.