![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Mastercam Discuss Mastercam software here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| 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
| ||||
| ||||
| 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) Last edited by HuFlungDung; 06-13-2003 at 12:21 AM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Emco Compact 5 PC...have ???? | Double G | Mini Lathe | 42 | 08-22-2010 07:26 PM |
| Upgrading control hardware - Emco | eDudlik | General CNC (Mill and Lathe) Control Software (NC) | 21 | 12-08-2009 01:52 AM |
| v2xt post | jrrhotrod | Post Processors for MC | 25 | 12-10-2008 06:20 PM |
| post processor help | jrrhotrod | Post Processor Files | 8 | 01-14-2005 04:45 PM |
| One more little bump in the ProtoTrak post | Shadowfaxx | Post Processors for MC | 1 | 01-04-2005 11:10 PM |