603,965 active members*
3,393 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > Mastercam > Okuma post modifcations?
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2003
    Posts
    16

    Lightbulb Okuma post modifcations?

    I recently modified the V9.1 okuma post to work with our machines and controllers. It works almost perfect except for a couple of things:

    How do I get an alphabetical letter to call up on each tool change?

    For example:

    IF [VATOL EQ 02 ] NATA
    T2 M6
    NATA G00 G90
    M1
    G15 H01

    I would like the "A" at the end of NATA to change to "B" and so on alphabeticaly at each toolchange.

    I was able to get the # for ASCII to post but I cant get the # to convert to the actual ASCII character in the post.
    Is there a simple # to ACSII command to output the character value?

    what I'm getting:

    IF [VATOL EQ 01 ] NAT65
    NAT65 G00 G90

    what I need:

    IF [VATOL EQ 01 ] NATA
    NATA G00 G90


    Any help or sample posts would be greatly appreciated.

    Thank you.
    Randle

  2. #2
    Join Date
    Mar 2003
    Posts
    4826
    I know nothing about Mastercam, but is there a command anything like
    CHR
    or
    CHAR
    followed by the number of the ASCII character which you want?

    Then, make a new variable to hold your character's ASCII value
    thus:

    Dim IntMyChar as Integer
    IntMyChar = 64 'possible intial value

    'start loop
    IntMyChar = (IntMyChar + 1)
    'trap values to within the range of upper case ASCII values
    If IntMyChar < 64 Then IntMyChar = 90
    ElseIf IntMyChar > 90 Then IntMyChar = 65
    End If

    IF [VATOL EQ 01 ] NAT(CHAR(IntMyChar))
    NAT(CHAR(IntMyChar)) G00 G90
    etc.

    My syntax may not be exactly what you would use, but maybe it will give you an idea.
    You may also need a method to save the value of IntMyChar (or whatever you choose to call it) as a global value, and this is usually done by defining the variable as global.
    First you get good, then you get fast. Then grouchiness sets in.

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

Similar Threads

  1. Emco Compact 5 PC...have ????
    By Double G in forum Mini Lathe
    Replies: 42
    Last Post: 08-23-2010, 12:26 AM
  2. Upgrading control hardware - Emco
    By eDudlik in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 21
    Last Post: 12-08-2009, 07:52 AM
  3. v2xt post
    By jrrhotrod in forum Post Processors for MC
    Replies: 25
    Last Post: 12-11-2008, 12:20 AM
  4. One more little bump in the ProtoTrak post
    By Shadowfaxx in forum Post Processors for MC
    Replies: 1
    Last Post: 01-05-2005, 05:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •