Hello Guest it is April 26, 2024, 10:33:16 AM

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 - Madart70

Pages: 1
1
Modbus / Re: Arduino Modbus, Complete, Documented and free
« on: January 21, 2013, 04:46:26 PM »
Hi,

For all having some problems with an Arduino  MEGA
In the modbusslave.pde there is line
"#define Digital_IO_Pins  14 "
that line limits the number of inputs to 14 for the MEGA that has to be increased to 64 (64 is the limit of the IO_Config_Register)
further more in the Kill_IO_Register section there is a typo the last line of the AN Digital also does +3 this should be +4

And for safety reasons there should be a section be created like Safety_IO_Register
Here you could state the safety flags some outputs should be OFF other should be ON when COMMS fails

Also the safety bits should be implemented in the Pin_manipulator.

And for those that really wanna go cheap and simple an ATMEGA8 can do but you need to comment out all line that are there for the MEGA only.
It will fit then with a 8Byte margin or so.



Pages: 1