Updating functions in IDE
-
Hello,
I've started to write some of my own function blocks/functions in Mervis IDE, however, I notice that if I update them, most of the time I need to go back to the main function block where they are called from, delete them all and put them back in again before they work when deployed.
(i.e, I make a minor change to a function, build -> deploy -> debug) then on testing, the function block doesn't behave as it should (some or all inputs don't result in expected outputs.)
If I delete the function block and add it again, connect it all up again, build -> deploy -> debug, it works then as expected.
Is there a way to refresh the functions without having to delete and re-add them? If I have 20 switches, it's going to get painful if I have to delete all the functions they are connected to and re-add them all every time.
Thanks.
-
Hello @robl ,
how do you deploy the project? Are you using cold or warm restart? Do you select "clear flash variables" option?
-
-
@robl Mervis tries to maintain all possible settings when uploading new program. Select the clear flash variables checkbox and test please.
-
@tomas_hora I'm not sure that made any difference.
I have to do some more testing, (For some reason the IDE has been crashing on me a lot when I try to do certain things like delete outputs or function blocks.) but what I think is happening is that the correct logic is being uploaded to the PLC, but the "debug" output (e.g. when using manual mode switches) loses track of things after the update.
Exiting and restarting the Mervis IDE, it seems to come back again.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login