---
title: Creating a Variable
description: Create a variable on a ControlCom Connect device so the Edge Server has a Topic Property to publish values into.
source: https://documentation.controlcomtech.com/build/edge-server/creating-a-variable
---

# Creating a Variable

Variables are the data points on a ControlCom Connect device. Before you can wire an Edge Server client (Modbus, BACnet, OPC UA, etc.) to a register, the variable that will receive its value must already exist on the device. This guide walks through creating one.

> **Workflow Stage: Collect**

## Prerequisites

* This guide requires the ControlCom Edge Server to be onboarded. See our [Onboarding Guide for the Edge Server](https://documentation.controlcomtech.com/build/edge-server/getting-started) to get started.

## Steps

1. Navigate to Administration > Devices
2. Select an onboarded device
3. In the device page, click the Variables tab
4. Click the "+ New Variable" button
5. Enter the Variable Name, Description, Topic Property path
6. Select the Type of the data with options boolean, number, or string.
7. Enable the Store Data toggle if wanting to view historical values through [Visualization](https://documentation.controlcomtech.com/platform/visualize)

* **Important Note** If Store Data is disabled, it will still allow live data to come into the system for viewing, but the system will not save the data and you will not be able to visualize it

8. Click the "Add Variable" button

![Devices Page](https://documentation.controlcomtech.com/images/devices/devices-screen.png)

*Devices page in ControlCom Connect*

![Device Variables Menu](https://documentation.controlcomtech.com/images/devices/device-var-screen.png)

*Variables Menu for a Device in ControlCom Connect*

![Add new device variable](https://documentation.controlcomtech.com/images/devices/add-new-variable.png)

*Add new variable dialog in ControlCom Connect*

## Next Steps

Once a variable exists on the device, you can point a client at it. See [Reading Modbus Data](https://documentation.controlcomtech.com/build/edge-server/clients/modbus) for an end-to-end example that uses the variable you just created as the Topic Property Path for a Modbus tag.
