---
title: "PED 108, PET 102, PET 105"
canonical: "https://docs.cuesystem.com/space/CVCHELP/524353884/PED%20108%2C%20PET%20102%2C%20PET%20105"
format: markdown
---
> Macro (toc)

---

# Properties

- **UnitID (serial number)** of the module, defaults to 1.
- **Interface address** 0-31 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 dimmer 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.
- **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 %.

# ChangeLevel

This function increases the level (leveldifference is positive) or decreases (leveldifference is negative) a channel within ramptime. The new_level := old_level + leveldifference. 

#### Syntax 

```visualbasic
Function ChangeLevel( 
  leveldifference As double, 
  Optional ramptime As Time := :0)
```

#### Parameters 

leveldifference 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is the level difference. The value is from -100.0 to 100.0. 

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 level is changed immediately. 

# GetLevel

This function gets channel level. 

#### Syntax 

```visualbasic
Function GetLevel() As Double
```

#### Return value 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is the level. The value is from 0.0 to 100.0. 

# 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. 

# SetLevel

This function sets a level on a channel within ramptime. 

#### Syntax 

```visualbasic
Function SetLevel( 
  level As Double, 
  Optional ramptime As Time := :0)
```

#### Parameters 

level 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is the new level. The value is from 0.0 to 100.0. 

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 level is set immediately. 

# StopAtCurrentLevel

This function stops level change on the current level. 

#### Syntax 

```visualbasic
Function StopAtCurrentLevel()
```