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

    Topics created by n1lp0int3r

    • N

      Missing Library Boxes
      Mervis • • n1lp0int3r

      4
      0
      Votes
      4
      Posts
      1707
      Views

      N

      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

    • N

      Accessing Mervis variables through Evok
      Mervis • • n1lp0int3r

      5
      0
      Votes
      5
      Posts
      1972
      Views

      N

      Ok i can see now. Thanks

    • N

      Mervis and RS485
      Mervis • • n1lp0int3r

      7
      0
      Votes
      7
      Posts
      3108
      Views

      N

      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.

    • N

      Mervis PWM connection to Meanwell driver
      Mervis • • n1lp0int3r

      6
      0
      Votes
      6
      Posts
      2439
      Views

      N

      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.