Hello Guest it is October 21, 2019, 01:36:36 AM

Author Topic: RS232 fro gcode to serial port  (Read 8247 times)

0 Members and 1 Guest are viewing this topic.

RS232 fro gcode to serial port
« on: June 14, 2013, 06:05:20 PM »
Hello Group.

Is there a way to ASCII data from G-code to a serial port for RS232 communications between the Mach3 program and an external device?

Thank you in advance

Offline BR549

*
  •  6,902 6,902
    • View Profile
Re: RS232 fro gcode to serial port
« Reply #1 on: June 14, 2013, 08:53:58 PM »
NOPE

(;-) TP
RS232 from gcode to serial port
« Reply #2 on: June 15, 2013, 11:28:23 AM »
One of these days I will learn to proofread before sending. 

If  there is not a way to send ASCII data from G-code to a serial port for RS232 communications,  can it be done via USB?   Also,  is there any way to send an digital “word”, such as “10010011” to the outside world for control of external devices?

The basic question is:  Can Mach3 be made to communicate with other devices so as to provide programmable control in any method other than a simple Hi or Lo at an I/O output?

RP

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: RS232 fro gcode to serial port
« Reply #3 on: June 15, 2013, 01:19:19 PM »
RP - please don't double post - it just wastes folks time answering the same stuff in two threads - I've deleted your other post - thanks for your cooperation.

Offline BR549

*
  •  6,902 6,902
    • View Profile
Re: RS232 fro gcode to serial port
« Reply #4 on: June 15, 2013, 02:34:06 PM »
RP anything is possible given enough time, expertise and money. BUT in this case it is highly unlikely to be possible.

Mach3 has many ways to make it work I would investigate all the ways that it does work. It can talk to a controller via USB or ethernet thru a plugin where Mach3 tells a controller what to do. AS long as the controller can do what it is told to do.  You must adapt your controller to understand MACH3 NOT the other way around.

(;-) TP
Re: RS232 fro gcode to serial port
« Reply #5 on: June 15, 2013, 06:25:18 PM »
Stirling,

I am sorry for the cross post and will not do that again.

BR549,

I have seen controllers where it is possible to send commands directly from a tool-path to the RS232 port for communication with and control of other machines.    In this case I can get by with toggling a relay thru an m-function.   But it would work better if I could talk directly to the other system.   Which plug-in are you referring to?  I will certainly look into it.

Thank you for the reply,

RP

Offline BR549

*
  •  6,902 6,902
    • View Profile
Re: RS232 fro gcode to serial port
« Reply #6 on: June 15, 2013, 09:02:48 PM »
Mach3 is NOT one of the those that can do that across the Serial port. YOU would have to create the plugin yourself as an interface between Mach3 and your controller.

Do a search on plugins or look at the downloads section.

(;-) TP

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: RS232 fro gcode to serial port
« Reply #7 on: June 16, 2013, 03:52:29 AM »
The basic question is:  Can Mach3 be made to communicate with other devices so as to provide programmable control in any method other than a simple Hi or Lo at an I/O output?
Just a double check here as I'm wondering if you guys are talking at cross purposes.

If by "programable control" you mean can Mach drive the AXES of a machine in a cordinated manner via RS232 as it does via the parallel port then the answer is pretty much as Terry has indicated. Of course this is basically what a USB smoothstepper and it's ilk do except it's via USB of course rather than RS232.

However - if by "programable control" you mean sending control signals to "an external" machine to do other "stuff" like control valves or turn things on/off, send/receive data etc. then of course the answer is yes - Mach can do that. If this IS what you're wanting then your choices are direct serial control or Modbus RTU.

Ian

Re: RS232 fro gcode to serial port
« Reply #8 on: April 19, 2015, 10:49:23 AM »
Is it possible to send a file directly in some way
  (eg x500 Y300
x200 Y600
x400 Y900 ..
.....
....)
in Mach3 ekran.Da avoid loadfile ....
for faster load when changing G code several times in a short time.
I need this machine for bending tubes where Mach3 use as a controller of length and angle of a plc doing valve control
greeting