Hello Guest it is October 23, 2019, 08:34:00 PM

Author Topic: My experiments with Mach3 ModBus and Arduino, Part I  (Read 77175 times)

0 Members and 1 Guest are viewing this topic.

Re: My experiments with Mach3 ModBus and Arduino, Part I
« Reply #10 on: March 07, 2015, 10:48:22 AM »
i need to know how i can use arduino as interface  with mach3, i need complete code
Re: My experiments with Mach3 ModBus and Arduino, Part I
« Reply #11 on: March 07, 2015, 10:50:32 AM »
 i need to know else how can i use brain editor wih arduino
« Last Edit: March 07, 2015, 10:53:48 AM by ahmed01280 »
Re: My experiments with Mach3 ModBus and Arduino, Part I
« Reply #12 on: March 08, 2015, 10:34:10 AM »
Hi
Here arduino code. I had two arduinos, on in remote and other connected to computer with mach3 and radio link between.
Some of the comments ar in estonian.
CNCpult_rc2.ino is remote control unit code, can be connected directly to computer usb.
Used two arduino micro's.

good luck!
Re: My experiments with Mach3 ModBus and Arduino, Part I
« Reply #13 on: April 10, 2015, 01:28:01 PM »
how to increase the number of inputs
greeting

Offline TPS

*
  •  1,391 1,391
    • View Profile
Re: My experiments with Mach3 ModBus and Arduino, Part I
« Reply #14 on: April 12, 2015, 05:39:24 AM »
how to increase the number of inputs

just use an other Arduino for example Mega2560 has 54 digital input/output pins .
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: My experiments with Mach3 ModBus and Arduino, Part I
« Reply #15 on: April 12, 2015, 05:03:45 PM »
if you have some code for arduino mega who might share
greeting

Offline TPS

*
  •  1,391 1,391
    • View Profile
Re: My experiments with Mach3 ModBus and Arduino, Part I
« Reply #16 on: April 13, 2015, 02:29:25 AM »
Hi, aluplastvz

quote from the first post:
Equipment:
1. Arduino board (I using Arduino Duemilanove but you can use any other Arduino board)
2. PC with Windows XP and Mach3 because software who I using for monitoring ModBus communication no support new versions Windows.
3. Software's
  - Arduino IDE

i do not have any code, and i am not a Arduino guy.

Thomas
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline TPS

*
  •  1,391 1,391
    • View Profile
Re: My experiments with Mach3 ModBus and Arduino, Part I
« Reply #17 on: July 31, 2015, 03:07:39 AM »
Hi KMtronic,

used your example with a nano, worked fine, thank you.

but i had some issues with temporary coming up inputs.
i use no external pullup resistors, because of the internal ones.

your code:

 pinMode(2, INPUT);           // Set pin to input
 digitalWrite(2, HIGH);       // Turn on pullup resistor

should be:
 pinMode(2, INPUT_PULLUP);           // Set pin to input and turn on pullup resistor

for my understanding.
since i changed this all the problems are gone.

Thomas

 
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: My experiments with Mach3 ModBus and Arduino, Part I
« Reply #18 on: October 26, 2015, 04:16:34 PM »
Hi guys,

In the modbus configuration window, there is a limited number of Cfg# lines, something like 60 or so, is this the absolute maximum or is there a way to increase this number?

Thank you

Kind regards

Offline khalid

*
  •  213 213
    • View Profile
    • My Wood carving
Re: My experiments with Mach3 ModBus and Arduino, Part I
« Reply #19 on: November 25, 2016, 02:09:53 AM »
Alas all the images are not visible ...seems these are offline from the server..anyone having a pdf?