开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: MODIO


 

开云体育

Hi Andy,

I can certainly move it to C:\.? I think that's where it is on my WIN-XP ?MACH3 JGRO CNC router which uses the PMDX-125 and a USB Smooth Stepper. ?

?

Just even setting the advanced properties to the shortcut on the desktop puts me back to the files in the expected place.?? The strange thing is my laptop and my workstation, neither of which are actually CNC PCs have a copy of MACH3 that don't exhibit this issue and are in C:\Program Files (86).

?

So I guess there must be some flag or parameter set on my older WIN-7 systems that never installed the previous stupid Vista crap that hides things.

?

The little bit I've played with WIN-10 showed a new issue with programs installed in the C:\program files (86) folders. ?At that company security is really strict and you can't even run administrator unless you have a special dongle for a USB port.? ?Programs like MPLAB-X would by default install into the C:\Program Files (86) folder but ran into problems because they'd try and store data in that same path.

?

So running it with the administrator solved it until it came time to compile a dsPIC30 program.? The MPLAB-X running in administrator mode would launch the XC-16 compiler which would then silently just stop. ?No errors.

?

Turns out a program running in administrator mode can't start another program in administrator mode and the XC-16 compiler also wanted to do something in that folder.

?

Moving MPLAB-X and the XC-16 compiler out of the program files to the C:\ root folder under C:\Microchip solved the problem. Don't even have to run as administrator.? Until you want to use the ICD-4 for in circuit debugging.? Then the administrator dongle was needed again.? All that security to prevent problems.

?

Just wish I knew why I can run MACH3 on my desktop and it can edit and save the files in the C:\Program Files (86) folder. ?Which I realize is nowadays probably a bad idea anyway.

?

In either case, once I straightened that out, the MODIO is working with the standard INPUTx and OUPUTx signals.? Now to find that 4x20 LCD display…

?

Thanks

John

?

?

From: MachCNC@groups.io [mailto:MachCNC@groups.io] On Behalf Of Andy Wander
Sent: January-18-20 6:34 PM
To: MachCNC@groups.io
Subject: Re: [MachCNC] MODIO

?

Unless something has changed since I used it, the standard Mach3 installation would put the Mach3 folder right under the root, C:\Mach3.

?

If it were me, I’d re-install Mach3 using all of the defaults.

?

Then copy in your backed-up Mach3 folder and subfolders, and see if things are any better.

?

From: MachCNC@groups.io <MachCNC@groups.io> On Behalf Of John Dammeyer
Sent: Saturday, January 18, 2020 8:37 PM
To: MachCNC@groups.io
Subject: Re: [MachCNC] MODIO

?

I've been able to move a bit further but I'm having a MACH3/WIN-7 issue too.? I was editing files like the macropump.m1s and not seeing anything happen on the test system.? After a bit of research and searching all of drive C I found this one in what appears to be a user specific location.? This is what I created and edited with the VB Script Editor.

?

' C:\Users\john\AppData\Local\VirtualStore\Program Files (x86)\MACH3\macros\Mach3Mill

' Show the user the state of the INPUT #2 input

If IsActive(INPUT2) Then

?????? ActivateSignal(OUTPUT6)

?????? Message( "OUTPUT6 is ON" )

Else

?????? DeactivateSignal(OUTPUT6)

?????? Message( "OUTPUT6 is OFF" )???

End If

?

Except that if I look in? C:\Program Files (x86)\MACH3\macros\Mach3Mill the file doesn't exist

?

Once I created the proper macropump.m1s file in that c:\Users\john\Appdata\…\Mach3Mill folder my MODIO code worked.? Which I expected because the task isn't exactly rocket science.? Close the switch on the MODIO INPUT2 pin and the OUTPUT6 LED starts blinking.? Release the switch and it stops.? Plus I get the two messages when I do that.? As expected.

?

In MACH3 when I select menu entry:

Operator | VB Script Editor

And then in the VB Script Window select

File | Open File …

?

The path is shown as:

C:\Program Files (x86)\MACH3\macros\Mach3Mill

And I can load my macropump.m1s and see the above source code.

?

But if I use file explorer and go to that same folder the macropump.m1s file isn't there.

?

So WIN-7 is doing something and MACH3 is going along with it since it doesn't know that the actual data is being put somewhere else.

?

And if I run MACH3 as administrator now I'm taken to the drive location that doesn't have the macropump.m1s

?

I suspect I have to do something with WIN-7 to stop this.? The ID I sign in with already has administrator privileges.? I thought it might be something with User Access Control but I'm not sure.

?

Any suggestions?

?

Thanks

John

?

?

?

?

?

?

?

?

Join MachCNC@groups.io to automatically receive all group messages.