ZERRADI
Hello
Is it possible to use sketch of Arduino to make calculation or control some device (stepmotor, encoder, gyroscop, RF connections ) and use the results in the ladder on openPLC?
Reply 0 0
thiagoralves
If you can make the Arduino talk back using Modbus, then yes, it is possible. You can run OpenPLC Runtime on another device as master, and then add your Arduino board as a slave device talking over Modbus. You will have to provide all the code that goes on the Arduino board (stepmotor, encoder, etc plus the Modbus communication) and OpenPLC will get the data into the PLC program running on the master node.
Reply 0 0
ZERRADI
Thank Thiago  you for your answer
But i wanna run it in the same Arduino device Like Pous.
because there are some library for arduino sketch i wanna use its results on the ladder on openPLC
thank you again
Reply 0 0
thiagoralves
You can't do that. POUs are programmed using PLC language. Arduino code is in C++. Your only option is to modify the OpenPLC Runtime code directly to add the functionality you want.
Reply 0 0
Reply