Jump to content

Welcome to eMastercam

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:

pop up question window


Recommended Posts

Hi,

Anybody knows how to write codes when I click "G1" and there is a windows asks me like "What is the customer name?" so I fill in, then the "name" I filled in that window will be in the G-code?

 

 

 

 

Please Help, so far I got this but it only allow me entering numbers not text.

 

Under Toolchange / NC output Variable Formats

fmt 15 pth_thr

fmt 15 pth_tht

spth_thr ""

fq 1 pth_cs Enter the coordinate system (G54 -> G59):

fq 2 sname Enter Name:

fq 3 spartnumber Enter partnumber:

 

under # General G and M Code String select tables

fmt "" 2 pth_tool_loop

fmt "G" 4 pth_cs

 

 

# --------------------------------------------------------------------------

# Start of File and Toolchange Setup

# --------------------------------------------------------------------------

psof0 #Start of file for tool zero

psof

psof #Start of file for non-zero tool number

pth_cs=54

q1

if pth_cs<54 | pth_cs>59,psof

 

q2

# pinit

progno

n,"( My name :",sname,")",e

q3

# pinit

progno

n,"( Part number :",spartnumber,")",e

pcuttype

 

Tips are apprciated and thankful

Link to comment
Share on other sites

We have a reseller but they don't cover the post problem. They only can help the software interface issue but not about G-code. I don't want to be mean but why I'm the only that not allow to ask questions in here whereas other people ask thousand of questions without trouble like me? Do I have to register as another way to ask questions? I just wonder if my account type differents than others?

 

 

 

Best regards

Link to comment
Share on other sites

With all respect, there are a lot of illegal copies of software out there. The mods know that and view new members with a lot of questions with a jaundiced eye. The easiest way for you to win their trust is to simply go to your profile and enter your SIM number in the optional space provided. Only the moderators will be able to see it, and it will prove to them that you are on the level. When their suspicion of your questions goes away, the rank and file users will notice that and be more than willing to help a fellow user out. I personally will not offer assistance to someone that has pirated software.

 

You have nothing to lose, and a lot of help to gain by winning the mods over.

 

HTH

Link to comment
Share on other sites

I think I got the solutions. Here are the codes that I wrote, I hope I can share with someone who wants the promt question before posting G-Codes. I'm working a company which has ISO9001 that's why clear paperwork is always a must.

 

Step 1: Go go # Question format statements and add these 4 statements

fq 3 sindividualoperation What Operation Are You Posting Now?

fq 4 stotaloperation How Many Operation Does This Program Have?

fq 5 sname What Is Your Customer Name?

fq 6 sprogrammer Who Wrote This Program?

 

Step 2: # Misc strings add these lines

sindividualoperation ""

stotaloperation ""

sname ""

sprogrammer ""

 

Step 3: Go to pheader$ #Call before start of file and add these lines

pheader$ #Call before start of file

hour = int(time$)

min = int((time$ - hour)* 100)

if hour > 12, hour = hour - 12

if hour = 0, hour = 12

year$ = year$ + 2000

"%", e$

spaces$=0

*progno$, " ", scomm_str, snamenc$, sextnc$, scomm_end, e$

q3

"(Operation # ", sindividualoperation,"",

 

q4

" Of ", stotaloperation,")", e$

 

"(Customer Name: "

q5

"", sname,")", e$

 

q6

"(Approved By: ", sprogrammer,")", e$

"(Machine Name: Haas)", e$

########## Posted Date & Time ##########

scomm_str, *smonth, ".", *day$, ".", *year$ # MON-DD-YYYY

"**At-", *hour, ":", *min, [if time$ < 12, " AM"], [if time$ >= 12, " PM"], scomm_end, e$ # 12 hour

*e$

"(****** Setup Instructions - SI ******)", e$

#scomm_str, sprogname$, scomm_end, e$

spathnc$ = ucase(spathnc$)

smcname$ = ucase(smcname$)

comment$ # File descriptor

spaces$=0

#scomm_str, "PROGRAM NAME - ", sprogname, scomm_end, e

#scomm_str, "DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, scomm_end, e

#scomm_str, "MASTERCAM - V", *vers_no$, scomm_end, e$

# scomm_str, "MASTERCAM - X", scomm_end, e$

if spostname_sav = snull, spostname_sav = spostname

# scomm_str, "POST - ", snamepst$, scomm_end, e$

#scomm_str, "MP - V", *dll_vers$, scomm_end, e$

stck_matl$ = ucase(stck_matl$)

# scomm_str, "MATERIAL - ", stck_matl$, scomm_end, e$

#scomm_str, "PROGRAM - ", sprogname$, sextnc$, scomm_end, e$

#scomm_str, "DATE - ", *year$, "/", *month$, "/", *day$, scomm_end, e$ # YYYY/MN/DD

#scomm_str, "DATE - ", *day$, "/", *month$, "/", *year$, scomm_end, e$ # DD/MN/YYYY

#scomm_str, "DATE - ", date$, scomm_end, e$ # DD-MM-YR

#scomm_str, "TIME - ", time$, scomm_end, e$ # 24 hour

#scomm_str, "POST DEV - ", *slicense, scomm_end, e$

#spathnc$ + snamenc$ + sextnc$, e$

*e$

"(******** Tool List Info - TL ********)", e$

 

 

Wa...la... you're done. When you're posting G-Code there is a windows will ask you like this

 

What Operation Are You Posting Now?

You can enter what your current operation that you want to post "1"

 

How many Operation Does This Program Have?

You can put as many as you want depend on how many ops you have in your program "2"

 

What Is Your Customer Name?

This is easy to figure out "Novellus Systems"

 

Who Wrote This Program?

Enter a programmer name or you "Steven Luong"

 

 

Then the G-code output will be like this

*************************

 

%

O0001 (NOVELLUS 258147-15-00 REV.NC)

(Operation # 1 Of 2)

(Customer Name: Novellus Systems)

(Approved By: Steven Luong)

(Machine Name: Haas)

(AUG.30.2012**At-4:11 PM)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

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.

Follow us

×
×
  • Create New...