Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
wayne(R)

E-mail

Central Ohio,
07.03.2014, 17:22
 

New to forum, new to DOS, kinda (Announce)

Well, I'm kinda disgusted. I just spent about 15 minutes typing an introduction, and a question or two. Hit "preview". Got a prompt that I wasn't logged in. And the post is gone.

Bummer.

Well, unfortunately, I'm not going through it all again. CRAP!

So . . . more in in brief this time . . . I'm new to the forum. Been programming since 1968. But haven't worked with DOS since the 80's

We just "inherited" 5 machines that run using CMES, DOS programs. We're taking over a facility that was just phased out. So we'll continue running their programs, on their (now our) machines, checking the parts they used to make.

We own 11 of these machines. Will upgrade the 5 old ones over time. ($20 grand a pop!) And will re-write new programs to run on our machines as well.
But that's going to be "as time permits".

For the existing 100 or so programs to work for us, I need to do just a little editing. Tweaking. And for the most part, it's a snap.

But I also need to add some functionality that's beyond my present ability.

I've done numerous Web searches. Found related "how to" sites. Related how to examples. But not quite what I need to do.

OK, here it comes, right. Am I gonna ask you all how to do it?

Not at all. What I've been searching for is what you could call a . . . DOS manual. Or a "How to program in DOS 101".

Here's the ting . . . I'm not trying to make a career change here. But I'll do what I gotta do to get the job done. I don't want to spend 20 or 30 hours, doing Web searches, reading books, etc. just to make a few changes in these programs and put the issue to bed. (Same edit in all programs. Most likely editing one line of code.)

So what I'm asking you is . . . Do you know a good source I can turn to so I can do my homework? Find out how to write the code I need. And Git'r Done!?!

NOTE: I spent several hours (seriously, hours) searching the Web. Unfortunately, our company server is quick to block unknown URLs.

So far I found LOTS of how to sites. Nothing that explained what I need.

(INSIGHT) These are coordinate measuring machines. They measure "parts". Create an .rpt file, using the input serial number as the file name. Save file to a folder.

ISSUE: If you re-run a part, maybe after reworking/fixing the part, the old rpt file is over written.

We need to keep all data. Should be easy enough. I figure, add a timestamp to the serial number/file name.

This is all temporary. The new programs (in newer software) will pull the data into a data base. Our data base. But for a short time (4 to 6 months)
we need to use their methodology so they can also retrieve the data as well.

AND WHAT A PAIN! For years these guys have been doing this. When they finish running parts, they have to open each .rpt file and bring it into Excel!!!!

UGGHHHH!

So, where I need pointing, specifically, would be . . .

A source that would include the "how and why" of using a time stamp. How to get it converted to a numeric value. I'll set the value as a variable and append it to the serial number. That part's easy.

Also, just in case anyone here has had such an issue in the past . . . I'm open to suggestion as to how I can pull a bunch of rpt files into Excel in
a usable format. Or . . . maybe a better way to save the measured values so they're more accessible.

Ideas and comments welcome! Wayne

PS: Before posting, I read the articles here about what I should and shouldn't do in a post. I intentionally did not include any code (the code I need to change) because I'm not asking you to edit it for me.

Also, to show you I did in fact read the articles, I'll end this post as follows . . .

Thank you in advance for any pointers, for your time, and consideration. I'll also thank you (again) in another post when I get a resolve.

: )

---
If it ain't broke, stop tryin' ta fix it!

tom(R)

Homepage

Germany,
07.03.2014, 22:11

@ wayne

New to forum, new to DOS, kinda

what exactly is your question?

what's the language and compiler for these programs?

wayne(R)

E-mail

Central Ohio,
07.03.2014, 22:31

@ tom

New to forum, new to DOS, kinda

> what exactly is your question?

As posted (word for word) . . .
What I've been searching for is what you could call a DOS manual. Or a "How to program in DOS 101?. A source that would include the "how and why" of using a time stamp. How to get it converted to a numeric value.

> what's the language and compiler for these programs?

CMES For Windows, 32 bit. That's all I know.
http://www.nikonmetrology.com/Products/Coordinate-Measuring-Machines

Here's another option. I don't know what compiler is used, etc. So here's the code I need changed. Maybe you can tell me the language and compiler.

The following code is near the end of the program. In a nutshell, the serial number is input at the beginning of the program run. We add a "C" to the input. So all serial numbers/file names start with "C". And I want to append time stamp data (or some kind of unique value) to the end of the file name. So each time I run the same serial number, the saved file name is different.

PA,1,MOVE.PRG,NEW
OP,'^Z'
! OP,'PRI C',(SN),'.RPT >NUL'
OP,(T),'COPY C',(SN),'.RPT C:\PARSE >NUL',(T)
OP,(T),'COPY C',(SN),'.RPT Q:\CMM_DATA\',(F),'\PWAFILES\',(WAXDIE),' >NUL',(T)
OP,(T),'COPY C',(SN),'.RPT Q:\CMM_DATA\',(F),'\GPFILES >NUL',(T)
OP,'DEL C',(SN),'.RPT >NUL'
OP,'^Z'
OP,'ET,CL'
EP,1
TI,MOVE.PRG

---
If it ain't broke, stop tryin' ta fix it!

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
07.03.2014, 23:53

@ wayne

New to forum, new to DOS, kinda

Hi Wayne,

Welcome to "DOS Ain't Dead".

I'm sorry to say that nothing in your snippet of code looks familiar
to me as being from any programming language I have seen before.

Perhaps someone else here might recognize it.

> > what exactly is your question?
>
> As posted (word for word) . . .
> What I've been searching for is what you could call a DOS manual. Or a "How
> to program in DOS 101". A source that would include the "how and why" of
> using a time stamp. How to get it converted to a numeric value.
>
> > what's the language and compiler for these programs?
>
> CMES For Windows, 32 bit. That's all I know.
> http://www.nikonmetrology.com/Products/Coordinate-Measuring-Machines
>
> Here's another option. I don't know what compiler is used, etc. So here's
> the code I need changed. Maybe you can tell me the language and compiler.
>
> The following code is near the end of the program. In a nutshell, the
> serial number is input at the beginning of the program run. We add a "C"
> to the input. So all serial numbers/file names start with "C". And I want
> to append time stamp data (or some kind of unique value) to the end of the
> file name. So each time I run the same serial number, the saved file name
> is different.
>
> PA,1,MOVE.PRG,NEW
> OP,'^Z'
> ! OP,'PRI C',(SN),'.RPT >NUL'
> OP,(T),'COPY C',(SN),'.RPT C:\PARSE >NUL',(T)
> OP,(T),'COPY C',(SN),'.RPT Q:\CMM_DATA\',(F),'\PWAFILES\',(WAXDIE),'
> >NUL',(T)
> OP,(T),'COPY C',(SN),'.RPT Q:\CMM_DATA\',(F),'\GPFILES >NUL',(T)
> OP,'DEL C',(SN),'.RPT >NUL'
> OP,'^Z'
> OP,'ET,CL'
> EP,1
> TI,MOVE.PRG

______________

---
--
http://glennmcc.org/

bretjohn(R)

Homepage E-mail

Rio Rancho, NM,
08.03.2014, 01:20

@ glennmcc

New to forum, new to DOS, kinda

I don't recognize the language, either. You say you know it's CMES for Windows (which I've never heard of before), I would try to find a compiler before I went much further. Even if you modified the source code, it doesn't do any good if you can't compile it.

You could use some DOS utilities and batch files and "tricks" to modify the files after they've been created (such as adding the data and time to the beginning or end of the file, renaming the file, copying/moving the file to a different directory, etc.). Anything much more complicated than that and you're probably way better off modifying the source code (assuming you can find the compiler).

Also keep in mind the 8.3 file name limitation, which may or may not be a problem in your particular situation (there can be ways around that, even in DOS). You're going to have a hard time fitting a serial number and a date and a time all into 8 characters.

Rugxulo(R)

Homepage

Usono,
08.03.2014, 02:11

@ wayne

New to forum, new to DOS, kinda

> > what exactly is your question?
>
> As posted (word for word) . . .
> What I've been searching for is what you could call a DOS manual. Or a "How
> to program in DOS 101?. A source that would include the "how and why" of
> using a time stamp. How to get it converted to a numeric value.

Which timestamp? I assume you mean mtime (modified) and not ctime (created) or atime (access)? (The latter are probably Win95/LFN/FAT32 only.) And presumably all of these are "local" (non-UTC) time only.

(RBIL)
* GET/SET FILE'S LAST-WRITTEN DATE AND TIME
* INT 21 - Windows95 - LONG FILENAME - EXTENDED GET/SET FILE ATTRIBUTES

(DJGPP libc.info, funcs sometimes supported in other C compilers too)
* getftime
* setftime

* sys/stat
* mktime
* utime

> > what's the language and compiler for these programs?
>
> CMES For Windows, 32 bit. That's all I know.
> http://www.nikonmetrology.com/Products/Coordinate-Measuring-Machines

Never heard of it. Unlikely that anyone here has either. But "Windows"?? Is this cross-compiled? Is it really DOS (MZ) .EXE or truly something else (PE)? Is the binary running atop raw DOS (which? MS-DOS 7.1?) or Win95 or WinXP or ...?

mbbrutman(R)

Homepage

Washington, USA,
08.03.2014, 06:08

@ wayne

New to forum, new to DOS, kinda

It looks like you have a very specialized piece of machinery. It's not really DOS skills you are looking for. You need to find somebody who has used that setup and knows how to work with it.

Nikon Metrology built their software/system on top of machines running DOS. It is way too specialized to just find somebody off the street to modify.

---
mTCP - TCP/IP apps for vintage DOS machines!
http://www.brutman.com/mTCP

DOS386(R)

08.03.2014, 18:37

@ wayne

New to forum, new to DOS, kinda

> So . . . more in in brief this time . . . I'm new to the forum. Been
> programming since 1968. But haven't worked with DOS since the 80's

Welcome :-)

Places worth to check out besides bttr-software.de : freedos.org drdos.org

(I don't understand your question, sorry)

---
This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***

wayne(R)

E-mail

Central Ohio,
10.03.2014, 14:51

@ bretjohn

New to forum, new to DOS, kinda

RE: I would try to find a compiler before I went much further.

The machines are set up as they were at the other facility with
the same PC. All software, editing capability, etc. this there.

Thanks all for your comments. I was able to (finally) get a
response from the manufacturer.

---
If it ain't broke, stop tryin' ta fix it!

glennmcc(R)

Homepage E-mail

North Jackson, Ohio (USA),
10.03.2014, 23:58

@ wayne

New to forum, new to DOS, kinda

> RE: I would try to find a compiler before I went much further.
>
> The machines are set up as they were at the other facility with
> the same PC. All software, editing capability, etc. this there.
>
> Thanks all for your comments. I was able to (finally) get a
> response from the manufacturer.

Glad to hear that you got the reply from the MFG

But, don't keep us all hanging.

What language & compiler is that for ??? ;-)

---
--
http://glennmcc.org/

Oso2k(R)

24.03.2014, 19:35

@ glennmcc

New to forum, new to DOS, kinda

I'd contact David Dunfield. He's an DOS embedded systems specialist and I believe he's also worked on CAD software.

Back to the board
Thread view  Mix view  Order
15115 Postings in 1359 Threads, 249 registered users, 21 users online (1 registered, 20 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum