The application logic is implemented in the POU_Modbus, which is responsible for reading the holding registers and writing back to the holding registers for both Modbus TCP and Modbus RTU slaves. Both Modbus masters are running on the RevPi Connect and each has a slave connected. The following figure shows the CODESYS device tree overview of the example. In this case, the application should read the holdig registers of the Modbus slaves 0-9 and copy them to the holding registers 10-19. In addition to the RevPi Connect, we need one slave each for Modbus and Modbus RTU for this example. In this example, we want to run a Modbus TCP master and a Modbus RTU master on the RevPi Connect+ CODESYS with CODESYS Control for Raspberry Pi MC SL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |