![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hello all, I am trying to use mi5 to turn on AINano (similar to HSM on my Bridgeport 760XP3) and am running into problems. I am running Mcam 8.1 and I have it almost working I just need to tweak it a little. AI Nano is called out like this: Code: N200 (1/2 FLAT ENDMILL ) G49 G5.1Q1R4 T2M6 Code: G5.1Q0 I have mi6 set up as that R value, and that works fine. I put the following code in to my post: Code: phsm #High speed machining on
if mi5 = one,
[
*"G49", e
*"G5.1Q1R",*shsms, e
]
phsmoff #High speed machining off
if mi5 = one,
[
*"G5.1Q0", e
] Code: ptoolcomment
comment
pbld, phsm, e
pcan
pbld, *t, "M6", e
pindex Code: gcode = zero
pbld, phsmoff
pbld, sccomp, scoolant, psub_end_mny, e After turning the debugging lines on I see that the command to turn AI Nano off in T1 comes from pretract even though the Misc Values for that tool are off. My guess is that it is reading ahead. I just don't know how to limit it from doing that. Any help would be appreciated, Thanks, Jerry |
|
#2
| ||||
| ||||
| You may be setting the feature in the wrong areas - you seem to want to have it switch ON / OFF at the toolchanges, but you may want to have it switch at the start/finish of an operation. ie say T1 that may rough out a part and then go straight in to Finish it. Or what about - use MI#5 as the decider and holder of the actual value, & totally forget about using MI#6 Code: phsm #High speed machining on
if mi5 > 10, mprint "ERROR - Misc Int #5 greater than 10", exitpost$ <-- this will stop the posting until you fix it( it may be exitpost without the $) V8 is so old)
if mi5 > zero
[
pbld, n, "G49", e
pbld, n, "G5.1 Q1 R", mi5, "( HSM -ON- )", e
]
if mi5 <= zero,
[
pbld, n, "G5.1 Q0 ( HSM -OFF- )", e
] -this means it will be looked at and changed for each operation plus in the pretract & peof, try hard coding the OFF sequence Code: pbld, "G5.1 Q0", e ----they are using Misc Real#1 & MR#2 , it may give some pointers & MI#5 is used for switching outputs between feed/REV or feed/MIN.. so you may want to stay away from this interger Last edited by Superman; 10-06-2011 at 05:51 AM. |
|
#3
| |||
| |||
| Thanks for the info. I could hard code the phsmoff coding into the end of every tool, I was just trying to keep the code neat and clean. I will definitely look hard at that X2 post and see if I can come up with something from that. The only other guide I have is the post processor guide from MC5.5, and I'm self taught, so I am sure I am not as proficient as I could be. But since I can't foresee us upgrading software or hardware anytime soon, it will have to do. Thanks again. |
|
#4
| |||
| |||
| Ok, so I looked through the post you attached, and it looks like I am not doing anything different than what is shown there. I put phsmoff in pretract just like it's written in the other post. So it seems that when I look up mi5 in phsmoff under pretract, it is reading mi5 from the next tool. If I switch to mr5 it does the same thing. It reads it from the next tool. Any other ideas? |
|
#5
| |||
| |||
| Ok, I got it figured out. I changed my code to this: Code: phsm #High speed machining on
if mi5 = 1 & hsm_flag = 0,
[
*"G49", e
*"G5.1Q1R",*shsms, e
hsm_flag = 1
]
phsmoff #High speed machining off
if hsm_flag = 1,
[
*"G5.1Q0"
hsm_flag = 0
] |
| Sponsored Links |
![]() |
| 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 |
| not sure where to turn for help | ArtMaybee | PCB milling | 6 | 01-26-2011 06:56 AM |
| mill/turn on a cin turn | Robert Timby | General Metal Working Machines | 4 | 01-31-2007 10:33 PM |
| Which to Turn on First or Not | Mr.Chips | General Electronics Discussion | 10 | 01-31-2007 08:02 PM |
| Cin Turn turn/mill | Robert Timby | General CNC (Mill and Lathe) Control Software (NC) | 0 | 01-24-2007 07:12 PM |