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:

Tool Inspection point and mi8


Recommended Posts

So I've been trying to get tool inspection point working.  It seems regardless of what post I start out with (MPMASTER, MPFAN, or the new IKE) if put any value besides 0 in mi8 it will give some form of this error (this one is specifically from the IKE) depending on which post:

21 Aug 2023 08:25:51 AM - RUN TIME -PST(4067,4067)- The value of the string select selection variable is out of range:1011

This seems to point to the "sgcode" string every time regardless of what post is used.  I just can't seem to track down where this could be happening to try to resolve it.

edit:  accidentally posted this in the wrong area.

Link to comment
Share on other sites

Have you predefined the variable with a value in the post?

variable      : 0 #Defining the variable with an initial value so the MP language knows it should be used for a math function and not something else.

Example out of MPMASTER.

# --------------------------------------------------------------------------
# Common User-defined Variable Initializations (not switches!)
# --------------------------------------------------------------------------
arctype$    : 2     #CD_VAR Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.,
                    #5 = R no sign, 6 = R signed neg. over 180
stagetool   : 0     #0 = Do not pre-stage tools, 1 = Stage tools
arccomp     : 0     #Allow for cutter comp to be applied on arc, 0=no, 1=yes
vmc         : 0     #0 = Horizontal Machine, 1 = Vertical Mill
rot_on_x    : 0     #Default Rotary Axis Orientation, See ques. 164.
rot_cw_pos  : 0     #Axis signed dir, 0 = CW positive, 1 = CCW positive
index       : 0     #Use index positioning, 0 = Full Rotary, 1 = Index only
ctable      : 0     #Degrees for each index step with indexing spindle
use_frinv   : 0     #Use Inverse Time Feedrates in 4 Axis, (0 = no, 1 = yes)
rot_type    : 0     #Rotary type - 0=signed continuous, 1=signed absolute, 2=shortest direction
minfeedpm   : 0     #Limit for feed in inch/min
maxfeedpm   : 0     #Limit for feed in inch/min
minfeedpm_m : 0     #Limit for feed in mm/min
maxfeedpm_m : 0     #Limit for feed in mm/min
maxfrdeg    : 0     #Limit for feed in deg/min

 

Link to comment
Share on other sites

the "sgcode" string variable is defined by default in a table. 

Example from the IKE post

# Motion G-code selection
sgrap                    : "G00"       #Rapid
sglin                    : "G01"       #Linear feed
sgcw                     : "G02"       #Circular interpolation CW
sgccw                    : "G03"       #Circular interpolation CCW
sgdwell                  : "G04"       #Dwell

sgcode                   : ""

fstrsel sgrap gcode$ sgcode 5 -1

example from MPMASTER

# Motion G code selection
sg00    : "G00"      #Rapid
sg01    : "G01"      #Linear feed
sg02    : "G02"      #Circular interpolation CW
sg03    : "G03"      #Circular interpolation CCW
sg04    : "G04"      #Dwell
sgcode : ""          #Target for string

I think the issue really just stems from somehow it's looking at the NCI 1011 field number which is for misc reals and loading that into the string instead of a gcode value it would understand (0-4 for G00-G04).

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