You are not logged in.
Pages: 1
first time on the board - so be gentle!
I am trying to utilise the DPRNT function so that I can simulate results printing - I have tried using both styles of macros (FanucPopen, FanucDprint, FanucPclose) & (MSOpenFile, MSWritetoFile, MSCloseFile) and I have defined the the override text as print.txt (as per a Mazak) to write all data to a file called print.txt in the Vericut directory.
However even though the program runs, I see no data.
Can someone explain exactly how I use these macros, where I define them, and what should be input?
Say for example I want to simulate the following on a Fanuc Control:
POPEN
DPRNT[PNUM-238736/OPER/20/87879]
DPRNT[]
DPRNT[DATE*#3011[80]]
DPRNT[TIME*#3012[80]]
DPRNT[]
PCLOS
#900=#138
#901=#139
#33=44.75(NOMINAL ANGLE)
#32=ABS[#901]-ABS[#900](ACTUAL ANGLE)
#31=#32-#33(DEVIATION)
#30=0.09(TOLERANCE)
POPEN
DPRNT[01*TP]
DPRNT[ANGLE/#33[44]/#32[44]/#31[44]/-#30[44]/#30[44]]
DPRNT[]
PCLOS
I have many DPRNT statements within a program containing many different text and variable statements. I'm hoping I don't need to define each one individually...
Offline
Hi Guypb,
I created a sample using the NC code lines you provided and it works, I get the file created with the following lines inside:
PNUM-238736/OPER/20/87879
DATE 0
TIME 0
01 TP
ANGLE/ 44.7500/ 0.0000/ -44.7500/- 0.0900/ 0.0900
As you can see DATE and TIME are not supported, but this can be an enhancement request to ask to your local representative or future suggestion forum post...
I can suggest two things to test:
1- Try forcing the Working Directory with File > Working Directory > OK
2- Try using a path in Override Text for FanucPopen macro such as C:\\tmp\\print.txt. Note the double slash \\ not \
Finally you will not have to create individual text file for each statement because FanucPopen offers the possibility to open the file in append mode (default mode with OV = 0). That means each simulation will be appending text to that file, you may find a trick to call FanucPopen OV = 1 for the first call or delete the file before simulation.
I hope that helps..
Mustapha
Offline
Sorted thanks!!
Offline
Pages: 1