VERICUT Users' Forum

Due to relentless spammers, we are no longer automatically accepting new forum registrations. If you wish to register for this forum, please send an e-mail to: info@cgtech.com

You are not logged in.

#1 2010-10-22 07:07:02

guypb
Member
Registered: 2010-10-21
Posts: 3

DPRNT

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

#2 2010-10-27 08:24:41

MustaphaC
VERICUT Specialist
From: Le Mans, France
Registered: 2004-10-14
Posts: 130
Website

Re: DPRNT

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

#3 2010-11-02 11:55:15

guypb
Member
Registered: 2010-10-21
Posts: 3

Re: DPRNT

Sorted thanks!!

Offline

Board footer