Huber Pilot ONE Operation Manual
Hide thumbs Also See for Pilot ONE:

Advertisement

Operation Manual

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Pilot ONE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Huber Pilot ONE

  • Page 1 Operation Manual...
  • Page 3 OPERATION MANUAL pySoftcheck pySoftcheck.01.20171002.2 Liability for errors and misprints excluded. pySoftcheck...
  • Page 4 OPERATION MANUAL pySoftcheck Liability for errors and misprints excluded. pySoftcheck.01.20171002.2...
  • Page 5: Table Of Contents

    OPERATION MANUAL Table of contents Installation Windows....................6 Linux...................... 6 Application................6 Command reference............7 Com object.................... 7 3.1.1 send........................7 3.1.2 send_bytes......................7 3.1.3 check........................7 3.1.4 check_bytes......................8 3.1.5 check_regex......................8 3.1.6 print_answer.......................8 3.1.7 print_answer_bytes....................8 3.1.8 recv........................9 3.1.9 recv_bytes......................9 3.1.10 open........................9 3.1.11 set_timeout......................9 3.1.12 close........................10 Examples................11 Example 1....................
  • Page 6: Installation

    Before you can install pySoftcheck, you must install the “Huber Runtime” package. You can download it from our homepage. This package installs all the dependencies such as Python and pySerial. PySoftcheck can be installed once the installation of “Huber Runtime” is complete. To do so, please run the appropriate installer.
  • Page 7: Command Reference

    The actual scripting language is Python. Additional commands have been added to the Python library to facilitate communication with the Huber thermostats and to make these independent from the in- terface. This chapter describes these additional commands and their function.
  • Page 8: Check_Bytes

    OPERATION MANUAL  check_bytes command receives a bytearray from the selected interface and verifies check_bytes(expected) it against the bytearray contained in expected. If these two do not match, an error message is gen- erated and the script currently running is terminated. Note: This should only be used for ModbusTCP.
  • Page 9: Recv

    OPERATION MANUAL  recv reads a string from the selected interface. The function reads data until one of the following recv end conditions occur: An End of Line is received. There was a Timeout. More than 256 characters were received via the serial interface without an End of Line. In case of one of the last two conditions, an error message is generated and the script terminates.
  • Page 10: Close

    OPERATION MANUAL Sets a timeout of 2. 5 seconds. com.set_timeout(2.5) Sets a timeout of 1 second. com.set_timeout(1)  close closes the interface used for communication and releases it to the system. close() Examples: The interface is closed and made available to the system again. com.close() pySoftcheck Liability for errors and misprints excluded.
  • Page 11: Examples

    OPERATION MANUAL Examples The following example constantly queries the internal temperature and outputs the response via the serial interface or checks the response in various ways. 4.1 Example 1  Program from softcheck.logic import Com import time def script(): com = Com("serial", 2.5) #timeout should be specified in the constructor com.open(0, 9600) #open COM1 with 9600 (address not defined) # com.open("/dev/ttyACM0", 9600) #open usb port # com.open("192.168.0.126", 8101) #open ethernet...
  • Page 12 OPERATION MANUAL 2: Includes the Python library into the time functions. This sample requires it for the Sleep function at the end of the script. 4: This line defines a function that contains the sequence of the test program. The name is freely se- lectable.
  • Page 13: Api

    OPERATION MANUAL 5.1 Com Object (working with generic Command strings) Namespace: from softcheck.logic import Com To construct a new Com class - which is used for communication with the device - the following arguments are needed: Ethernet: Com("ethernet", TIMEOUT) ModbusTCP: Com(“modbustcp”, TIMEOUT) Serial interface: Com("serial", TIMEOUT)
  • Page 14: Pb Object (Pb Commands)

    OPERATION MANUAL Recveis the answer from the interface as a bytearray This command is helpful when the answer from the interface should be processed fur- ther. No check takes place. Example: ba = com.recv_bytes() get_runtime: Returns the runtime of the last command that has been received. The runtime is the time of a command send till echo (if there is an echo).
  • Page 15: Ppcom Object (Pp Commands)

    OPERATION MANUAL The first argument is the value of the command to check, the second the minimum and the third the maximum value. Return value True if check is o.k. pb.check_range(30, 0, 32767) send: sends a pb command with a certain value The first argument is the PB command to send, the second one the value.
  • Page 16: Laicom Object (Lai Commands)

    OPERATION MANUAL As 2nd parameter the verbosity level can be given. "1" means that the program ex- plains what goes wrong in case of an error. 3rd parameter: When set to True (default), the program throws an exception in case of an error, otherwise the program goes on.
  • Page 17 The first argument is the command to check, the second the value of the LAI command expected. Return value True if check is o.k. lai.send("V") lai.check("Pilot ONE-Trainee V1.0") check_regex: checks if the value of a LAI command is like expected The first argument is the command to check, the second the regular expression of the LAI command expected.
  • Page 18: Mbcom Object (Modbus Commands)

    = Com("serial", 2.5, 3) com.open(0, 9600) #open COM1 with 9600 (address not defined) lai = LaiCom(com, 1) lai.send("V") lai.check("Pilot ONE-Trainee V1.0") lai.send("G", "C0****") # O: off, 0: no Alarm, tttt: setpoint, iiii: internal temp., dddd: external temp. lai.check_regex(r"[OC]0[0-9A-F]{4}[0-9A-F]{4}[0-9A-F]{4}") string = lai.get_last_value() setpoint = 2000 lai.check_hex(string[2:6], setpoint)
  • Page 19: Mbfunc Object

    Example: mb_command = MbTCPCommand(bytearray([0x41]), 0xFF)  MbFunc object Namespace: from softcheck.mb_commands import MbFunc Class contains static methods specially for the huber defined modbus functions 5.6 ComStore Object (storing information from a device in a file) Namespace: from softcheck.logic import ComStore With this object data traces can be stored in a file.
  • Page 20 OPERATION MANUAL pySoftcheck Liability for errors and misprints excluded. pySoftcheck.01.20151106.0...

Table of Contents

Save PDF