View Full Version : Import a Post .txt in MasterCamX2


frad8
02-28-2007, 02:36 PM
I bougth a CNC that uses a modified "Fanuc 16M/Fanuc 0M".
I want to generate the right NC code for my machine.
I have only a post in "*.txt" file
how can I import it in masterCam (MasterCamX2).

Specification of the machine:
Router 3 axes
fixed table
work area: 1800/3000mm (x,y)
z: 150mm
spindle: 6000 to 30000 rpm
P: 4Kw



folloing the post on notepad (.txt extension):

[Information]
ReleaseDate=2007/02/13

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; FANUC 16M ou 0M


[Principal]
NomMachine =Fanuc 16M/Fanuc 0M
TypeMachine=3
FamilleMachine=1000
WhoAmi=ISO-CNC
DLL=MACISON.DLL
TyDri=0

DIMMACHINE=-0.100000,-0.100000,-0.100000,2.480000,1.260000,0.100000
STDPOINT=0.000000,0.000000,0.000000,3
TYPEAXE=1
PANELAXE=0
ACCURATE=1.e-005
PORT=2
PORTDESCR=
VTA=1
XyzIni=0.000000,0.000000,0.030000
XyzUp=0.000000,0.000000,0.030000
XyzTch=0.000000,0.000000,0.030000
Zd=0.000000
Zf=-0.010000
Zp=0.005000
Zg=0.000200
TyZp=0
Zi=0.000100
TyUs=0
NwithBl=1
Nmax=999999999
Gini=0
Gmodal=1
XyzMTI=100.0,100.0,100.0
Xyzszf={"%.2f","%.2f","%.2f"}
XyzTm=1,1,1
XyzRm=1,1,1
Xyzav0=0,0,0
IjkMTI=100.0,100.0,100.0
Ijkszf={"%.2f","%.2f","%.2f"}
Ijkav0=0,0,0
Ijki=1,1,1
Dsz0=H
Dsz1=\ H
Ssze=\ M3
Smax=40000
Scalcauto=0
Fmax=5.0
FtoMac=1000.0
Fcalcauto=0
Fmodal=1
Nnbbmax=10000
Nnbbctrl=0
Nnbomax=100000
Nnboctrl=0
Lusictrl=0
RayMin=0.00001
RayMax=1000.0
RcurvMin=0.00001
AF=1.0e-5
AVM=1.0e-5
Psz0=O
Psz1=O
PendSz0=%
PendSz1=%
PendSzf=
HeadPcrNb=7
HeadPcrSz0=
HeadPcrSz1=
HeadPcrSz2=
HeadPcrSz3=
HeadPcrSz4=
HeadPcrSz5=G0 G90 G54xy
HeadPcrSz6=G01dz M8
EndPcrNb=3
EndPcrSz0=M05
EndPcrSz1=M30
EndPcrSz2=%
HeadChoNb=5
HeadChoSz0=t
HeadChoSz1=M6
HeadChoSz2=s
HeadChoSz3=G0 G90 G54 xy
HeadChoSz4=G43dz M8
HeadTotNb=2
HeadTotSz0=p
HeadTotSz1=G91 G28 Y0 Z0
HeadTotSz2=
HeadTotSz3=
HeadTotSz4=
HeadTotPcrNb=5
HeadTotPcrSz0=t
HeadTotPcrSz1=M6
HeadTotPcrSz2=s
HeadTotPcrSz3=G0 G90 G54xy
HeadTotPcrSz4=G43dz M8
EndTotPcrNb=2
EndTotPcrSz0=s0
EndTotPcrSz1=M9
EndTotNb=3
EndTotSz0=M17
EndTotSz1=M30
EndTotSz2=p0
HeadLayNb=2
HeadLaySz0=p
HeadLaySz1=G91 G28 Y0 Z0
HeadLaySz2=
HeadLaySz3=
HeadLaySz4=
HeadLayPcrNb=5
HeadLayPcrSz0=t
HeadLayPcrSz1=M6
HeadLayPcrSz2=s
HeadLayPcrSz3=G0 G90 G54xy
HeadLayPcrSz4=G43dz M8
EndLayPcrNb=2
EndLayPcrSz0=s0
EndLayPcrSz1=M9
EndLayNb=3
EndLaySz0=M17
EndLaySz1=M30
EndLaySz2=p0

