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:

Brother R450X1 - Macro MOD


TacomaMax
 Share

Recommended Posts

Hello everyone.

We just got this new machine in the shop and we currently use this subprogram:

N52 (SN INTEGER 1000)
G0G90G40G17G80G94
 #102=#502MOD10000
 #103=#102/1000
 #103=FIX[#103]
IF[#103EQ0]GOTO30 (#0)
IF[#103EQ1]GOTO31 (#1)
IF[#103EQ2]GOTO32 (#2)
IF[#103EQ3]GOTO33 (#3)
IF[#103EQ4]GOTO34 (#4)
IF[#103EQ5]GOTO35 (#5)
IF[#103EQ6]GOTO36 (#6)
IF[#103EQ7]GOTO37 (#7)
IF[#103EQ8]GOTO38 (#8)
IF[#103EQ9]GOTO39 (#9)
M99

to extract digits from #502 to engrave serial numbers.  The machine does not like the MOD command/function.  Does anyone have experience with these controls?  Is there another way to get the remainder after division?

 

Thanks,

Max

 

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