Okuma post modifcations?


Results 1 to 2 of 2

Thread: Okuma post modifcations?

  1. #1
    Registered
    Join Date
    Apr 2003
    Location
    Bend, USA
    Posts
    16
    Downloads
    0
    Uploads
    0

    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.

    Similar Threads:
    Randle


  2. #2
    Member HuFlungDung's Avatar
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    4826
    Downloads
    0
    Uploads
    0

    Default

    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.

    Last edited by HuFlungDung; 06-13-2003 at 12:21 AM.
    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)


Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Okuma post modifcations?

Okuma post modifcations?