![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| SolidCam Discuss SolidCam software here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Very easy one here for some...... I must be missing the obvious somewhere, but I can't get the coolant option to work properly in my generated program. I've put: @start_of_job if flood_coolant eq TRUE {nb, 'M8'} endif works nicely, but can't get the following to work: @end_of_job if flood_coolant eq FALSE {nb, 'M9'} endif tried a few things but not really getting anywhere |
|
#2
| |||
| |||
| Hi Matt, Happy New Year. I haven't set up my posts to handle the new coolant options myself but have you checked the trace to see if @end_of_job refreshes the variable flood_coolant? If it doesn't, the variable will still be in the TRUE state and your statement won't work. My posts are set up to turn coolant on automatically and only turn the coolant off for jobs that have a job option "coolant" set to 0, but we work exclusively in Al Al and running without coolant is very rare. |
|
#3
| |||
| |||
| Hi Bob, And a Happy New Year to you too! In the "@start_of_job" we have "flood_coolant: on". My statement works for this and outputs the M8 command. In the "@end_of_job" we have "flood_coolant: off". So I think my statement should work, but it doesn't. If I change to: @end_of_job if change(flood_coolant) {nb, 'M9'} endif the M9 now outputs, but if I then go and turn off the coolant in SC I still get the M9 output. The M8 does not output. The trace shows "flood_coolant:no_action" in both @start_of_job and @end_of_job. Hmmmm. As it is 99% of my jobs too are aluminium so I already have the M8 and M9 automatically fired for every generated program, so it's not a big thing. Just wanted to use it. But I do now have another issue (GPP related)....................new thread perhaps. |
|
#4
| |||
| |||
| Hi Bob, And a Happy New Year to you too! In the "@start_of_job" we have "flood_coolant n". My statement works for this and outputs the M8 command.In the "@end_of_job" we have :flood_coolant ff". So I think my statement should work, but it doesn't.If I change to: @end_of_job if change(flood_coolant) {nb, 'M9'} endif the M9 now outputs, but if I then go and turn off the coolant in SC I still get the M9 output. The M8 does not output. The trace shows "flood_coolant:no_action" in both @start_of_job and @end_of_job. Hmmmm. As it is 99% of my jobs too are aluminium so I already have the M8 and M9 automatically fired for every generated program, so it's not a big thing. Just wanted to use it. But I do now have another issue (GPP related)....................new thread perhaps. |
|
#6
| |||
| |||
| Matt, shouldn't your if statement read if flood_coolant eq "on" {nl, "M8"} end if or if flood_coolant eq "off" {nl,"M9"} endif In your original statement you were testing for a logical condition but the trace shows a string value. But I could be wrong.... Bob |
|
#7
| |||
| |||
| Hi Bob, Already tried that and got an "invalid IF statement" error. FYI, in my mac file I have: ;Coolant_options flood_coolant = Y I'll struggle on for now and see if I have any bright ideas. As I said, my GPP is cinfigured so that the M8 and M9 fire automatically anyway whether the coolant option is ticked or not, so not really a problem. Just hate failure! |
|
#8
| |||
| |||
Mac file additions: ;Coolant Options Flood_Coolant =Y Mist_coolant = Y ;HP_Flood_coolant = N ;LP_Flood_coolant = N ;HP_Through_coolant = N ;LP_Through_coolant = N Air_Blast_coolant = Y ;Minimum_Quantity_L = N turn on what you need in Mac to activate in interface Gpp file additions: @end_program {nb, 'M9'} {nb, 'M5'} {nb, 'M61'} {nb, 'M84' @change_tool local logical save_blknum_gen if !first_tool {nb, 'M9'} {nb, 'M61'} {nb, 'M84'} {nb, 'G91 G28 Z0'} {nb,'M1'} {nl,''} {nb,'''G90 G80 G40 '} home_flag = TRUE Skipline = FALSE call @home_number op_number = op_number + 1 else home_flag = TRUE call @home_number endif @start_of_job if Flood_Coolant eq 1 then {nb, 'M8'} endif if Mist_coolant eq 1 then {nb, 'M51'} endif if Air_Blast_coolant eq 1 then {nb, 'M83'} endif this is how ours is set up |
|
#10
| |||
| |||
| I have added the following to my GPP file to controll the new coolant options. Under the @init_post section at the begining of the GPP file I added global logical Flood_coolant_on HP_Through_coolant_on global numeric s_Flood_coolant s_HP_Through_coolant At the @start_of_job section of my post I added call @start_coolant At the @end_of_job section of my post I added call @stop_coolant I then added two new sections to my post as follows: @start_coolant ; Added coolant start options if Flood_coolant eq 1 then {nb,'M08'} Flood_coolant_on = true endif if HP_Through_coolant eq 1 then {nb,'M07'} HP_Through_coolant_on = true endif s_Flood_coolant = Flood_coolant s_HP_Through_coolant = HP_Through_coolant endp ;------------------- @stop_coolant ; Added coolant stop options if Flood_coolant_on eq true and s_Flood_coolant eq 1 then {nl,'M09'} endif if HP_Through_coolant eq true and s_HP_Through_coolant eq 1 then {nl,'M09'} endif s_Flood_coolant = Flood_coolant s_HP_Through_coolant = HP_Through_coolant endp Hope this helps as it works sweet. Dont forget to add the options to the mac file! Cheers Jake T-B |
| 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 |
| Umm... what do you do with old coolant? | Driftwood | General CNC (Mill and Lathe) Control Software (NC) | 0 | 01-22-2009 03:54 PM |
| Can anyone tell me about this coolant? | alexccmeister | General Metalwork Discussion | 10 | 10-15-2008 04:49 AM |
| Air or coolant? | zedzero | Haas Mills | 13 | 03-23-2008 11:47 AM |
| Coolant or No Coolant when turning.... | Crashmaster | General Metalwork Discussion | 3 | 05-20-2007 01:20 AM |
| COOLANT (what are you using?) | carbidecraters | General Metalwork Discussion | 12 | 01-22-2006 12:31 AM |