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:

operation name


Recommended Posts

Hello

Happy New Year!

 

I have a question

I want to add a post processor that shows the type of operation it is.

For example I am doing a Facing, which according to the opcode$ / Tool_op$ list is number 19.

 

so it should stay like this

Planeado in english y facing

 

sm_op_type : ""

if opcode$ = 19, sm_op_type = "FACING"

pbld, n$, scomm_str, *sm_op_type, scomm_end, e$

 

Up to here everything is fine.

I have also added an opinfo table with the value 15238 to know exactly the number of op_code.

 

It turns out that if I do a facing, it tells me that opcode = 102

 

But it never shows me the text in my post processor.

 

Some help?

 

fmt "OPERACION NUMERO " 4 sm_op_number
fmt "OPCODE " 4 sm_opcode
resultado : 0
sm_op_type : ""

 


#tabla de valores
fprmtbl 101 2
      15240    sm_op_number             #numero real de la operacion
      15238    sm_opcode                
      


p_opcodes
    if opcode$ = 102, sm_op_type = "PLANEADO"
    if opcode$ = 19, sm_op_type = "PLANEADO"
    
p_asignar_valores
    resultado = fprm (101,0)

p_optipoop
     p_asignar_valores
     pbld, n$, scomm_str, *sm_op_number, scomm_end, e$
     pbld, n$, scomm_str, *sm_opcode, scomm_end, e$
     pbld, n$, scomm_str, *sm_op_type, scomm_end, e$

 

image.thumb.png.7bce505bb10fe4232033d273a514f051.png

image.thumb.png.65e6211ca44c6359680f5eff8d3d136e.png

Link to comment
Share on other sites
  • 1 month later...

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