• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. n1lp0int3r
    N
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 15
    • Best 0
    • Controversial 0
    • Groups 0

    n1lp0int3r

    @n1lp0int3r

    0
    Reputation
    605
    Profile views
    15
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    n1lp0int3r Unfollow Follow

    Latest posts made by n1lp0int3r

    • RE: Missing Library Boxes

      Btw, i was trying to implement the same function but i'm getting a hard time understanding how the ST language works. Is the any ST language documentation besides the one on help?

      For example i'm having a issue (probably related to includes) where i'm trying to use Lib.Core.V1_0.B99_PCTimeNode.Wday and i get the message the variable 'Wday' can't be accessed from the current scope.

      Thanks

      posted in Mervis
      N
      n1lp0int3r
    • RE: Missing Library Boxes

      Oh ok, thanks.

      posted in Mervis
      N
      n1lp0int3r
    • Missing Library Boxes

      Hi,

      After searching in help i've found some boxes that i would like to use in my project such as the T41. When i try to add it, it doesn't show in the list despite having the library in the references (in this case Lib.Hvac). I've searched through files.unipy.technology but i was unable to find another version of this library.

      What am i doing wrong?

      Thanks

      posted in Mervis
      N
      n1lp0int3r
    • RE: Accessing Mervis variables through Evok

      Ok i can see now. Thanks

      posted in Mervis
      N
      n1lp0int3r
    • RE: Accessing Mervis variables through Evok

      Oh ok. One point that i didn't understood correctly is how we can make that mapping. In order to acomplish that i should interact with the TCP Modbus server and present to it a new device is that it?
      If i understood correctly is there any documentation that you can point?

      Thanks

      posted in Mervis
      N
      n1lp0int3r
    • Accessing Mervis variables through Evok

      Hi,

      Is there any way to set and get the variables defined in Mervis through Evok? Let's say i have a script that gets some data and would like that my mervis program acts upon that data. Can i use the Evok API in order to set some variable to the value that i get from the script? Or is this possible in any other way?

      Regards

      posted in Mervis
      N
      n1lp0int3r
    • RE: Mervis and RS485

      Hi again,

      With a little bit of trial and error and some reading i finally manage to fully understand what both of you were saying, thanks again :)

      In order to help people in the future I'll leave the required steps in order to read data in Mervis from a IME Conto D2 using the RS-485 on a Unipi:

      • Set the IME meter communication parameters to 19200 baud rate, 8N1
      • Read 2.8.3 from https://files.unipi.technology/s/public/download?path=%2FSoftware%2FMervis%2FDocumentation&files=Mervis Step-by-Step Manual.pdf as mentioned by @tomas_hora
      • Set the UART_config initial value to 14 (Check the Mervis step by step manual in order to understand why)
      • Create a Modbus channel and set:
        • Link Protocol to Serial
        • Integration mode to True
        • Max. Telegram Duration 125ms
        • Max. Telegram Duration (Commissioning) 500ms
        • Port Number Modbus.Neuron.XXXX:RS485
        • Baud rate 19200
        • Data Bits 8
        • Parity None
        • Stop Bits One
      • Create a Device in the newly created channel
      • Set the Device Address in the Modbus device parameters (this should be set to the same address as the one set in the meter, in my case address 1)
      • Create a new group in the newly created device
      • Set the following parameters in the Modbus Group Parameters
        • Starting Element to 8193 (should be 8192 which is 0x2000 in hex but Mervis some how sends 0x1FFFF maybe some bug?)
        • Function to F03 Read Holding Register
        • Number of elements to 16
      • After this you have to map the variables according to http://www.imeitaly.com/protocolli/PR121.pdf, as example i'll leave how to do it for the voltage
        • Add I/O
        • For the new IO set:
          • Group to the group you've created earlier
          • Comm. Value Mapped Type - Builtin
          • ST Type - dword
          • Transform - Linear
          • Parameter K - 0.001
          • Data Offset - 0
          • MultiByte length - 4
          • MultiByte Order - 1234
        • For the other parameters just check the previous document and change the Data Offset and MultiByte length accordingly.

      If you run into trouble check the @Giamba last post, use Port Monitor in debug mode to check whats wrong.

      posted in Mervis
      N
      n1lp0int3r
    • RE: Mervis and RS485

      Hi @Giamba and @tomas_hora,

      Thank you both.

      With both of your inputs i can now understand how to do it. I've overlooked that document, didn't noticed the part of the RS485/Modbus.

      Thanks :)

      posted in Mervis
      N
      n1lp0int3r
    • RE: Mervis and RS485

      Hi @Giamba,

      Thanks for the reply. While reading your reply i've noticed i forgot to mention that i'm using a Unipi Neuron L203 which has a RS-485 built in sorry about that :s
      If i understood correctly o should present the device i'm reading data from (using my python script) to the modbus server? So that mervis then can read from it?

      Regards

      posted in Mervis
      N
      n1lp0int3r
    • Mervis and RS485

      Hi,

      I've managed to create a python script to interact with a power meter using RS485. I can't seem to find how to configure the protocol used in the RS485 communication in Mervis. Can someone point me to some resources where i can learn how to do this?

      Thanks in advance

      posted in Mervis
      N
      n1lp0int3r