Stephan Spears
Aluminum
- Joined
- Apr 12, 2014
- Location
- AB,Canada
Hello all,
Would anyone be able to help me out here? I am trying to use POPEN, DPRNT and PCLOS and record some machining information of my NC program to a txt/dat file, saved in a CF card. I am not sure how these commands behave when it comes to creating new files. Will the content be appended or will a new file be created after PCLOS?
Here's what I mean. What is the outcome of the following code?
Will the output be A text file, containing the following
OR will the output be 2 different txt files, the first one contatins
And the second one contains
Please help!
Thanks in advance.
Steph
Would anyone be able to help me out here? I am trying to use POPEN, DPRNT and PCLOS and record some machining information of my NC program to a txt/dat file, saved in a CF card. I am not sure how these commands behave when it comes to creating new files. Will the content be appended or will a new file be created after PCLOS?
Here's what I mean. What is the outcome of the following code?
Code:
%
O0001
N10 POPEN
N20 DPRNT[START*HERE]
N25 DPRNT[-------------]
N30 PCLOS
N40 G0 X0 Y0 Z0
N50 POPEN
N60 DPRNT[END*HERE]
N65 DPRNT[*************]
N70 PCLOS
Will the output be A text file, containing the following
Code:
START HERE
-------------
END HERE
*************
OR will the output be 2 different txt files, the first one contatins
Code:
START HERE
-------------
And the second one contains
Code:
END HERE
*************
Please help!
Thanks in advance.
Steph