PLC Archive:DH-485 Communications
contributed by: Joe Jansen
Link to File
This is a code fragment that I use for doing DH-485 comms between processors. The MSG instructions are cascaded to allow the fastest possible updates without worrying about a having failed MSG's clog up the channels and stop / slow down the rest of the MSG's to other machines. This is on a small (4 node) production line, but it could scale to whatever amount needed. Note that on larger networks, it may be better to keep two or three loops going at once.
For all material in the PLC Archive, our site disclaimer applies. You take full responsibility for the application of any code appearing on this site, as we have made no engineering evaluation of the code nor are we, or the author, familiar with the details and risks inherent in your application.