• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Updating functions in IDE

    Scheduled Pinned Locked Moved Mervis
    5 Posts 2 Posters 2.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      robl
      last edited by

      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.

      T 1 Reply Last reply
      Reply Quote 0
      • T
        tomas_hora administrators @robl
        last edited by

        Hello @robl ,

        how do you deploy the project? Are you using cold or warm restart? Do you select "clear flash variables" option?

        1 Reply Last reply
        Reply Quote 0
        • R
          robl
          last edited by robl

          Hi @tomas_hora ,

          At the moment it is set to Warm Restart. Clear flash variables is not checked.

          Rob

          T 1 Reply Last reply
          Reply Quote 0
          • T
            tomas_hora administrators @robl
            last edited by

            @robl Mervis tries to maintain all possible settings when uploading new program. Select the clear flash variables checkbox and test please.

            R 1 Reply Last reply
            Reply Quote 0
            • R
              robl @tomas_hora
              last edited by

              @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.

              1 Reply Last reply
              Reply Quote 0

              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
              • First post
                Last post