Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.
Use your display name or email address to sign in:
YES it work. I happy :-)
This is exempel how I work
*Open a 3D modell.
*save it with drawing number and description MCX
*Prepare it for toolpath
*create toolpath and got question to choose a NC name.
*Run postprocessor and it save the file automatic on the network with same NC file name and programe name
This is my pheader$
code:
pheader$ # File header
#"Program Name - ", progname
#"Program Time - ", time
#"Program Date - ", date,"(Day:Month:Year)"
"0", "BEGIN PGM ",progno$,"MM",e$
When i change program number in toolpath it work correct. But i whant the posts to change to right program number, same as the name of nc file
I use X3 and mpheid5 posts mill.
A set the NC file name to a number and I want it to change the program number in NC file as same.
I cant find any answer for this in forum or helpfile.
This is the FS statement in my posts
code:
# --------------------------------------------------------------------------
# Format Statements - i=incr, n=nonmodal, l=leave ldg, t=leave trlg, d=delta
# --------------------------------------------------------------------------
fs 1 +1.3lt
fs 2 +1.3ltn
fs 3 3 0
fs 4 2 0n
fs 5 4 0
fs 6 2 0ln
fs 7 3 0n
fs 8 4 0n
fs 9 3.3t
fs 10 1.3ltn
fs 11 +1.3ltn
#CNC<<FAIL>>fs 12 4 n
#CNC<<MSG-ERROR(101)>> The format statement processing has failed!, Inch trailing digit missing or out of range (0 to 9)
FMT statemant
code:
# --------------------------------------------------------------------------
# Program & Sequence number format
# --------------------------------------------------------------------------
fmt 8 progno$ # Program number
fmt N 7 seqno$ # Starting Sequence No.
fmt N 7 seqinc$ # Sequence No.Increment
fmt 12 n$ # Main Program Seq No's
#CNC<<MSG-ERROR(164)>> The format statement number is not defined (default to 1)
I think is antoher error?
What should I change?
No error in error log you can see.
But it change
" Post variable 'omitseq$' was re-initialized from 1. to 0."
I Test to change it to yes but whit no god results.
I find
code:
#CNC<<MSG-ERROR(164)>>
in posts. Here is one of them from posts.
code:
# Program & Sequence number format
# --------------------------------------------------------------------------
fmt 8 progno$ # Program number
fmt N 7 seqno$ # Starting Sequence No.
fmt N 7 seqinc$ # Sequence No.Increment
fmt 12 n$ # Main Program Seq No's
#CNC<<MSG-ERROR(164)>> The format statement number is not defined (default to 1)
thx for help :-)
17 Apr 2009 11:43:20 AM - <0> - Report created.
17 Apr 2009 11:43:20 AM - <2> - Initialize posting log file
17 Apr 2009 11:43:20 AM - <2> - Using MP run version 11.00 and post components version 10.00
17 Apr 2009 11:43:20 AM - <2> - Initiate opening the post processor file(s).
17 Apr 2009 11:43:20 AM - <2> - Post processor file name: D:MCAMXMILLPOSTSMPFAN.PST
17 Apr 2009 11:43:20 AM - <2> - The post processor file has been successfully opened.
17 Apr 2009 11:43:20 AM - <2> - Post version information (input):
17 Apr 2009 11:43:20 AM - <2> - UPDATEPOST Version 11. was used to modify this file.
17 Apr 2009 11:43:20 AM - <2> - The file was modified by this product on 13 Jul 05 15:05:27
17 Apr 2009 11:43:20 AM - <2> - The post was written to run with Mastercam Version 11.
17 Apr 2009 11:43:20 AM - <2> - The post product type is Mill.
17 Apr 2009 11:43:20 AM - <2> - Initialization of pre-defined post variables, strings, postblocks was successful.
17 Apr 2009 11:43:20 AM - <2> - Search for defined post variables, strings, postblocks was successful.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'err_file$' was re-initialized from 0. to 1.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'dec_seq_right$' was re-initialized from 3. to 0.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'omitseq$' was re-initialized from 1. to 0.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'sub_seq_typ$' was re-initialized from 0. to 1.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'tplanemode$' was re-initialized from 2. to 0.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'arctype$' was re-initialized from 2. to 5.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'arctypexz$' was re-initialized from 2. to 5.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'arctypeyz$' was re-initialized from 2. to 5.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'larctype$' was re-initialized from 2. to 5.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'larctypexz$' was re-initialized from 2. to 5.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'larctypeyz$' was re-initialized from 2. to 5.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'arccheck$' was re-initialized from 1. to 111.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'larccheck$' was re-initialized from 1. to 111.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'rotfeed4$' was re-initialized from 2. to 1.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'rotfeed5$' was re-initialized from 3. to 1.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'lrotfeed4$' was re-initialized from 2. to 1.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'lrotfeed5$' was re-initialized from 0. to 1.
17 Apr 2009 11:43:21 AM - <2> - CONTROL DEFINITION - - Post variable 'peckacel$' was re-initialized from 0. to 1.
17 Apr 2009 11:43:21 AM - <2> - Successful completion of posting process!
I use X3 and mpheid5 posts mill.
My machine whant block number without N and no decimal.
When I set the box "output sequence number" in CD I got block number like this
0 BEGIN PGM 51 MM
+1.000 TOOL DEF 1 L+0.000 R+25.000
+2.000 TOOL CALL 1 Z S500.000
+3.000 L X-40.500 Y+77.000 R F1000 M
+4.000 L Z+25.000 R0 F1000 M03
+5.000 L Z+17.000 R F600 M
+6.000 L Y+52.000 R0 F300 M
+7.000 CC X-13.500 Y+52.000
+8.000 C X-13.500 Y+25.000 DR+ R F M
+9.000 L X+13.500 R F M
+10.000 CC X+13.500 Y+0.000
The correct results is
0 BEGIN PGM 51 MM
1 TOOL DEF 1 L+0.000 R+25.000
2 TOOL CALL 1 Z S500.000
3 L X-40.500 Y+77.000 R F1000 M
4 L Z+25.000 R0 F1000 M03
5 L Z+17.000 R F600 M
6 L Y+52.000 R0 F300 M
7 CC X-13.500 Y+52.000
8 C X-13.500 Y+25.000 DR+ R F M
9 L X+13.500 R F M
10 CC X+13.500 Y+0.000
Have you ansver?
Before i use MC9 it works fine.
My english is bad sorry
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.