Julian L Posted August 8 Report Share Posted August 8 Hi everyone, I'm new to the Visilogic and Unitronics environment and i'm trying to download a program on my V700 but it's only working via the serial port. I've read how to do it with the ethernet cable, it worked 2 times, then never again. This is the settings i'm working with (from what i understood we had to do) : in the V700 (named V700 in the settings): IP 192.168.1.1 Mask 255.255.255.0 GW 192.168.1.254 on socket 0 port 20256 TCP slave My ethernet driver is set to IP 192.168.1.20 Mask 255.255.255.0 GW None and when i try to communicate I set : IP 192.168.1.1 (I also tried 20 or any other value instead of the final 1 and it didn't work either) TCP 20256 V700 But the get oplc information button never returns the infos and i get the usual error message when the communication isn't occuring. Does anyone has an idea of how to solve this? Thanks Quote Link to comment Share on other sites More sharing options...
MVP 2022 kratmel Posted August 8 MVP 2022 Report Share Posted August 8 You must know - in NEW PLC downloaded DEMO project. In this project PLC name = Unitronics. After first download another project you reset "Unitronics" PLC name to default PLC name (if new PLC name do not set via your project). Please read about Unitronics Info mode. Tap on screen 5 sec - 1111 password. Then in software section you find default PLC name (some numbers). Use this PLC name for set Ethernet conection via Visilogic. Quote Link to comment Share on other sites More sharing options...
Julian L Posted August 8 Author Report Share Posted August 8 13 minutes ago, kratmel said: You must know - in NEW PLC downloaded DEMO project. In this project PLC name = Unitronics. After first download another project you reset "Unitronics" PLC name to default PLC name (if new PLC name do not set via your project). Please read about Unitronics Info mode. Tap on screen 5 sec - 1111 password. Then in software section you find default PLC name (some numbers). Use this PLC name for set Ethernet conection via Visilogic. Thanks but name is set to V700 because this plc was already in use and the previous guy set it to this name Quote Link to comment Share on other sites More sharing options...
MVP 2022 kratmel Posted August 8 MVP 2022 Report Share Posted August 8 58 minutes ago, Julian L said: Thanks but name is set to V700 because this plc was already in use and the previous guy set it to this name You test it via Info mode? You can check soket configuration in PLC via Info mode. Pleas post foto of this configuration Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 8 MVP 2022 Report Share Posted August 8 4 hours ago, Julian L said: IP 192.168.1.1 Are you on a network, or connected directly using a crossover cable? I ask because 192.168.1.1 is typically the router address in a private network. Try using a different IP address for the PLC. 4 hours ago, Julian L said: (I also tried 20 or any other value instead of the final 1 and it didn't work either) But 20 is what you have your PC set to. Please recognize that all IP addresses on a network must be unique. 4 hours ago, Julian L said: GW None I didn't think this was allowed. Try entering something here. Also, be sure your PC isn't set to "Obtain an IP address automatically". If you post your program here we can be of more help. And, finally, try using a different cable. Ethernet cables go bad regularly in my experience. Quote Link to comment Share on other sites More sharing options...
Julian L Posted August 8 Author Report Share Posted August 8 This is what i have now, the cable is connected directly from the plc to the ethernet port of my computer. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 8 MVP 2022 Report Share Posted August 8 That all looks good. How about the Socket Initialization? Are you using a crossover cable between the PC & PLC? Have you tried a different cable? Quote Link to comment Share on other sites More sharing options...
Julian L Posted August 8 Author Report Share Posted August 8 If you're talking about the socket parameters in the V700 i have socket 0 on 20256 as TCP slave. I tried changing the ethernet cable and it still didn't work. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 8 MVP 2022 Report Share Posted August 8 Post your program here if you'd like additional help. Also, what VisiLogic version are you using? Quote Link to comment Share on other sites More sharing options...
Julian L Posted August 8 Author Report Share Posted August 8 Here it is. I'm on version 9.8.0.96 test.vlp Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 8 MVP 2022 Report Share Posted August 8 Try using Socket 1 for your comms since Socket 1 already defaults to Port 20256. As it is you have two different sockets assigned to TCP Slave Port 20256 which can give unpredictable results. Quote Link to comment Share on other sites More sharing options...
Julian L Posted August 8 Author Report Share Posted August 8 Still not connecting Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted August 8 Report Share Posted August 8 A common mistake some of us had made and you may double check: ethernet cable connected to ethernet port instead of Expansion port. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 8 MVP 2022 Report Share Posted August 8 2 minutes ago, Gabriel Franco said: A common mistake some of us had made and you may double check: ethernet cable connected to ethernet port instead of Expansion port. This is especially easy with the V700. Do check that. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 8 MVP 2022 Report Share Posted August 8 Okay, I loaded your program up in a V700 on my test bench. This program is quite a mess. In the parametre subroutine, you are calling HMI screens with direct contacts. Always use transition contacts for HMI calls. In the mail subroutine, you are continuously closing Socket 0. Do not do that. I disabled both of those subroutines and was able to connect to the PLC with Ethernet immediately. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted August 8 MVP 2022 Report Share Posted August 8 On top of what Flex has found 14 hours ago, Julian L said: in the V700 (named V700 in the settings): IP 192.168.1.1 In the picture of the plc's info mode, the IP is clearly visible as 192.168.1.30, yet you have an init setting it to .20, and you say it is .1 !! As well, perhaps you need to try using your gateway as DNS instead of OpenDNS. Before doing anything more along Flex's suggestions and other thoughts, download a blank program and do an Init & Reset. Then make a small program that is ONLY the ethernet connection ladderwork, iron out your bugs and then go further. cheers, Aus Quote Link to comment Share on other sites More sharing options...
Julian L Posted August 9 Author Report Share Posted August 9 Well thanks guys i tried connecting on a blank program and it worked, then i removed the faulty email part (I had totally forgotten about it so I did not check that out)on the main program and now everything is ok. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.