• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. amer jamil

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 14
    • Best 0
    • Controversial 0
    • Groups 0

    amer jamil

    @amer jamil

    0
    Reputation
    841
    Profile views
    14
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    amer jamil Unfollow Follow

    Latest posts made by amer jamil

    • RE: Modbus4J Modbus RTU master

      @jeremyh

      data15minute.png

      Is it correct ? Do i need to sum all the KW and I will get the total consumption for an hour ?

      (1/4 * 4.8) + (1/4 * 4.9) + (1/4 * 4.8) + (1/4 * 4.8) = 4.825 KWH

      posted in Modbus4J general discussion
      amer jamilA
      amer jamil
    • RE: Modbus4J Modbus RTU master

      @jeremyh below is the sample of my database.

      data.png

      could you teach me how to calculate.

      posted in Modbus4J general discussion
      amer jamilA
      amer jamil
    • RE: Modbus4J Modbus RTU master

      @jeremyh Hello Jeremy. Want to ask you one more question. I am not from the Electric background. So, I find a difficulty in calculating the power consumption of the meter. For you information, my system going to add the data in the database for every one minute. How am i going to calculate the power consumption for the device for a day (24 hours). I have Kw value for every minute.

      Do I have to add the Kw value for every minute up to the whole day ?

      Thank you.

      posted in Modbus4J general discussion
      amer jamilA
      amer jamil
    • RE: Modbus4J Modbus RTU master

      @jeremyh yaa, the data will be insert into the database every minute.

      posted in Modbus4J general discussion
      amer jamilA
      amer jamil
    • RE: Modbus4J Modbus RTU master

      @jeremyh so what should I do next is, minus 1 from all the register that I want since it start count from 0 right ? Thank you so much again. Thank you for helping me around since the beginning.

      posted in Modbus4J general discussion
      amer jamilA
      amer jamil
    • RE: Modbus4J Modbus RTU master

      @jeremyh Thank you so much jeremy. You really save my life. I try 3109 in my java code, and it show the correct value that I want. Thank you so much for helping me out. Can you explain more on how you get the 3109 value ? Why in the documentation it say that 3110 ?

      God bless you Jeremy..

      posted in Modbus4J general discussion
      amer jamilA
      amer jamil
    • RE: Modbus4J Modbus RTU master

      @jeremyh actually some of my senior said that I suppose to add 40001 from its original register due to modbus protocol. I want to read the data from the register 3110 actually. In the documentation, the 3110 refer to the Frequency (Hz). That is my I get the 43111 register.

      But I also try the 43110 and 43109 as you ask me to, but both the result is value: -4.5918E-41

      posted in Modbus4J general discussion
      amer jamilA
      amer jamil
    • RE: Modbus4J Modbus RTU master

      @jeremyh For me, it interface is not a problem. The problem right now is that, I am not able to read the data from the power meter. I also have done the TCP master. Below is the latest code that I try

      	ModbusFactory factory = new ModbusFactory();
      	IpParameters params = new IpParameters();
      
      	params.setHost("10.168.168.197");
      	params.setPort(502);
      	params.setEncapsulated(false);
      
      	ModbusMaster master = factory.createTcpMaster(params, true);
      	// master.setRetries(4);
      	master.setTimeout(2000);
      	master.setRetries(0);
      
      	long start = System.currentTimeMillis();
      	try {
      		master.init();
      		
      		ModbusLocator locator = new ModbusLocator(1, RegisterRange.HOLDING_REGISTER, 43111, DataType.TWO_BYTE_BCD);
      		System.out.println("value: "+master.getValue(locator));
      	}
      	finally {
      		master.destroy();
      	}
      
      	System.out.println("Took: " + (System.currentTimeMillis() - start) + "ms");
      }
      

      and the output of the coding is :
      value: 8000
      Took: 78ms

      while there is no 8000 value at the power meter. Thank you.

      posted in Modbus4J general discussion
      amer jamilA
      amer jamil
    • RE: Modbus4J Modbus RTU master

      @jeremyh Hi Jeremy. My goal is to read the data in the Schneider Power Login meter. The value going to be store in the database. My system going to show the meter value. Its like the real time data. The system going to take the meter reading every 5 second and show the value in the system. My system using the Java Language and Spring framework.

      Below is the example of my system interface.
      system.png

      posted in Modbus4J general discussion
      amer jamilA
      amer jamil
    • RE: Modbus4J Modbus RTU master

      @hussam I downloaded the mango 2.5.2. But it just like another software that you can use to interact with the electrical device. How should I integrate the mango with my system ?

      posted in Modbus4J general discussion
      amer jamilA
      amer jamil