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

    Interrupt mask on Neuron group - Digital Input state event

    Scheduled Pinned Locked Moved Neuron Series
    10 Posts 3 Posters 5.0k 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.
    • S
      sabrus
      last edited by

      Hi,
      i don't understand the use of register Interrupt mask on each group.
      Can I use it to read the Digital input state as interrup ?

      Now I check the Digital Input state changed with polling on register, is there another way?

      thanks.

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

        Hello @sabrus,

        these are statuses of each group informing that something has happen and is designed to save some communications. So theoretically you can read only the mask and if it the 'Digital input changed state' is set to True, then you read the state of all DI instead of reading them all the time.

        But of course, polling the register/coils all the time also works well.

        1 issue: If there is a serial line in the group (group nr 1), I do not recommend using the interrupt mask because reading serial communications resets the mask.

        1 Reply Last reply
        Reply Quote 0
        • S
          sabrus
          last edited by

          Hi,
          thanks.
          So, there isn't way to get the digitail input state change different that polling (es hardware interrup) ?

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

            Unfortunatelly currently not 100% reliable.

            1 Reply Last reply
            Reply Quote 0
            • L
              LulaNord
              last edited by LulaNord

              Hi...i am a new user here. As per my knowledge these are statuses of each group informing that something has happen and is designed to save some communications. So theoretically you can read only the mask and if it the 'Digital input changed state' is set to True, then you read the state of all DI instead of reading them all the time.

              pcb assembly china

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

                @LulaNord correct! :)

                1 Reply Last reply
                Reply Quote 0
                • S
                  sabrus
                  last edited by

                  hi @tomas_hora
                  We have created an automation machine and we writred custom code that use mdobus server.
                  I realize that the neuron is not ideal for fast automation becouse the response time of DO and DI is not costant and specially checking input events is very hard throught polling (we add different modbus connections for any input)
                  I think the neuron is ideal for static controlling but not for automation (Photocells, sensors) and real time application.
                  Do you think right my opinion?

                  Regards.

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

                    @sabrus what is the expected response time of the DO or DI in your application?

                    S 1 Reply Last reply
                    Reply Quote 0
                    • S
                      sabrus @tomas_hora
                      last edited by

                      Hi @tomas_hora , we work in continuos automation so the response time must be in at max 50 mills.

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

                        @sabrus Right now one loop in Mervis is about 30-60ms (can be seen while in debug mode in System status tab) but it also depends on the complexity of the application. You can also try to set a lower sleep ration in the task, eg. 5% in stead of 50% to make it little faster. There are some plans to make the whole runtime run much faster but I cannot promise anything...

                        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