Hello Guest it is April 16, 2024, 12:51:47 AM

Author Topic: Loading and Saving Work offsets Directly from VBScript  (Read 1942 times)

0 Members and 1 Guest are viewing this topic.

Loading and Saving Work offsets Directly from VBScript
« on: May 10, 2017, 02:06:13 PM »
I am writing a VB Script and I want to Load and Save Work offsets Directly... Without having to pop up the Mach Dialog
Is this possible? What file / registry location / ??? is this information stored.

I browsed around but could find a relevant previous post.

Velox 4 Axis Router, Mach3, Windows 7 32 bit
Modified to also be a Plasma / Engraver
with a Dual Chamber Water Table

Some of my work
https://mygarageshop.com/

ScreenSet: SmartScreens for Mach3
https://ngeneyes.com/smartscreen/licensing/

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: Loading and Saving Work offsets Directly from VBScript
« Reply #1 on: May 11, 2017, 07:44:18 AM »
Attached pic is what I use for my lathe screen and serves me well.

Buttons allow for Work Offset selection and current fixture values are
shown for the selected offset.

- Created a label, the value is   COSYS  to show current work offset
- Added a button to  Open / Change Fixturing
  OEM-Code 122
-Added DRO’s for input of the offset values
  Standard Code 30
-Added buttons to be able to set / select what offset I want to use at any time
  Standard Code 33

How it works:
Select the offset you want to use / change by clicking one of the offset buttons
 ( never needed more than six offsets). You input  offset values in the DRO,s 
and they are changed/added to the table, then click the Open /Change Fixturing button
and the table will open and you save the table. Note that you must open and save the
table when the table is open, that’s just the way it is.. When you click one of the
offset buttons, that offset it becomes the current work offset, is shown on the
screen label and the values of the table are shown.
 
In use:
G54 is the default offset when Mach3 opens. So say I machine a part with gcode and
want to duplicate the  piece, I just click the offset desired and rerun the same code.

Must add that it all depends on what you want to do and how you want to work.

RICH
Re: Loading and Saving Work offsets Directly from VBScript
« Reply #2 on: May 11, 2017, 12:12:09 PM »
Thank You,

There is no way to bypass the OPEN then SAVE?
I want to find where this information is stored by Mach and read and write is directly.
Velox 4 Axis Router, Mach3, Windows 7 32 bit
Modified to also be a Plasma / Engraver
with a Dual Chamber Water Table

Some of my work
https://mygarageshop.com/

ScreenSet: SmartScreens for Mach3
https://ngeneyes.com/smartscreen/licensing/

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: Loading and Saving Work offsets Directly from VBScript
« Reply #3 on: May 11, 2017, 03:47:03 PM »
Quote
There is no way to bypass the OPEN then SAVE?


If memory serves me well, I believe that is correct and that is why I have  the button.
To lazy to go find my notes........ ;)

RICH