---
title: "PEA 208"
canonical: "https://docs.cuesystem.com/space/CVCHELP/523501593/PEA%20208"
format: markdown
---
> Macro (toc)

---

# Properties

- **UnitID (serial number)** of the module, defaults to 1.
- **Interface address** 0-15 address of the module, defaults to 1. The addresses of both channels of this module are based on this value.
- **Bank** 0-9 module group, defaults to 1.
- **Filter** 0-180 msec, defaults to 40 msec. Minimum time of pressing the button for the press to be valid.
- **Long press** 0-900 msec, defaults to 400 msec. If the time of pressing the button is longer than this value, the press is interpreted as a long press.

***The following parameters can be set for each channel independently:**** *

- **Function mode** selection for control dimmers by its buttons, defaults to dimmer.
  - **no action** - buttons are disabled.
  - **toggle** - switch outputs between maximum and minimum values.
  - **solid state** - if no button is pressed, the output has the minimum value. If one button is pressed, the output has the value entered in the parameter Intermediate. If both buttons are pressed, the output has the maximum value.
  - **dimmer** – a short press of the UP/DOWN button changes the output value to maximum/minimum at speed set in the parameter Short press fade. A long press dims the output up/down at a speed set in the parameter Long press fade. A release of the button makes it stop at the currently reached value.
  - **fluorescent** – a short press of the UP/DOWN button changes the output value to maximum/minimum at speed set in the parameter Short press fade. A long press dims the output up/down at a speed set in the parameter Long press fade. A release of the button makes it stop at the currently reached value. If button down is held, the value does not go all the way to 0% but stops at 5 %. For a total switch-off, use repeated quick press.
- **Short press fade** - dimming speed in case of a normal button press, 0-99.9 sec, defaults to 5 sec.
- **Long press fade** - dimming speed in case of a long time button press, 0-99.9 sec, defaults to 5 sec.
- **Minimum** - minimum output value, 0-99 %, defaults to 0 %.
- **Maximum** - maximum output value, 0-99 %, defaults to 99 %.
- **Intermediate** - intermediate output value, 0-99 % for solid state mode, defaults to 50 %.

# ChangeVoltage

This function increases (voltsdifference is positive) or decreases (voltsdifference is negative) voltage on an analog channel within ramptime. The new_voltage := old_voltage + voltsdifference. 

#### Syntax 

```visualbasic
Function ChangeVoltage( 
  voltsdifference As double, 
  Optional ramptime As Time := :0)
```

#### Parameters 

voltsdifference 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is the volts difference. 

ramptime 

[<u>Time</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Time) Optional, defaults to :0. It is the time of the ramp. If it is :0 by default, the voltage is changed immediately. 

# GetVoltage

This function gets voltage on a channel. 

#### Syntax 

```visualbasic
Function GetVoltage() As Double
```

#### Return value 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is voltage. 

# IsDownClosed

The function returns if an input channel Down is closed or opened. 

#### Syntax 

```visualbasic
Function IsDownClosed() As Boolean
```

#### Return value 

[<u>Boolean</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Boolean) It is True if the input channel Down is closed, False otherwise. 

# IsUpClosed

The function returns if an input channel Up is closed or opened. 

#### Syntax 

```visualbasic
Function IsUpClosed() As Boolean
```

#### Return value 

[<u>Boolean</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Boolean) It is True if the input channel Up is closed, False otherwise. 

# SetVoltage

This function sets the voltage on an analog channel within ramptime. 

#### Syntax 

```visualbasic
Function SetVoltage( 
  volts As Double, 
Optional ramptime As Time := :0)
```

#### Parameters 

volts 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is the new voltage. 

ramptime 

[<u>Time</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Time) Optional, defaults to :0. It is the time of the ramp. If it is :0 by default, the voltage is set immediately. 

# StopAtCurrentLevel

This function stops voltage change on current voltage. 

#### Syntax 

```visualbasic
Function StopAtCurrentLevel()
```