critz
05-14-2008, 10:14 PM
I'm working with an oddball controler software (flexcam) and trying to build my own post processer. I have solved all of the problems but one.
I need to give the machine four decimal places even if they are not significant. and I'm using the ' generic fanuc 3X mill.pst '
Thanks for any help,
KC
g-codeguy
05-19-2008, 06:36 AM
Here is where you set the type of output you want. You can create your own options. The 'time' options were an add on as were a couple others.
# --------------------------------------------------------------------------
# Format statements - n=nonmodal, l=leading, t=trailing, i=inc, d=delta
# --------------------------------------------------------------------------
#Default english/metric position format statements
fs2 1 0.7 0.6 #Decimal, absolute, 7 place, default for initialize (:)
fs2 2 0.4 0.3 #Decimal, absolute, 4/3 place
fs2 3 0.4 0.3d #Decimal, delta, 4/3 place
#Common format statements
fs2 4 1 0 1 0 #Integer, not leading
fs2 5 2 0 2 0l #Integer, force two leading
fs2 6 3 0 3 0l #Integer, force three leading
fs2 7 4 0 4 0l #Integer, force four leading
fs2 9 0.1 0.1 #Decimal, absolute, 1 place
fs2 10 0.2 0.2 #Decimal, absolute, 2 place
fs2 11 0.3 0.3 #Decimal, absolute, 3 place
fs2 12 0.4 0.4 #Decimal, absolute, 4 place
fs2 13 0.5 0.5 #Decimal, absolute, 5 place
fs2 14 0.3 0.3d #Decimal, delta, 3 place
fs2 15 0.2 0.1 #Decimal, absolute, 2/1 place
fs2 16 0 4 0 3t #No decimal, absolute, 4 trailing
#Default english/metric feed format statements
fs2 17 0.2 0.1 #Decimal, absolute, 2/1 place
fs2 18 0.4 0.3 #Decimal, absolute, 4/3 place
fs2 19 0.5 0.4 #Decimal, absolute, 5/4 place
fs2 20 1 0 1 0n #Integer, forced output
fs2 25 1.4 1.3lt #Decimal, absolute, 4/3 trailing
# These formats used for 'Date' & 'Time'
fs2 21 2.2 2.2lt #Decimal, force two leading & two trailing (time2)
fs2 22 2 0 2 0t #Integer, force trailing (hour)
fs2 23 0 2 0 2lt #Integer, force leading & trailing (min)
By looking at these examples you should be able to figure out when to use t (trailing), l (leading), d (delta), or neither. Then you use these numbers (1-25) to format the output for each letter. Thusly:
# Toolchange / NC output Variable Formats
# --------------------------------------------------------------------------
fmt T 7 toolno #Tool number
fmt G 4 g_wcs #WCS G address
fmt P 4 p_wcs #WCS P address
fmt S 4 speed #Spindle Speed
fmt M 4 gear #Gear range
fmt S 4 maxss$ #RPM spindle speed
# --------------------------------------------------------------------------
fmt N 24 n$ #Sequence number
fmt X 2 xabs #X position output
fmt Y 2 yabs #Y position output
fmt Z 2 zabs #Z position output
fmt U 3 xinc #X position output
fmt V 3 yinc #Y position output
fmt W 3 zinc #Z position output
fmt C 11 cabs #C axis position
fmt H 14 cinc #C axis position
fmt C 11 cout_a #C axis position
fmt H 14 cout_i #C axis position
fmt B 4 indx_out #Index position
fmt I 3 iout #Arc center description in X
fmt J 3 jout #Arc center description in Y
fmt K 3 kout #Arc center description in Z
fmt R 2 arcrad$ #Arc Radius
fmt F 18 feed #Feedrate
fmt P 16 dwell$ #Dwell
fmt M 5 cantext$ #Default cantext
fmt C 2 crad #C axis start radius, G107
critz
05-20-2008, 12:59 AM
Thanks man, I actually just figured out my prob using some help from the mastercam forum.
Thanks again,
KC