Hello Guest it is March 28, 2024, 09:51:45 AM

Author Topic: Mach 3/4 Autoload and execute control from external program.  (Read 7283 times)

0 Members and 1 Guest are viewing this topic.

Offline CWare

*
  •  14 14
    • View Profile
Mach 3/4 Autoload and execute control from external program.
« on: March 12, 2016, 04:49:07 PM »
Trying to figure out if mach is the right choice. Tldr in bold^^
Not exactly a hobby mill i'm running its a fast cutting machine (F15000) with a toolchanger...


Because of a limited step frequency (125khz) of the controller i'm using (EdingCnc) I'm considering switching to Mach3/4 on a VitalSystem DSPMC 7762 controller.

I would need to control mach from an external cam like program though.
I can alter that program if needed (c++).

I want mach just to launch on startup(thats no problem) sit in the background shut up and execute gcode when it recieves it.


The way I achieved this on the EdingCnc controller...
EdingCnc watches for filechange on a specified path.
When it detects a filechange you have the option in setup that it refreshes and starts execution immediately.

Is that possible with mach? If not i'll have to write something like mach for the DSPMC 7762   T.T (would take a while)
Or any tips on a real time fast controller  which is highly configurable? DSPMC  seemed to be the closest, idk what a siemens  costs or if it is better.

Also is there some conditional statement that can't be realized with macros?Is it burdensome to use?











Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Mach 3/4 Autoload and execute control from external program.
« Reply #1 on: March 12, 2016, 05:17:55 PM »
KFlop with Kmotion might be a better choice? At least maybe easier?
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline CWare

*
  •  14 14
    • View Profile
Re: Mach 3/4 Autoload and execute control from external program.
« Reply #2 on: March 12, 2016, 05:48:05 PM »
I prefer ethernet stability is really important there is a lot of stuff running that generates noise on the line.
 2.5 MHz step dir should be faste enough.
also 1 MHz encoder freq seems low.

Have you programmed for it?
The support of vitalsystem seems to be great though.




« Last Edit: March 12, 2016, 05:57:58 PM by CWare »

Offline CWare

*
  •  14 14
    • View Profile
Re: Mach 3/4 Autoload and execute control from external program.
« Reply #3 on: March 12, 2016, 06:00:13 PM »
Was browsing the mach4 forum and founs something abt scripting

http://www.machsupport.com/wp-content/uploads/2014/05/Mach4%20Scripting%20Manual.pdf

Can I use a plc script to look for filechange?
Or am I completely wrong.

Never used lua is it possible to do file io with it?

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Mach 3/4 Autoload and execute control from external program.
« Reply #4 on: March 12, 2016, 06:30:41 PM »
I prefer ethernet stability is really important there is a lot of stuff running that generates noise on the line.
 2.5 MHz step dir should be faste enough.
also 1 MHz encoder freq seems low.

Have you programmed for it?


No, but I know of a few people that have written new front ends for it.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline CWare

*
  •  14 14
    • View Profile
Re: Mach 3/4 Autoload and execute control from external program.
« Reply #5 on: March 12, 2016, 08:01:51 PM »
seems like my spec was wrong it should be 500Khz max step frequency
 http://www.dynomotion.com/Help/SpecificationKStep.htm

So Kflop is no option thanks for your reply though.
I shouldve made 2 threads i guess.

Offline CWare

*
  •  14 14
    • View Profile
Re: Mach 3/4 Autoload and execute control from external program.
« Reply #6 on: March 14, 2016, 12:10:04 PM »
So it isn't possible?
Any of the devs I could pm?

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Mach 3/4 Autoload and execute control from external program.
« Reply #7 on: March 14, 2016, 12:13:12 PM »
Try asking on the Yahoo group.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline CWare

*
  •  14 14
    • View Profile
Re: Mach 3/4 Autoload and execute control from external program.
« Reply #8 on: March 14, 2016, 12:47:48 PM »
Shall do thanks.
Re: Mach 3/4 Autoload and execute control from external program.
« Reply #9 on: March 14, 2016, 12:57:11 PM »
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.