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 output in X


kkominiarek
 Share

Recommended Posts

code:

" ", e$

q3 # ask question

"(PROGRAMMER -",sprogrammer,")", e$

# This generates a comment block like -> ( CREATED ON - 06-17-03 AT 8:15 AM )

!spaces$ # Save current 'spaces' setting

spaces$ = zero # Turn OFF any extra spacing

"(CREATED ON - ",month$ ,45,day$ ,45,year$ ,")", e$ # WAS "(CREATED ON - ",*month,"-",*day,"-",*year, " )", e

spaces$ = prv_spaces$ # Restore previous 'spaces' setting

 

" ", e$


The above lines should output this......

(Created on - 10-11-05)

 

it outputs this......

(Created on - --05)

 

It outputs correctly in V9.1.

It outputs incorrectly in X.....any ideas why?

Link to comment
Share on other sites

.

.

Try checking the location of your spaces before and after the commas, and try inserting the * sign before the month, day, and year commands.

 

"(CREATED ON - ", *month$, 45, *day$, 45, *year$, ")", e$

 

I use MpMaster. It's a little different but it is stated like this.

 

n$, "(DATE - ", *smonth, "-", day$ , "-", year$ , ")", e$

 

Hope this helps you

.

.

Link to comment
Share on other sites

This is what I want......

(Created on - 10-11-05)

 

it outputs this......

(Created on - --05)

 

below is 4 lines of code that I edited.....none worked headscratch.gif

 

code:

       #"(CREATED ON - ",month$ ,45,day$ ,45,year$ ,")", e$ #was "(CREATED ON - ",*month,"-",*day,"-",*year, " )", e    

#n$, "(CREATED ON - ", *smonth, "-", day$, "-", year$, ")", e$

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

"(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e

any other suggestions??

Link to comment
Share on other sites

Either place an asterisk before month$ and day$ or remove any formatting of the month$ and day$ variables (look for lines that start with fmt).

 

These variables may be used as numeric variables or command variables. If the variable has no format assignment, it is used as a command variable. If it has a format assignment, it is used as a numeric value.

 

It appears to me that the unformatted output is exactly what you are looking for.

 

[ 10-12-2005, 09:36 AM: Message edited by: Paul Decelles from CNC Software ]

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