INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Automated equipment controlled by pascal program

Automated equipment controlled by pascal program

(OP)
Hello,
I work at a company that uses some testing equipment that is automated by a program written with turbo pascal.  I don't have very much programming experience, just a little.  This equipment has worked fine up until a few months back when it opened and gave an error a few seconds afterward: "Runtime error 207 at 2757:000C.rol".  I found that this indicates an "invalid floating point operation", but I'm not exactly sure what that means or what would cause that to occur so suddenly.  The location part confuses me also.  I was thinking that this problem might be because of a piece of equipment malfunctioning, but that has not been made clear.
Does anyone have any advise that may help me find the source of this problem?

RE: Automated equipment controlled by pascal program

Is the source code still available for this program?

A floating-point operation is a calculation using a floating-point variable.  Likely what is going on is that there is a division where the denominator is zero or very close to it.

Hope that helps, though that doesn't seem much.  You really need the source code available to know more.

RE: Automated equipment controlled by pascal program

Had anything changed about the equipment or how it was being used at the time the error first appeared?

RE: Automated equipment controlled by pascal program

(OP)
Yes, the source code is still available.  But the program has worked fine for years now.  That may help, but I don't know how I would find where that occurs.

Nothing obvious changed about the equipment.  My boss and his grandson went and turned it on and tried to use it the first time the error came up, but they said they didn't change anything, just simply turned it on.  

RE: Automated equipment controlled by pascal program

Quote:


Yes, the source code is still available.  But the program has worked fine for years now.  That may help, but I don't know how I would find where that occurs.

A program working fine for a period of time is no indication that the program is working at the current time.  

Case in point is the CRT RTE 200 error.  Programs worked fine for years based on certain assumptions made that worked for the time.  But when faster processors came along, the assumptions were invalid and the error occurred in these programs.

As for this program, you need the source to be able to debug what is going on and fix it if necessary.  As I remember you can take that address and run it through the compiler somehow.  But the more likely thing to do is put writes into the app (back up the original source of course) indicating different points in the logic to narrow down the statement that causes the Run time error.

Once you locate the offending statement in the source, you can make the decision from there as to what is required to remedy the situation.  For the situation you describe, it might pay, even if it is a once in a lifetime thing, to write some error-handling code to trap the error - if an expected input from the system is not there, come back with a "Unexpected input from machine, please call for service." message or some such thing.

RE: Automated equipment controlled by pascal program

Where are you located?  I'm asking because I've written such a program and I just might be the author of this program.

Actor

RE: Automated equipment controlled by pascal program

(OP)
I'm located in Carson City, NV.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close