STDPOINT_1=0.000000,0.000000,0.000000
STDPOINT_2=0.000000,0.000000,0.000000
STDPOINT_3=0.000000,0.000000,0.000000
STDPOINT_4=0.000000,0.000000,0.000000
STDPOINT_5=0.000000,0.000000,0.000000
POSITION_CALAGE=6
SENDTO=2
NUMSTART=0
CutPress=0
PageFeed=0.000000
NewOrigine=0
CutLength=0
CutSpeed=0
ContMode=0
CylInv=0
CylP1=0.000000
CylP2=0.000000
CylD1=0.057000
CylD2=0.057000
CylZ1=0.000000
CylZ2=0.000000
MatAxeA=0.000000,0.000000,0.000000
MatAxeB=0.000000,0.000000,0.000000
MatAxeC=0.000000,0.000000,0.000000
CylDirInter=0
STDPOINT_0=0.000000,0.000000,0.000000
USERPOINT_0=0.000000,0.000000,0.000000
USERPOINT_1=0.000000,0.000000,0.000000
USERPOINT_2=0.000000,0.000000,0.000000
USERPOINT_3=0.000000,0.000000,0.000000
USERPOINT_4=0.000000,0.000000,0.000000
USERPOINT_5=0.000000,0.000000,0.000000
MIRRORING_XY=0
ROTATE_90XY=0
000_GnbSlice=1
000_GFzVal=0.180000,0.600000,2.100000
000_GFxyVal=0.180000,0.600000,2.100000
000_DelayVal=0.080000,0.200000,0.500000
000_SurfPos=0.000000
000_AuxS=1
000_AuxC=0
000_Aux0=0
000_Aux1=0
000_GprofZ=0.000000,0.000000,0.000000,0.000000
000_Hcur=-1,-1,-1,-1
000_GFzI=0,0,0,0
000_GFxyI=0,0,0,0
001_GnbSlice=1
001_GFzVal=0.180000,0.600000,2.100000
001_GFxyVal=0.180000,0.600000,2.100000
001_DelayVal=0.080000,0.200000,0.500000
001_SurfPos=0.000000
001_AuxS=1
001_AuxC=0
001_Aux0=0
001_Aux1=0
001_GprofZ=0.000000,0.000000,0.000000,0.000000
001_Hcur=-1,-1,-1,-1
001_GFzI=0,0,0,0
001_GFxyI=0,0,0,0
002_GnbSlice=1
002_GFzVal=0.180000,0.600000,2.100000
002_GFxyVal=0.180000,0.600000,2.100000
002_DelayVal=0.080000,0.200000,0.500000
002_SurfPos=0.000000
002_AuxS=1
002_AuxC=0
002_Aux0=0
002_Aux1=0
002_GprofZ=0.000000,0.000000,0.000000,0.000000
002_Hcur=-1,-1,-1,-1
002_GFzI=0,0,0,0
002_GFxyI=0,0,0,0
003_GnbSlice=1
003_GFzVal=0.180000,0.600000,2.100000
003_GFxyVal=0.180000,0.600000,2.100000
003_DelayVal=0.080000,0.200000,0.500000
003_SurfPos=0.000000
003_AuxS=1
003_AuxC=0
003_Aux0=0
003_Aux1=0
003_GprofZ=0.000000,0.000000,0.000000,0.000000
003_Hcur=-1,-1,-1,-1
003_GFzI=0,0,0,0
003_GFxyI=0,0,0,0
004_GnbSlice=1
004_GFzVal=0.180000,0.600000,2.100000
004_GFxyVal=0.180000,0.600000,2.100000
004_DelayVal=0.080000,0.200000,0.500000
004_SurfPos=0.000000
004_AuxS=1
004_AuxC=0
004_Aux0=0
004_Aux1=0
004_GprofZ=0.000000,0.000000,0.000000,0.000000
004_Hcur=-1,-1,-1,-1
004_GFzI=0,0,0,0
004_GFxyI=0,0,0,0
005_GnbSlice=1
005_GFzVal=0.180000,0.600000,2.100000
005_GFxyVal=0.180000,0.600000,2.100000
005_DelayVal=0.080000,0.200000,0.500000
005_SurfPos=0.000000
005_AuxS=1
005_AuxC=0
005_Aux0=0
005_Aux1=0
005_GprofZ=0.000000,0.000000,0.000000,0.000000
005_Hcur=-1,-1,-1,-1
005_GFzI=0,0,0,0
005_GFxyI=0,0,0,0
006_GnbSlice=1
006_GFzVal=0.180000,0.600000,2.100000
006_GFxyVal=0.180000,0.600000,2.100000
006_DelayVal=0.080000,0.200000,0.500000
006_SurfPos=0.000000
006_AuxS=1
006_AuxC=0
006_Aux0=0
006_Aux1=0
006_GprofZ=0.000000,0.000000,0.000000,0.000000
006_Hcur=-1,-1,-1,-1
006_GFzI=0,0,0,0
006_GFxyI=0,0,0,0
007_GnbSlice=1
007_GFzVal=0.180000,0.600000,2.100000
007_GFxyVal=0.180000,0.600000,2.100000
007_DelayVal=0.080000,0.200000,0.500000
007_SurfPos=0.000000
007_AuxS=1
007_AuxC=0
007_Aux0=0
007_Aux1=0
007_GprofZ=0.000000,0.000000,0.000000,0.000000
007_Hcur=-1,-1,-1,-1
007_GFzI=0,0,0,0
007_GFxyI=0,0,0,0
008_GnbSlice=1
008_GFzVal=0.180000,0.600000,2.100000
008_GFxyVal=0.180000,0.600000,2.100000
008_DelayVal=0.080000,0.200000,0.500000
008_SurfPos=0.000000
008_AuxS=1
008_AuxC=0
008_Aux0=0
008_Aux1=0
008_GprofZ=0.000000,0.000000,0.000000,0.000000
008_Hcur=-1,-1,-1,-1
008_GFzI=0,0,0,0
008_GFxyI=0,0,0,0
009_GnbSlice=1
009_GFzVal=0.180000,0.600000,2.100000
009_GFxyVal=0.180000,0.600000,2.100000
009_DelayVal=0.080000,0.200000,0.500000
009_SurfPos=0.000000
009_AuxS=1
009_AuxC=0
009_Aux0=0
009_Aux1=0
009_GprofZ=0.000000,0.000000,0.000000,0.000000
009_Hcur=-1,-1,-1,-1
009_GFzI=0,0,0,0
009_GFxyI=0,0,0,0
GiiCylDcur=0.050000
GiiCylNo=0
Hset=0
Hcur=-1
Htab=0.000000,0.045000,0.080000
Sset=0
Mset3=0
Mset5=0
Tset=0
Mset6=0
Mset8=0
Mset9=0
Mset40=0
Mset41=0
Mset42=0
Mset43=0
Mset44=0
Mset45=0

Capt Crunch
02-28-2007, 03:03 PM
your post needs to have the ".pst" extension. a ".txt" extension will do nothing.

frad8
03-01-2007, 07:41 AM
is it possible to create it from the .txt file?
with a trial version of Type3 the .txt file is anought.

Mike Mattera
03-09-2007, 10:05 AM
The file you have is a post for another cam system. Did you try using the standard mastercam posts before deceiding to reinvent what everyone else has done?

Start with a Mastercam post that works and then make changes to that.

Otherwise Your really making more work for yourself.

Mike

Capt Crunch
03-09-2007, 10:08 AM
Hi Mike

i was not aware of that. just trying to help this fellow half way around the world.

Gerry

frad8
03-09-2007, 07:29 PM
maybe I'm not good enought with Mastercam (for sure), but these are the steps I've followed:

1-Machine def. manager
2-Router
3-Controle file: Generic Fanuc 3X Router.control
4-Post: Generic Fanuc 3X Router.pst
5-Machine configuration: Router X axis + Router Y axis + Router Z axis (on Router head group) since my table is fixed and the head of the spindle is the only parts that moves.

Control Def:
1-Existing Def: Router
2-Post pross: Generic Fanuc 3X Router.pst

And than I have a warning message:
"The machine doesn't have any valid axis combinations defined and can not be used in a tool path group"
I do not see what I can add in the machine definitions. I don't have any other parameters to introduce.



Following a beginning a code that works:
G0 G90 G54 X0. Y0.
G01 H1 Z30. M8
N3 X95.2 Y-6.48
N4 Z0.2
N5 G1 Z-4. F300
N6 X5.13 F600
N7 Y-7.98
N8 X95.2
N9 Y-9.48
N10 X5.13
N11 Y-10.98
N12 X95.2
N13 Y-12.48
N14 X5.13
N15 Y-13.98
N16 X95.2
N17 Y-15.48
N18 X5.13
...

Following a Code that doesn't:
N20G91G82X0Y0Z0
N30G40G17G80G49
N40T1M6
N50G90G54
N60G43Z0H1
N70G0X0.000Y0.000S15000M3
N80G0X0.001Y0.001Z0.001
N90G1Z0.000F3000.0
N100G1X0.101F4560.0
N110X99.999
N120Y0.100
N130Y2.382
N140X99.899
N150X0.001
...

Thanks