Translation of code using Visual Basic 6

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2006
Posts: 4
Reputation: isocam is an unknown quantity at this point 
Solved Threads: 0
isocam isocam is offline Offline
Newbie Poster

Translation of code using Visual Basic 6

 
0
  #1
Dec 8th, 2006
Can anybody help?

I have modified an original Visual Basic project to convert from set of binary code into a readable format. I am unsure of the actual type of code that the data file ("Mazatrol.dat") contains.

I need to be able to convert it into a language, from binary, that I will be able to understand. I do know that it is a binary version of a CNC program for controlling a machine tool.

If anybody can help modify the code, in the attached file ("Binary.zip")
I would be very grateful.

Kind Regards

Darren Smith
Attached Files
File Type: zip Binary Files.zip (8.6 KB, 9 views)
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,117
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 282
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: Translation of code using Visual Basic 6

 
0
  #2
Dec 8th, 2006
You need to know what the format of the data file is (.dat is for data file, I assume saying it's a program is just to throw us off )

IOW, you need to know how each byte is defined, whether it's a byte, word, long, character, float, etc, in order to translate it. This is defined in a specification somewhere, based on the program that wrote the file.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,500
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1479
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Translation of code using Visual Basic 6

 
0
  #3
Dec 8th, 2006
Mazatrol.dat is not a binary file but a text file that contains probably some bitmapped representation of the data that needs to be sent to the machine tool. In order for Mazatrol.dat to be useful to you, you will have to find out what all those numbers mean, one way to find out is to read the machine's programmers' manual and find out how it is controlled. But that may be the manufacturer's prepritory (secret) information.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 51
Reputation: tom curren is an unknown quantity at this point 
Solved Threads: 3
tom curren's Avatar
tom curren tom curren is offline Offline
Unverified User

Re: Translation of code using Visual Basic 6

 
0
  #4
Jan 12th, 2008
That was too easy !!!!

I googled CMT numeric control data file and found the source of that file:

http://www.sub-soft.com/dncplus.htm

tc
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC