# devices.tempco:Tempco9300


Instrument class for the Tempco 9300 temperature controller.


Usage

``` python
devices.tempco:Tempco9300(
    portname,
    slaveaddress,
    baudrate=38400,
)
```


connection is made via a RS485 serial line which uses the Modbus RTU protocol.


## Attributes

| Name | Description |
|----|----|
| [control_mode](#control_mode) | Get the control mode. |
| [current_setpoint](#current_setpoint) | Get the current setpoint. |
| [derivative_time1](#derivative_time1) | Get the derivative time 1. |
| [derivative_time2](#derivative_time2) | Get the derivative time 2. |
| [integral_time1](#integral_time1) | Get the integral time 1. |
| [integral_time2](#integral_time2) | Get the integral time 2. |
| [manual_power](#manual_power) | Get the manual power. |
| [offset](#offset) | Get the offset. |
| [power](#power) | Get the current power output. |
| [power_limit](#power_limit) | Get the power limit. |
| [proportional_band1](#proportional_band1) | Get the proportional band 1. |
| [proportional_band2](#proportional_band2) | Get the proportional band 2. |
| [ramp_rate](#ramp_rate) | Get the ramp rate. |
| [setpoint1](#setpoint1) | Get the first setpoint. |
| [target_setpoint](#target_setpoint) | Get the target setpoint. |
| [temperature](#temperature) | Get the current temperature. |

------------------------------------------------------------------------


### control_mode


Get the control mode.


`control_mode: TempcoMode`


------------------------------------------------------------------------


### current_setpoint


Get the current setpoint.


`current_setpoint: float`


------------------------------------------------------------------------


### derivative_time1


Get the derivative time 1.


`derivative_time1: float`


------------------------------------------------------------------------


### derivative_time2


Get the derivative time 2.


`derivative_time2: float`


------------------------------------------------------------------------


### integral_time1


Get the integral time 1.


`integral_time1: int`


------------------------------------------------------------------------


### integral_time2


Get the integral time 2.


`integral_time2: int`


------------------------------------------------------------------------


### manual_power


Get the manual power.


`manual_power: float`


------------------------------------------------------------------------


### offset


Get the offset.


`offset: float`


------------------------------------------------------------------------


### power


Get the current power output.


`power: float`


------------------------------------------------------------------------


### power_limit


Get the power limit.


`power_limit: int`


------------------------------------------------------------------------


### proportional_band1


Get the proportional band 1.


`proportional_band1: float`


------------------------------------------------------------------------


### proportional_band2


Get the proportional band 2.


`proportional_band2: float`


------------------------------------------------------------------------


### ramp_rate


Get the ramp rate.


`ramp_rate: float`


------------------------------------------------------------------------


### setpoint1


Get the first setpoint.


`setpoint1: float`


------------------------------------------------------------------------


### target_setpoint


Get the target setpoint.


`target_setpoint: float`


------------------------------------------------------------------------


### temperature


Get the current temperature.


`temperature: float`


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Initialize Tempco 9300 temperature controller. |
| [int2value()](#int2value) | Convert integer representation to floating-point value. |
| [value2int()](#value2int) | Convert floating-point value to integer representation. |

------------------------------------------------------------------------


### \_\_init\_\_()


Initialize Tempco 9300 temperature controller.


Usage

``` python
__init__(
    portname,
    slaveaddress,
    baudrate=38400,
)
```


#### Parameters


`portname: str`  
Name of the serial port to connect to

`slaveaddress: int`  
Modbus slave address of the device

`baudrate: int = ``38400`  
Serial communication speed in baud. Default is 38400


------------------------------------------------------------------------


### int2value()


Convert integer representation to floating-point value.


Usage

``` python
int2value(value)
```


#### Parameters


`value: int`  
Integer representation of the floating-point value.


#### Returns


`float`  
Floating-point representation of the value.


------------------------------------------------------------------------


### value2int()


Convert floating-point value to integer representation.


Usage

``` python
value2int(temp)
```


#### Parameters


`temp: float`  
Floating-point value.


#### Returns


`int`  
Integer representation of the value.
