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

wiring with arduino as slave and by RS485 to master? #26

Open
bigplik opened this issue Oct 20, 2020 · 2 comments
Open

wiring with arduino as slave and by RS485 to master? #26

bigplik opened this issue Oct 20, 2020 · 2 comments

Comments

@bigplik
Copy link

bigplik commented Oct 20, 2020

hi, I appreciate if someone could explain wiring arduino with other device (master) by RS485 or RS232, when using code from this library?

I understand code provided here can act as slave for some modbus rtu master simulation on PC, but what about using it with other devices (PLC, HMI, another arduino)?

@angeloc
Copy link
Owner

angeloc commented Nov 10, 2020

Could you explain your setup? RS485 is a pretty simple bus, only 2 wires, if you correctly wire them you can talk with master or slaves

@ashrafulkhn
Copy link

In case you are trying to connect to a PLC or a HMI then connect the A and B pin of the PLC to the RS485 converter module you have used with Arduino. Make sure that A pin should be connected to A and B pin should be connected to B pin respectively (Not like tx->Rx and rx->tx).

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

No branches or pull requests

3 participants