• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. HenryDUT

    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
    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    HenryDUT

    @HenryDUT

    0
    Reputation
    704
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    HenryDUT Unfollow Follow

    Latest posts made by HenryDUT

    • RE: Invalid slave id

      @HenryDUT said:

      Thanks for fmunhoz's recommendation.

      In MODBUS Messaging on TCP/IP Implementation Guide, it says that

      On TCP/IP, the MODBUS server is addressed using its IP address; therefore, the MODBUS Unit Identifier is useless. The value 0xFF has to be used.

      When addressing a MODBUS server connected directly to a TCP/IP network, it’s recommended not using a significant MODBUS slave address in the “Unit Identifier” field. 0xFF is recommended for the “Unit Identifier" as non-significant value.

      But 0xFF is greater than 247 (decimal), how can I assign 0xFF to the slave device address?

      Who can help me?

      posted in Modbus4J general discussion
      H
      HenryDUT
    • RE: Invalid slave id

      @mlohbihler said:

      Actually, max slave id is 240.

      really?

      Is it not assigned from 1 to 247 (decimal) ?

      posted in Modbus4J general discussion
      H
      HenryDUT
    • RE: Invalid slave id

      Thanks for fmunhoz's recommendation.

      In MODBUS Messaging on TCP/IP Implementation Guide, it says that

      On TCP/IP, the MODBUS server is addressed using its IP address; therefore, the MODBUS Unit Identifier is useless. The value 0xFF has to be used.

      When addressing a MODBUS server connected directly to a TCP/IP network, it’s recommended not using a significant MODBUS slave address in the “Unit Identifier” field. 0xFF is recommended for the “Unit Identifier" as non-significant value.

      But 0xFF is greater than 247 (decimal), how can I assign 0xFF to the slave device address?

      posted in Modbus4J general discussion
      H
      HenryDUT
    • Invalid slave id

      Hi, I want to specify the value of slave id , but when I execute the following code, I get an exception "com.serotonin.modbus4j.exception.ModbusTransportException: Invalid slave id".

      If slave id is less than 248?it will be OK.

      Is there a problem with the code? or slave id can not be greater than 247 ?

      int slave_id=255;
      ModbusRequest req = new ReadInputRegistersRequest(slave_id, 0, 5);
      ReadInputRegistersResponse rep = (ReadInputRegistersResponse) mp.send(req);

      Thanks

      posted in Modbus4J general discussion
      H
      HenryDUT
    • RE: Invalid slave id

      Hi, I want to specify the value of slave id , but when I execute the following code, I get an exception "com.serotonin.modbus4j.exception.ModbusTransportException: Invalid slave id".

      If slave id is less than 248?it will be OK.

      Is there a problem with the code? or slave id can not be greater than 247 ?

      int slave_id=255;
      ModbusRequest req = new ReadInputRegistersRequest(slave_id, 0, 5);
      ReadInputRegistersResponse rep = (ReadInputRegistersResponse) mp.send(req);

      Thanks

      posted in Modbus4J general discussion
      H
      HenryDUT