Glenn
Hi
I'm new to openplc but have some experience in industrial automation.
I dont know this is the right place to do a feature suggestion. 

It would be nice if it was possible to read/write markers (flags) to an arduino slave device. If i'm right, now it is not possible to exchange values without occupying physical IO? 

Maybe its possible to setup a modbus register range for markers %MX0.0 / %MW0.0?


I like the concept of openplc very much! Keep up the good work!
Reply 0 0
thiagoralves
The OpenPLC runtime supports memory locations. This was removed for the micro-runtime that goes on the arduinos due to limited memory footprint on these boards. In any case, you can check the Modbus memory mapping on documentation, and you will see that they go a bit over physical mapping. You can use those extra locations that don’t have any physical correspondence as memory
Reply 0 0
Glenn
Ok thanks! Then i have to set the slave type to generic in the runtime to get acces to that range?
Reply 0 0
thiagoralves
Are you using Arduino devices as slave? In that case there is no reason why they would need memory bits, since the main logic is handled by the master PLC. A slave device only needs to respond to I/O read and write queries.
Reply 0 0
Glenn
Yes I am. I want some redundancy in the slaves, in case the connection with the master is lost. Then the slave is able te run the critical functions. 

I'm planning to automate my garden and greenhouse.  I would us this to control the ventilation and irrigation of the green house. If the Arduino is running some local code and is able to control High and Low alarms when the master loses connection.

Does this make sense? Or is there a better solution?
Reply 0 0
thiagoralves
If you're running code on the Arduino, I would have it run the entire automation locally, and then use a Master just as a supervisory or something like that.
Reply 0 0
Reply