sorin
Does the Arduino Mega fit the address map of 55 addresses for digital
and 32 addresses for analog? Second table on page "2.5 Modbus Addressing".
Thank you very much.
Reply 0 0
thiagoralves
I'm pretty sure it does. If it is not working for you on that range let me know and I will check the code and update the docs if needed.
Reply 1 0
sorin
So the Mega 2560 has enough RAM for the 55 digital addresses and the 32 analog addresses...
I'll keep you updated on how the work progresses.
Thank you very much.
Reply 0 0
sorin
I'm pretty sure it does. If it is not working for you on that range let me know and I will check the code and update the docs if needed.


Hi. I tried with a mega 2560. In modbus I only have 8 analog input addresses (A0-A7) and 5 digital output addresses D0-D5. The problem is that D0 and D1 are also used in communication. Do you think you can help me get somewhere to 10 analog input and 10 digital output addresses (apart from 0 and 1). Thank you very much
Reply 0 0
thiagoralves
Are you sure you have the latest version of the OpenPLC Editor? The latest version has a new modbus library that supports 56 digital inputs, 56 digital outputs, 32 analog inputs and 32 analog outputs. D0 and D1 were never used on OpenPLC Runtime for signaling. They are reserved for communication.
Reply 0 0
sorin
The version is : 2.01  - 2022.11.15. Maybe it is possible because my module has a USB interface with 16U2 and not with CH340G ? 
anyway, I'm going to redo the assembly and the tests and I'm going to record it to see how it works.
Thank you very much
Reply 0 0
thiagoralves
Nope, it has nothing to do with your usb circuitry. OpenPLC does not map pins 0 and 1 for anything. 
Reply 1 0
sorin
I'll keep you updated on how the work progresses.
Thank you very much.
Reply 0 0
thiagoralves
sorin wrote:
The version is : 2.01  - 2022.11.15. Maybe it is possible because my module has a USB interface with 16U2 and not with CH340G ? 
anyway, I'm going to redo the assembly and the tests and I'm going to record it to see how it works.
Thank you very much

You editor is old. Update it to the latest version from the file menu
Reply 0 0
sorin
Now I've done the update, I'll do the tests again and I'll keep you updated with the results. Thank you very much
Reply 0 0
Reply