VBS program to extract g-code from Mori VPS files


Results 1 to 1 of 1

Thread: VBS program to extract g-code from Mori VPS files

  1. #1
    Member
    Join Date
    Feb 2006
    Location
    United States
    Posts
    334
    Downloads
    0
    Uploads
    0

    Default VBS program to extract g-code from Mori VPS files

    We just got a NLX2500 with the CELOS control on it and it saves programs in .VPS files. It can also save them as .ND (g-code) but you have to re-import them the next time you want to run it. You also can't read .VPS files offline.

    I wrote this visualbasic script to extract the g-code back out of VPS files offline. It was also the staring point to making VPS files offline as well as eventually building .CBA "job files" that the control uses.

    It takes 2 command line argument

    wscript.exe "Extract code form VPS.vbs" "source.VPS" -Quiet
    Output will be a .ND file if the same name and in the same directory as the source file.

    One word of caution. vbs does not handle large files well so processing files over 100k will quickly start taking more and more time to execute. At 200-300k it will probably be over a minute 500k 5-10 minutes.
    Using DLL libraries instead of the included vbs Base64Decode() function would eliminate that though.

    Similar Threads:
    Attached Files Attached Files


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

VBS program to extract g-code from Mori VPS files

VBS program to extract g-code from Mori VPS files

VBS program to extract g-code from Mori VPS files