I'm using LV data socket to communicate with a Rockwell PLC via RS Linx. The problem I have is that I can only connect to the PLC successfully second time around. The first time I run my code after logging onto windows the data socket returns error 56. If I stop, exit and restart the program then the PLC connection is made almost instantaneously. I'm wondering if the cause might be to do with RS Linx not being configured correctly, but it's puzzling why it should only work after one unsuccessful attempt. I am starting RS Linx immediately at logon.
↧