shawadashin

Hi,
Firstly, im a newbie and maybe my question is very noob but i hope u guys will answer, thanks. 

I have a project that have 2 arduino slave in openplc. One of them is collect data from temp sensor and display it. Another one is recevied data from arduino 1 and turn on the light if the temperature above 40 degree. How can i write code Ladder to connection 2 arduino. 
Thank you. 

Reply 0 0
thiagoralves
You don't need to write any code to connect the two Arduinos. All you have to do is upload OpenPLC firmware to each Arduino and then add each one as a slave device on OpenPLC Runtime. The slave devices table will show where the Arduino pins will be located on OpenPLC. Slave devices are located from address 100 onwards (i.e. %QX100.0, %QX100.1, etc). Each location will correspond to a specific pin on one of your Arduinos.
Reply 0 0
Reply