Machine tool builders vary the controller's functional implementation , and as
such, some of the information below may be handled differently in
the parameter numbers etc. However, the DPRN function works
pretty much the same regardless of implementation.
DPRNT is a feature that allows macro programs to output information to
external data files. You need to set up your parameters before you can use it
though.
Parameter set up:
#1127 digit alignment (try to leave at zero at first)
#9007 This is a logical port to output your data. Set to 9 to write to memory
#9008 set to 0 (zero)
#9054 File name to write data to
#9112 set to 1 to insert cr/lf code
You must first issue a POPEN in your macro before you attempt to use
DPRNT, and when you're done writing your data do a PCLOS.
Heres a simple example:
#1=12.34;
#2=#0
#100=-123456789.;
#500=-0.123456789;
POPEN;
DPRNT[]; (print blank line)
DPRNT[VAL-CHECK]; (this is just printing the text string)
DPRNT[1234567890];
DPRNT[#1[44]];
DPRNT[#2[44]];
DPRNT[#100[80]]; (the [80] is the digits left and right of the decimal ie.8.0)
DPRNT[#500[80]];
DPRNT[#100[08]];
DPRNT[#500[08]];
PCLOS;
further information can be found in the programmers manual for your machine


LinkBack URL
About LinkBacks





