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:
The predefined variables are not mapped correctly. Some are absolute and some are incremental adding the incremental values to known absolute reference values make them absolute as well. turns out this was a mapping issue and my calculations are working.
drl_init_z$ (clearance height) Mapped value
drl_sel_ref$ (retract height) not mapped
drl_sel_tos$ (top of stock) not mapped
drl_ref_z$ (referance point in space for top of hole) Mapped value
drl_depth_z$ (hole depth) Mapped value
drl_sel_ref$ & drl_sel_tos$ get output from mastercam as inc values.
I am using the calc's below to calculate these variables based on a mapped value
zrefhgt = drl_ref_z$ + drl_sel_ref$
ztoshgt = drl_ref_z$ + drl_sel_tos$
FYI I'm new to post writing and open to advises if I'm doing it wrong.
now I get this output from the post and it still falls over when it sees letters, apart from the Groupcom it's pulling in from somewhere.
(groupcom 2568542.)
Hey Team,
I am trying to output the Tool manufacturers code from the tool settings into the G code. I have it working when the tool code is numerical but when the tool code has letters in the code it stops outputting after the Tool manufacturers code after the first letter is hit.
ex. 78987t8987 post will output 78987 and stop.
pardon the bad coding I am hacking and learning as I go.
Thanks in advance.
fmt "TC=" 25 groupcom # out put the tool_op$ Manufactuers code
if prmcode$ = 20002, groupcom = rpar(sparameter$, 50)
(Pheader)
sopen_prn, *groupcom, sclose_prn, e$
Hey Gs
I see the error from time to time and just close and reopen MC, It's annoying. today I sore a case where every time the simulator launched the error occurred.
"Unknown error has occurred " (most brain dead error name ever)
This issue was caused because all of the machine simulator default machines were removed from the MC2020 shared machine sim folder.
The "5_5AXGEN_VMCTTAB" cannot be removed from the folder. It is used by the Mastercam verify machine simulator as a default machine.
put this one machine back in the MC2020 shared machine sim folder and the simulator works again.
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.