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

    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
    • RE: Mervis PWM connection to Meanwell driver

      Hi,

      Looks like all it was needed was a reboot. After the reboot everything started working fine.
      I'll leave the project image for future reference

      0_1499152382996_pwm_meanwell.png

      Just as a side note use 100 for the cycle. 255 (the default) with my drivers makes the light flicker when i set values between 0 and 255.

      Thanks for all the help.

      posted in Mervis
      N
      n1lp0int3r
    • RE: Mervis PWM connection to Meanwell driver

      @tomas_nora I've connected DIM- of the driver to the DOGND of the unipi and the DIM+ of the driver to the DO1.1 of the unipi.

      Yes with the 230v on the AC input of the driver it outputs 10V (DC) on the DIM wires.

      I've followed the names that are present in this schematic of the driver:

      0_1499097752169_upload-e464812b-1911-4c2d-bd5d-0f15f9dbe32f schematics.png

      Thanks in advance.

      posted in Mervis
      N
      n1lp0int3r
    • RE: Mervis PWM connection to Meanwell driver

      Hi @tomas_hora,

      I've tried that before and got the same result.
      Is it possible i need a pull down resistor?

      Thanks

      posted in Mervis
      N
      n1lp0int3r
    • Mervis PWM connection to Meanwell driver

      Hi,

      I'm struggling to program mervis to control a meanwell pwm driver.
      I have connected it to the DO_1.01 and it's not connected to the FBD.
      Reading the driver specifications it supports a frequency of 100Hz and so i've set the PWM_prescale to 4799, the PWM_cycle to 100, and the T to 10ms as you can see in the following image:

      0_1499035719768_mervis.png

      Changing the value of the percentage makes no diference on the light intensity.

      Can someone point me in the right direction?

      Thanks in advance

      posted in Mervis
      N
      n1lp0int3r