Gediminas Posted June 3, 2020 Report Share Posted June 3, 2020 Is it OK to switch between Modbus TCP and communication with VisiLogic on the same Socket. Code how I do it in attached project. I tested it and it worked, but then after a day I had a problem that communication with barcode readers was not working. Basically what I do when I change between Modbus TCP/VisiLogisc, I run all communication initialization - TCP/IP CARD INIT, SOCKET INIT, Modbus IP CONFIG. What I have found out that when I change from Modbus to VisiLogic, while Socket reinitializes to another port ( I use 20256 for VisiLogic and 20257 for Modbus), protocol stays Modbus (I can see this in info view). So when changing to VisiLogic i do PLC restart with SB300 and then initilalization. Any comments on that ? Have you done something similar ? 2x_Modbus.vlp Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.