Hello Guest it is March 28, 2024, 05:08:29 PM

Author Topic: Arduino Modbus, Complete, Documented and free  (Read 191366 times)

0 Members and 1 Guest are viewing this topic.

Re: Arduino Modbus, Complete, Documented and free
« Reply #50 on: March 22, 2015, 01:59:49 AM »
Hi
Please help fix this error
 
In file included from ModBusSlave.ino:5:0:
C:\Users\hq01\Desktop\arduino-1.6.0-windows\arduino-1.6.0\libraries\ModBusSlave/Modbus_Slave.h:19:7: error: redefinition of 'class ModBusSlave'
 class ModBusSlave
Re: Arduino Modbus, Complete, Documented and free
« Reply #51 on: March 29, 2015, 05:15:24 PM »
great thread.(and thank you shilling)  i made the changes mentioned and got my mega working within an hour or so!
now i just have to do the hard bit- sending/receiving these registers to old i/o cards on my machine via the arduino on  a seperate com port.
stupid things have 192600 baud rate and an xor checksum ..... wish me luck!
if its not broken yet, fit more gadgets!

Offline nso

*
  •  36 36
    • View Profile
Re: Arduino Modbus, Complete, Documented and free
« Reply #52 on: October 05, 2015, 12:22:48 AM »
hi everyone
i have a problem,  i have tried to upload arduino uno i got an error message. so what shall i do to handle it?

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Arduino Modbus, Complete, Documented and free
« Reply #53 on: October 05, 2015, 01:25:36 AM »
update the usb driver`s also the modbus was written for a earlier version of arduino

have a look here it may help https://learn.adafruit.com/lesson-0-getting-started/installing-arduino-windows

Offline nso

*
  •  36 36
    • View Profile
Re: Arduino Modbus, Complete, Documented and free
« Reply #54 on: October 05, 2015, 02:00:40 PM »
thanks for your quick replay ,after that i am sure about usb port and arduino  version because i have done it  whit zafar s sketch  (analog input) and that is worked great ....then when i tried whit shilling sketch that error happened.
sorry ,i know my English is awful

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Arduino Modbus, Complete, Documented and free
« Reply #55 on: October 05, 2015, 03:38:19 PM »
there will be a need to change some bit`s of the code I cant rember what to long ago and ask on the arduino form

Offline nso

*
  •  36 36
    • View Profile
Re: Arduino Modbus, Complete, Documented and free
« Reply #56 on: October 05, 2015, 11:18:11 PM »
no problem,anyway thank you.
Re: Arduino Modbus, Complete, Documented and free
« Reply #57 on: October 16, 2015, 06:34:15 PM »
Hi there...
I tried to compile the modbus code but I'm getting an error... missing the WProgram.h
Any suggestions about this?

Thanks

Kind regards

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Arduino Modbus, Complete, Documented and free
« Reply #58 on: October 16, 2015, 08:06:18 PM »
look here http://forum.arduino.cc/index.php?topic=147680.0
the WProgram.h is from v1 of arduino it got changed to Arduino.h
Arduino Modbus, Complete, Documented and free
« Reply #59 on: October 17, 2015, 05:44:32 AM »
Thank you for your help...
Now I have some inputs working with leds, some blinking, some fixed but I noticed that just some arduino mega ports from the main row (2 to 12) are working as outputs and none of the extra ports are working (22 to 53).

Can some one explain to me which ports are usable as output / inputs and how to enable the extra ports of the arduino mega?

Is it possible to connect more than one arduino mega to the system? Is there a limit of arduino or ports on the system?

Just one more question, how can I setup a rotary encoder on the mega and mach3 to work as a MPG?

I would like to build a console to my milling machine with as many functions as possible (buttons, leds, switches, etc...)

Thank you in advance

Regards