Hello Guest it is April 18, 2024, 07:30:49 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rhtuttle

531
Your code works in my early version: 4.2.0.2803

532
N060 G0 X[#1001] Y[#1002] Z[#1003]

533
Mach4 General Discussion / Re: LOVING the PMC!! Thanks Steve!!!
« on: August 04, 2016, 01:13:47 PM »
OK...what is a PMC?

534
Ok, that's a lot of questions!  Many of the answers depend upon what your are really trying to do and what programming environment you will use.  You stated that you wanted to be able to control monitor a file for changes.  This can be done with a plugin.  Mach polls your plugin every so often and your plugin(dll) could be checking to see if the date changed and tell mach to load and run a file.

The code (C or C++) that you referenced above shows how to create a connection to Mach and get a reference to a mach object that connects to the running Mach3 program.  Once  you have that object you can query and set various properties and objects within the running Mach3 program.  The Programmer Reference pdf has all of the calls and their parameters and returns.  It has been years since I programmed in C and each IDE has different capabilites so I can't help you there.

My program (Delphi Object Pascal) checks to see if Mach is a running and if not loads it.  My program initially asks for the Mach3.exe file location and saves that to an ini file.  It also asks for the mach profile you want to load (mach3mill.xml or turn.xml or whatever you named your active profile) so that it can load the program with the appropriate profile and saves that as well.

It then creates a IMyScriptObject that connects to Mach.  I extended the class by creating an inherited class object (wrapper) that does all of this and simplifies certain tasks.  For example have a property xDro that so that I can program xDro:=2.5 or set a variable myVar:=xDro instead of setOEMdro(800,2.5) or myVar:=getOEMdro(800).

The gui is the most complicated item to implement including threads that must be syncronized to update my displays.  So to answer your question I am simply reading the values and updating my gui just as mach is updating its gui.  Possible but not necessary for what you are trying to do.  MachMe has to have a running version of Mach to operate on, it just hid Mach's GUI.

535
The mach3 sdk can be downloaded here:


http://www.machsupport.com/software/downloads-updates/

Contains .h files and some examples but I don't know of any manuals.

If your development environment has the ability to import a type library that will create the wrapper for you.

536
Yes you can control Mach3 from another program.  Mach3 exposes a COM interface that allows you to access just about anything.  Attached is a pascal file that shows the calls available.

537
General Mach Discussion / Re: M3 M4 switching
« on: March 12, 2016, 12:12:20 PM »
Okay, back to the original subject  ;),

When I started shopping for the relays I got confused by the nomenclature.  My motor at 70% power says 7.5 amps, 95vdc.  The product descriptions like the one below have ratings like the 4th line.  Will this one work? (DC 28V)

Product Name   Electromagnetic Relay
Model   JQX-13F
Coil Voltage   DC 12V
Load   10A AC 240V/ DC 28V
Type   DPDT
Pin Number   8
Size (Approx.)   40 x 27 x 20mm / 1.6" x 1" x 0.8" (L * W * T)
Weight   33g
Package Content   1 x Electromagnetic Relay

538
General Mach Discussion / Re: M3 M4 switching
« on: March 10, 2016, 04:45:10 PM »
Guys, still  traveling but wanted to say thanks for all of the great information. I'll be tackling this later next week. Probably have more questions then.

RT

539
General Mach Discussion / Re: M3 M4 switching
« on: March 07, 2016, 09:58:56 AM »
Thanks for taking time to answer with so much detail. I am traveling this week  so will take some time to digest the information. Does this mean I actually have four wires from the motor  (2 red and 2 black) and four from the power off of the control board?

540
General Mach Discussion / Re: M3 M4 switching
« on: March 05, 2016, 01:16:35 PM »
I have attached two photos of the board that came with the motor and the wiring diagram for it as well.  The speed pot has a MIN and MAX as well as a RESET position.  When turned through the min and max you can feel detents but once you get past min going to reset there is nothing.

When the kill switch is closed:

1.   If the pot is set to RESET, only the D11 light comes on.
2.   If the pot is set between min and max, the D11 and D7 light but no movement.
3.   If the pot is then moved to reset, the D7 goes off and if the pot is then moved to something other than reset the D7 and D6 light and the motor begins movement.

What I gather from this is that the reset position is simply moving the pot to a point where the wiper wire is not connected and therefore I need to put one of the relays on the white pot wire.  Am I anywhere close to correct?  If so, can you point me to an appropriate relay for this?

For the other relay I assume (and we all know what that means) that I need a DPDT(?) relay between the motor MC-68 card, red and black wires, that can handle 95v.   Again, can you point me to a relay that would do this and would I need a separate power supply or can it be powered by ?

Thanks for taking time to ‘edicate’ me.