If you build a Modbus tcp server, you can perfectly solve the performance problem, because The connection pressure will be equally distributed to each PLC, and the server can know whether the client is connected or not by adding a timestamp. If you open 100 threads to poll 100 devices, the performance loss will be very large, not to mention adding more devices. When our host computer needs to read 100 Siemens PLC devices (here is just an example, all those using Modbus tcp are the same), you use the server to actively request 100 devices to improve performance. If the PLC is connected to the LAN, it can be read and written remotely ^_^ The direct method of the network cable is used here. Mainly read and write data of X, Y, M, L, B, V, F, S, D, W, R area of ​​Mitsubishi Q series PLC, read and write data of M, Q, I, DB block of Siemens PLC, The pro-test is effective. This article will show how to configure network parameters and how to use codes to access PLC data, hoping to solve some practical problems for those in need. If you need to send a client to realize remote office synchronization monitoring after reading PLC data, you can refer to the following project (expanded based on this component, with account verification, version control, data group sending, announcement management, etc. The complete information of the components and API introduction refer to: The usage restrictions and update logs of the components are all on this page. If you need a tutorial: Nuget installation tutorial:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |