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

    Updating functions in IDE

    Mervis
    2
    5
    1110
    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
              • First post
                Last post