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:

force x and y


HEAVY METAL
 Share

Recommended Posts

Yes, you could locate all the X,Y outputs and prefix an aterisk (*) to each.

Here is another way....

 

You could do this by setting the format (FMT) assigned to X & Y to be Non-Modal

But be aware that this will affect all the OTHER variables that use that FMT.

You could start rearranging FMTs assigned to those variables....

Ugly and possibly error prone if you don't get them all.

 

In v9, you can use the new FORCE() command formula which was added to simplify forcing output.

 

*Force function (definition)

This function allows forcing the variable to output on the next output call and then modality is reapplied from the original (fmt) format statement.

Output calls that reset this flag are: normal output, forced output(*), dependent output(`).

This function takes two arguments so a range of variables can be forced to output.

Argument one is the lower index position in the variable database and argument two is the higher index in the variable database.

(This means the variables in the range specified by the 1st variable and the 2nd variable MUST be defined in order in the PST file!)

 

EX. result = force(x,z)

Forces out x, y, z on the next output call.

 

EX. result = force(x,x)

Forces out only x on next output call.

 

The selector variable of a string select table can be set to force and the

string output is then forced on the next output.

 

EX. result = force(gcode,gcode)

sgcode, e

(Note: Strings can't be directly forced with this function.)

 

-------------------------------------------------

*In the MPCIN850.PST (from v9 CD) you first need to declare a variable ->

 

result : 0 # Needed to hold the return value from the FORCE() command

# Note that we really don't care about the returned value!

 

*Then add the 'force' commands in the postblocks shown ->

 

code:

  

prapidm # Linear line movement - at rapid feedrate

psubseqn

pcan

result = force(x,y) #Added (1/29/2003)

if mi2 = 0, pcan1, n, sccomp, pccdia, sgcode, x, y, z, strcantext, e

if mi2 > 0, pcan1, sn, sccomp, pccdia, sgcode, x, y, z, strcantext, e

pcan2

 

 

plinm # Linear line movement - at feedrate

psubseqn

pcan

result = force(x,y) #Added (1/29/2003)

if mi2 = 0, pcan1, n, sgcode, x, y, z, pfr, strcantext, e

if mi2 > 0, pcan1, sn, sgcode, x, y, z, pfr, strcantext, e

pcan2

 

 

pcirm # Circular interpolation

psubseqn

pcan

result = force(x,y) #Added (1/29/2003)

if mi2 = 0, pcan1, n, sgplane, sccomp, pccdia, sgcode, x, y, z,

pijk, pfr, strcantext, e

if mi2 > 0, pcan1, sn, sgplane, sccomp, pccdia, sgcode, x, y, z,

pijk, pfr, strcantext, e

pcan2

 

pdrill_2 # Canned Drill Cycle

result = force(x,y) #Added (1/29/2003)

if mi2 = 0, n, x, y, depth

if substart = 0, ex

if mi2 > 0, psubseqn

if mi2 > 0, sn, x, y, depth

 


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