RichardMCC Posted May 26, 2017 Report Share Posted May 26, 2017 Hi All, New user to Unitronics Hardware so please forgive my ignorance. A client has a number of small bench testers with V120-22 PLC/HMI units in them. I have downloaed and installed the Visilogic software and successfully uploaded the program from one of the units (.vlp file) I am trying to download this file to a new V120-22. However when I compile the file prior to download, I am getting an a bunch of errors all pointing at Network 1 of every routine in a certain module. Each of thes networks has exactly the same structure . The error is "error #1012-Illegal Net" That is the extent of the feedback I get. When I go to the rungs in question, Im not sure what is causing the problem. I have deleted a parallel branch network from the rung and it compiles ok without any error showing for that routine. However I have tried to narrow down the problem be deleting elements from the branch individually but this does not show anything. Only if I delete the branch will the routine compile OK. The fact that this file was uploaded from a working unit is what is bugging me. I have attached a image of one of the rungs in question Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted May 26, 2017 MVP 2022 Report Share Posted May 26, 2017 You have two networks in a single ladder rung. That is a no-no. Perhaps VisiLogic has changed that from a Warning to a Critical error in later versions. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted May 26, 2017 MVP 2022 Report Share Posted May 26, 2017 Also, I don't think you can have multiple HMI screen calls in the same net. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted May 26, 2017 MVP 2022 Report Share Posted May 26, 2017 It's the latter. I just tested and VisiLogic still allows multiple networks in a single rung (don't do it, though), but doesn't allow multiple HMI calls in a single ladder rung. Perhaps an older version did allow it. 1 Quote Link to comment Share on other sites More sharing options...
RichardMCC Posted May 26, 2017 Author Report Share Posted May 26, 2017 Hi Flex727, Thanks for the response. I have tried moving the 2nd net to another net but error remains. I have had a look at other routines throughout the program and there seems to be alot of routines with multiple HMI screen calls, which are not causing any problems. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted May 26, 2017 MVP 2022 Report Share Posted May 26, 2017 By the way, your picture shows horrible programming technique. That ladder rung could easily (and absolutely should) be broken up into 7 separate rungs. Do that and your compile error will go away. I can't account for why it seems to be allowing it elsewhere. Quote Link to comment Share on other sites More sharing options...
RichardMCC Posted May 26, 2017 Author Report Share Posted May 26, 2017 Split it out as you suggested Flex727 and issue has gone away. It must be related to the newer Visilogic version I am using. (8.0.1) I did get a message while uploading that the PLC file was created on an older version and that it would be recompiled using my installed version (8.0.1) Obviously these programming techniques were accepted in older versions. Its a pity that the error messages dont contain more information in relation to the specific cause of an error. Anyway thanks for your help, a bit of work ahead of me to get all the routines modified.........! Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted May 26, 2017 MVP 2022 Report Share Posted May 26, 2017 Fortunately, VisiLogic makes it easy. Copy, paste, drag, and drop. You can break those nets up literally in seconds. 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.