Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win10 Codesys ControlWin softplc #46

Open
zatalian opened this issue Feb 12, 2020 · 7 comments
Open

win10 Codesys ControlWin softplc #46

zatalian opened this issue Feb 12, 2020 · 7 comments

Comments

@zatalian
Copy link
Contributor

Hi,

I have a codesys controlwin softplc configured as modbus master. Communication only works if i use a arduino leonardo as slave hardware. The exact same project on a arduino uno or arduino duemilanove does not work.
Is this a know problem (and maybe a solution/workaround)?

@yaacov
Copy link
Owner

yaacov commented Feb 12, 2020

Hi, thanks for the issue 👍

Is this a know problem (and maybe a solution/workaround)?

a. no, if you fix it, please send a pull request fixing it.
b. if you post the relevant code that fails on uno and works on leonardo here, maybe someone can see the problem and help fix the issue.

@zatalian
Copy link
Contributor Author

the default examples all work with the combination codesys + leonardo.
I suspect the different usb to serial drivers used by the different arduino's but i haven't found a solution yet.

@ysmilda
Copy link
Contributor

ysmilda commented Feb 12, 2020

Quick sanity check:

  1. Did you change the Serial port to Serial1 for the leonardo and Serial for the uno?
  2. Did you disconnect the USB on the uno when testing? The Serial port is shared between the two

@zatalian
Copy link
Contributor Author

I don't use an RS485 shield. I communicate directly over the usb comport. So I use Serial on both the leonardo and the uno.

@yaacov
Copy link
Owner

yaacov commented Feb 25, 2020

@zatalian any news ?

@zatalian
Copy link
Contributor Author

no solution yet but i don't think it is the arduino code that is causing the problem. I have similar problems with another program communicating with a leonardo and an uno. For the uno, i have to disable RTS and DTR. Something i can't do with codesys...

@yaacov
Copy link
Owner

yaacov commented Apr 15, 2020

👍 thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants