Al. Posted April 4, 2019 Report Share Posted April 4, 2019 Hello, I am working on Visilogic 9.8.65 for the programmation of a V570. I would like to know how to delete a subroutine or a display from a project. When I try it, a message appears and says: "The Subroutine/Display: XXX is referenced in the project. You cannot delete it." Thanks for your attention. Al. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted April 4, 2019 MVP 2023 Report Share Posted April 4, 2019 You must delete the reference to the subroutine or display first. For instance, if the subroutine is called in ladder that subroutine call must be deleted first before you can delete the subroutine. Same goes with HMI displays. Link to comment Share on other sites More sharing options...
Cam Posted April 4, 2019 Report Share Posted April 4, 2019 Right click on it and use the find feature to see where it is being referenced. Link to comment Share on other sites More sharing options...
Al. Posted April 5, 2019 Author Report Share Posted April 5, 2019 Hello, Thank you Flex and Cam. So I need to delete every call relating to subroutines and displays. I have another question if you would answer : is it possible to delete a variable everywhere in program in "one click" ? Because for the moment I search for the occurence of the variable in question and I delete every call to make sure that the variable is removed, initialized and then available. Thank you ! Al. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted April 5, 2019 MVP 2023 Report Share Posted April 5, 2019 2 hours ago, Al. said: So I need to delete every call relating to subroutines and displays. No, you only need to delete calls for the specific subroutine or display you want to delete. As CAM said, they are easy to find. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted April 5, 2019 MVP 2023 Report Share Posted April 5, 2019 2 hours ago, Al. said: I have another question if you would answer : is it possible to delete a variable everywhere in program in "one click" ? Because for the moment I search for the occurence of the variable in question and I delete every call to make sure that the variable is removed, initialized and then available. Sorry, I have no idea what any of this means. Link to comment Share on other sites More sharing options...
Al. Posted April 5, 2019 Author Report Share Posted April 5, 2019 Thank you very much Flex, - For deleting variables in the subroutines and displays, I did it manually and made sure that the variables are removed (MB initialized ; MI, ML, T set to 0 ; etc.). it was long and tedious but now it is fine. - And yes, for deleting subroutines and displays I did it like you said: deleting calls for the specific subroutine and display I wanted to delete. Thank you both for your help ! Al. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted April 5, 2019 MVP 2023 Report Share Posted April 5, 2019 8 minutes ago, Al. said: For deleting variables in the subroutines and displays, I did it manually and made sure that the variables are removed (MB initialized ; MI, ML, T set to 0 ; etc.). it was long and tedious but now it is fine. Why did you feel that was necessary? All you're deleting is the descriptor text that the PLC never sees anyway. If you have a bunch of operands that are no longer being used and you find the descriptor text annoying, you can go to View / Operands Not Referenced in Project. That will generate a list that you can delete from. Link to comment Share on other sites More sharing options...
Al. Posted April 5, 2019 Author Report Share Posted April 5, 2019 Flex, My project is dedicated to be used again for adding features in the future, it will be a standard project I would say. That is why I cleaned everything and made the variables visually available. I would have used the tool "Operands Not Referenced in Project" but I did not know about it. So I will verify my job with this, great ! Al. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now