Cancel
Showing results for 
Search instead for 
Did you mean: 

Mill-Turn Post

Creator
Creator

Hello.

Thank You in advance,for constant support of CNC Community.

I try to create Mill-Turn Post, but in order to do so, I need transfer some of the Variables from "Program Start Sequence"

in Lathe Post, to "Program Start Sequence" in Mill Post how I can efficiently do this?

 
3 REPLIES

Re: Mill-Turn Post

Siemens Legend Siemens Legend
Siemens Legend

You can try this...

In Lathe post output variables to an external file,  in Mill post open the external file and read them in, then delete the external file.

 

Example:

From lathe

# Create file with OFF flag to enable reading of PB_CMD_before_motion in SUB program

global mom_output_file_directory
set post_run [open ${mom_output_file_directory}\EXTERNAL_RUN.txt w ]
puts $post_run OFF
close $post_run

}

 

Mill Post:

# READ file with ON or OFF flag to enable skipping or reading of PB_CMD_before_motion in SUB program
global run_external_flag
global mom_output_file_directory
set post_run1 [open ${mom_output_file_directory}\EXTERNAL_RUN.txt RDONLY ]
set run_external_flag [gets $post_run1]
close $post_run1
file delete -force "${mom_output_file_directory}EXTERNAL_RUN.txt"

}

Re: Mill-Turn Post

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

What variables do you need to transfer?

Normally posts do not "clean up" after themselves, so once a variable is defined, it does NOT ever get "unset" (it may be set to a new value, but it is not "deleted")

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: Mill-Turn Post

Creator
Creator
Hello Ken_A.
I am compose Mill-Turn Post-Processor, wile Lathe Post working, and mill Post give output,
/which need to be tweaked/, together they give me errors. And also I need to put Header from Lathe Post to Mill Post/ program number, name of Programmer etc.

Thank You.

Sincerely,

Alexander Rokhvarg.
Belcan Engineering Group LLC.
Senior Engineer.
317-860-2567 Desk
arokhvarg@belcan.com.
Rolls-Royce contact information:
Alexander.Rokhvarg@Rolls-Royce.com

Learn online





Solution Information