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:

B ROTATION ALARM


Recommended Posts

Hello support,
   I am using a HORIZONTAL of which contains the "B" rotation and I would like to make an alarm such as:

IF LAST ROTATION <> CURRENT ROTATION & PREVIOUS T$ = CURRENT T$  & RETRACT FLAG  = 0 then show alarm....

 

I've got nothing alarm, I think the problem is the "prv_cabs <> cabs ".

 

Please help,
   S.Luong

 

===================

if srot_label = "B" & rotretflg = 0 & prv_cabs <> cabs & (prv_t$ = t$ | last_tool$ <> t$ | t$ = next_tool$), [if mprint(sHorizontalBRotationHomeDemands), exitpost$], e$

#Region sHorizontalBRotationHomeDemands
sHorizontalBRotationHomeDemands = "CUT#"+sToolPathNumber+", When rotate with differnt B ROTATION ANGLE,"
                                  +no2asc(13)+"             Z MUST BE HOME!!!"
                                  +no2asc(13)
                                  +no2asc(13)+"TOOL#"+no2str(t$)+" ("+s20001+")"
                                  +no2asc(13)
                                  +no2asc(13)+ "                                                  FROM B" + no2str(prv_cabs) + ", TO B" + no2str(cabs)
                                  +no2asc(13)+no2asc(13)
                                  +no2asc(13)+"======================================="
                                  +no2asc(13)+"CUT COMMENT: "
                                  +no2asc(13)+ "                              " + sop_com
                                  +no2asc(13)
                                  +no2asc(13)+ "                                                                                 TOOL OP# " + no2str(tool_op$)
                                  +no2asc(13)+ "                                                                                  OPCODE# " + no2str(opcode$)
                                  +no2asc(13)+ "                                                                               TOOL TYPE# " + no2str(tool_typ$)
#EndRegion sHorizontalBRotationHomeDemands           

Link to comment
Share on other sites

Steven,

I'm not sure what problem you are trying to solve here.

The Post doesn't know where your Z-Axis Home Position is, and the Post does not track "if the Z-Axis has been retracted".

The flag variable 'rotretflg' gets set, based on logic conditions. It causes the Post to call the 'pretract' or 'pretract0' Post Block. Once those blocks get called, the Post should reset those variables inside the Retract blocks. In other words, those flags act to "call" the block. They don't indicate "has the block been previously triggered".

What is your end goal here? What problem are you trying to overcome?

  • Like 1
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...