Package net.wimpi.modbusme.io

Examples of net.wimpi.modbusme.io.ModbusTCPTransaction.execute()


            .getDiscreteStatus(0);

        //write only if differ
        if (new_in != last_out) {
          do_req.setCoil(new_in);
          do_trans.execute();
          last_out = new_in;
          if (Modbus.debug) System.out.println("Updated coil with state from DI.");
        }
      } while (true);
View Full Code Here



      //5. Execute the transaction repeat times
      int k = 0;
      do {
        trans.execute();

        res = (ReadInputDiscretesResponse) trans.getResponse();
        //ReadCoilsResponse res = (ReadCoilsResponse) trans.getResponse();

        if (Modbus.debug) System.out.println("Response: " + res.getHexMessage() );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.