![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Parametric Programing (custom macro b, fadal macro, okuma user task) |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#14
| |||
| |||
| He is trying to make it a negative number not a positive number. The ABS would change a negative to a positive. He is using #6=[0-#527]-0.12 to get his calculation. The 0 can be removed #6=[-#527]-.12 but all and all it works and it works in one line of code. Stevo |
|
#15
| |||
| |||
| This should work. Code: #6=[-#6] Code: (TOP OF PROGRAM) #19=[-1](SET TO 1 OR -1 AS NEEDED) . . . . #6=[#6*#19] . . #100=[#100*#19] . . |
| Sponsored Links |
|
#16
| ||||
| ||||
| |
|
#18
| ||||
| ||||
| #6=#6*[-1] This will change #6 to it's opposite. If #6 is positive, it will become negitive, negitive will be positive. I have several subs that use this logic. Last edited by jamesweed; 05-21-2009 at 08:41 PM. Reason: confusing statement :( |
|
#19
| ||||
| ||||
| You said Also since it is a loaded variable, why don't you just load it as a negative number? EDIT: Okay, I can see why you are loading it as a positive number if #527 is being used on the main and subspindle (how often does that happen that the same value is needed?). Still from your posts it seems like you are only adding one block. You must be making the change a lot more than once. |
![]() |
| 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 |
| Need Help!- Carving Signs | Sam A | BobCad-Cam | 2 | 05-04-2008 09:01 PM |
| Painting wooden signs? | abomb55076 | WoodWorking | 26 | 08-07-2007 10:39 PM |
| RFQ Billet superman signs | clarq_kent | Employment Opportunity | 21 | 05-26-2007 11:40 AM |
| wood signs | Pugster | WoodWorking | 1 | 07-07-2006 11:21 PM |
| Top Ten Signs | wms | CNCzone Club House | 19 | 06-21-2003 07:04 PM |