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:

CAM Disciple

Verified Members
  • Posts

    157
  • Joined

  • Last visited

Everything posted by CAM Disciple

  1. 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
  2. How about using BREAK in the While Loop in VBS? DoWhile If shuthappening THEN Break Loop
  3. 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
  4. Wireless DNC It is still very expensive and not reliable.
  5. Please read FAQ. What kind of help do you need? Do you need help in modifying your post? Please be specific.
  6. your op (operation structure) contains this prm_manual_entry. You will need to call op_manager to create/edit a op and set this prm_manual entry. HTH
  7. 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?
  8. Go England all the way... that kid Rooney has a bright future, hope that he didn't end up like Gazza or Owen.
  9. +1 to Bryan and Bullines. Sadly but it's true. Chook document is little and almost not helpful at all. Please ask question here.
  10. I like this thread better. Good one. Chris! +1 want to make this thread lead!
  11. try bring your #include below all the MC header definition. I have that same error b4. code: extern "C" { #include "m_vars.h" // C-Hook header: main variables #include "m_math.h" // C-Hook header: math functions #include "m_menu.h" // C-Hook header: menu functions #include "m_graph.h" // C-Hook header: graphics functions #include "m_io.h" // C-Hook header: I/O functions #include "m_db.h" // C-Hook header: database functions #include "m_chain.h" // C-Hook header: chaining variables and functions #include "m_undo.h" // C-Hook header: undo functions #include "m_ncvars.h" // C-Hook header: NC variables #include "m_nc.h" // C-Hook header: NC functions #include "m_init.h" // C-Hook header: C-Hook initialization } #include <math.h> To be honest with you, I cannot make that shapes sample work. Hopefully, you will do better.
  12. Girus, Please goto this thread, you might find it useful. http://www.emastercam.com/cgi-bin/ultimate...ic;f=1;t=008423 HTH
  13. Do you have the post reference guide cd? It should not be that difficult. Ask question if you have problem and somebody will help you.
  14. 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...
  15. Can you post a section of your program you want to change? What is the post that you are using?
  16. 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
  17. 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
  18. 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
  19. It' over 1.5 million hits and the bid amount is US99,000,100.00.....
  20. what post are you running? what version of MC? what machine? We need to know more in order to help you better. /edit Welcome to the forum. edit/
  21. 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
  22. 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
  23. What's your psof block looks like? Did you have any changed for the mpfan or it is the original post from the cd?

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