Advertisement
nodeco

Nilan communication bringup - 2016/12/11

Dec 11th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1.  
  2. c:\>py nilan.py
  3. TESTING Nilan Connection
  4. __main__.Nilan<id=0x28f5170, address=30, mode=rtu, close_port_after_each_call=False, precalculate_read_size=True, debug=True, serial=Serial<id=0x297b250, open=True>(port='COM3', baudrate=19200, bytesize=8, parity='E', stopbits=1, timeout=0.1, xonxoff=False, rtscts=False, dsrdtr=False)>
  5.  
  6. MinimalModbus debug mode. Writing to instrument (expecting 7 bytes back): '\x1e\x04\x00\xd3\x00\x01\xc2\\' (1E 04 00 D3 00 01 C2 5C)
  7. MinimalModbus debug mode. No sleep required before write. Time since previous read: 1481470894116.0 ms, minimum silent period: 2.01 ms.
  8. MinimalModbus debug mode. Response from instrument: '\x1e\x04\x02\x15\x8e\xa2\x06' (1E 04 02 15 8E A2 06) (7 bytes), roundtrip time: 27.0 ms. Timeout setting: 100.0 ms.
  9.  
  10. t11: 55.18
  11.  
  12. MinimalModbus debug mode. Writing to instrument (expecting 7 bytes back): '\x1e\x03\x03\xeb\x00\x01\xf6\x15' (1E 03 03 EB 00 01 F6 15)
  13. MinimalModbus debug mode. Sleeping for 2.0 ms. Minimum silent period: 2.0 ms, time since read: 0.0 ms.
  14. MinimalModbus debug mode. Response from instrument: '\x1e\x03\x02\x00\x02\xacG' (1E 03 02 00 02 AC 47) (7 bytes), roundtrip time: 28.0 ms. Timeout setting: 100.0 ms.
  15.  
  16. userVentSet: 2
  17.  
  18. MinimalModbus debug mode. Writing to instrument (expecting 8 bytes back): '\x1e\x10\x03\xeb\x00\x01\x02\x00\x02\x8f\xba' (1E 10 03 EB 00 01 02 00 02 8F BA)
  19. MinimalModbus debug mode. Sleeping for 1.0 ms. Minimum silent period: 2.0 ms, time since read: 1.0 ms.
  20. MinimalModbus debug mode. Response from instrument: '\x1e\x10\x03\xeb\x00\x01s\xd6' (1E 10 03 EB 00 01 73 D6) (8 bytes), roundtrip time: 30.0 ms. Timeout setting: 100.0 ms.
  21.  
  22.  
  23. MinimalModbus debug mode. Writing to instrument (expecting 7 bytes back): '\x1e\x03\x03\xeb\x00\x01\xf6\x15' (1E 03 03 EB 00 01 F6 15)
  24. MinimalModbus debug mode. Sleeping for 1.0 ms. Minimum silent period: 2.0 ms, time since read: 1.0 ms.
  25. MinimalModbus debug mode. Response from instrument: '\x1e\x03\x02\x00\x02\xacG' (1E 03 02 00 02 AC 47) (7 bytes), roundtrip time: 13.0 ms. Timeout setting: 100.0 ms.
  26.  
  27. userVentSet: 2
  28. DONE!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement