Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

codesys control pi master + arduino slave from usb connection

alverman
2017-05-13
2017-05-14
  • alverman - 2017-05-13

    Good morning !!
    a question:
    With an arduin connected to raspberry directly from usb you can control arduino via serial (and without any converter 485) from codesys?

    Do you have some examples of Arduinian code to read the values?

    Thank you, Alberto

     
  • alverman - 2017-05-14

    Ok ..... you can !!
    I did some tests and finally I saw them running.
    Now, however, I would just need some help.
    Can somebody give me some information on how to write an arduino code to control inputs and outputs?
    On the web there are many examples in modbus via ethernet but not serial.
    Do you have a few pieces of arduino code that show you how to read an input and set an output i codsys ?

    Thanks a lot, Alberto

     

Log in to post a comment.