REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    Use of the 'MTM__SlaveStation_Connected' signal.

    Modbus TCP
    2
    9
    1.3k
    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.
    • A
      Apollo
      last edited by Apollo

      We are using the 'MTM__SlaveStation_Connected' signal to detect if the Modbus communication is established but while everything seems to be working fine the output of this signal remains 'off'

      25fd26b5-bf77-44c1-8e7d-801215933ba1-image.png

      The output of the 'Connecting' block is sometimes 'on'.

      ae4994a6-2a2c-4bcf-a655-523b64f8334c-image.png

      I expected that the 'MTM__SlaveStation_Connected' signal would be 'steady-on' after the communication is established.

      b8800510-d2e8-4fc5-a22a-7cfb0365a7e7-image.png

      1 Reply Last reply Reply Quote 0
      • cechuratC
        cechurat
        last edited by

        Hi Kris,

        you are right about the expected behaviour of the "MTM_SlaveStation_Connected" signal.
        The behaviour you are facing can mean some failure in communication. Please, can you turn on all I/O driver diagnostic messages (see screenshot) and share a bit of the System Log with us? (REXYGEN Studio -> Target -> Show System log -> right click -> Export Items -> All items)

        37a4f61c-567c-41ea-b581-51a112c49dcd-image.png

        Kind Regards,
        Tomas

        A 1 Reply Last reply Reply Quote 0
        • A
          Apollo @cechurat
          last edited by

          @cechurat Please find the logfiles below. I do have at the moment 8 Modbus slaves configured but which are not online yet. The one and only slave which is communicating is the one that is not showing 'on' when connected. Although the data is coming just fine.

          exportLog20210203.csv

          cechuratC 1 Reply Last reply Reply Quote 0
          • cechuratC
            cechurat @Apollo
            last edited by

            @apollo Hi Kris,

            thanks for the log. I don't see anything suspicious.
            Can you send me the .rio file of the MTM configuration?

            I noticed that the _Fresh signal is 3-4s - why does it take so long to refresh the value?

            Can you try to add MTM__SDSSHE39706_Status signal?

            Cheers,
            Tomas

            A 2 Replies Last reply Reply Quote 0
            • A
              Apollo @cechurat
              last edited by

              @cechurat

              It is because the time is (or was) set at 5s but changing it to the default '0.00' doesn't change.

              I have now another slave online and this is working fine. But with this one, I'm only using holding registers while the other one is a mix ... see .rio file attached

              modbus_cfg.rio

              1 Reply Last reply Reply Quote 0
              • A
                Apollo @cechurat
                last edited by

                @cechurat said in Use of the 'MTM__SlaveStation_Connected' signal.:

                Can you try to add MTM__SDSSHE39706_Status signal?

                Cheers,
                Tomas

                It is showing a counter (15bit) which is running down, over and over.

                e4b8a9ce-554a-47d9-a259-71344ecfa7b7-image.png

                cechuratC 1 Reply Last reply Reply Quote 0
                • cechuratC
                  cechurat @Apollo
                  last edited by

                  @apollo Hi Kris,

                  thanks for the .rio file. It says that MTM__Node0_temperature is read from Slave TS-SH-E397-01 however the signals _Connected, _Connecting and _Status refer to Slave SDSSHE39706, which is not up and running at the moment if I'm not mistaken. (and therefore Status shows time to next reconnect in ms and _Connecting is sometimes UP for a while (where while = response timeout))

                  Just change the auxiliary flags to MTM__TS-SH-E397-01_xxx and you should be able to see relevant information about the connection to the Slave.

                  d1d29e71-4588-4416-bbd4-7d20c7705527-image.png

                  Cheers,
                  Tomas

                  A cechuratC 2 Replies Last reply Reply Quote 0
                  • A
                    Apollo @cechurat
                    last edited by

                    @cechurat

                    Oops, my apologies for waisting your time.... stupid mistake, should have seen this. 🙄

                    8299515e-5cf2-4997-ac75-e0c3b96468b2-image.png

                    Now it's working. BTW, how to interpret the Status value?

                    1 Reply Last reply Reply Quote 0
                    • cechuratC
                      cechurat @cechurat
                      last edited by

                      @cechurat said in Use of the 'MTM__SlaveStation_Connected' signal.:

                      Status shows time to next reconnect in ms

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

                      There is also an outdated REXYGEN community forum.

                      Powered by NodeBB.