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:

Date & Time Format


Dave Ball
 Share

Recommended Posts

the generic fanuc post has multiple setups for date/time.

 

code:

pheader$         #Call before start of file                         

"%", e$

sav_spc = spaces$

spaces$ = 0

*progno$, sopen_prn, sprogname$, sclose_prn, e$

#sopen_prn, "PROGRAM NAME - ", sprogname$, sclose_prn, e$

sopen_prn, "DATE=DD-MM-YY - ", date$, " TIME=HH:MM - ", time$, sclose_prn, e$ #Date and time output Ex. 12-02-05 15:52

#sopen_prn, "DATE - ", month$, "-", day$, "-", year$, sclose_prn, e$ #Date output as month,day,year - Ex. 02-12-05

#sopen_prn, "DATE - ", *smonth, " ", day$, " ", *year2, sclose_prn, e$ #Date output as month,day,year - Ex. Feb. 12 2005

#sopen_prn, "TIME - ", time$, sclose_prn, e$ #24 hour time output - Ex. 15:52

#sopen_prn, "TIME - ", ptime sclose_prn, e$ #12 hour time output 3:52 PM

you would comment out the current one, put a # sign in front of it, and remove the # sign from the one you want. You will also need to format the variables to get it to come out like you want. I usually use;

code:

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

fmt 4 month$

fmt 4 day$

fmt 5 year$

fmt 4 year2 #Calculated year value

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...