Digital Input

The first step in Cloud Logging is setting up a data source. This is done by selecting a communication protocol and defining the variables. This article shows you how to do this for communication via a digital signal, using the x500 IoT gateway’s Digital Input (DI). View the installation manual for wiring information.

Select a communication protocol

You first have to select a “communication protocol” over which you want to receive your data, which is the x500 IoT gateway’s own Digital Input in this case.

  • Go to [Devices] in the main menu, select the concerning device, open its [Services] tab, and press [Add service].
  • Name the target “x500 IoT gateway”, leave the IP adress empty, and press [Next].
  • Select your service type: [Data source].
  • Select the communication protocol “SMTP/GPIO. Press [Add].

Add variable

Once you’ve added a Data Source and selected a communication protocol, you can add the x500 IoT gateway’s Digital Input as variable. This is done in the configurator tool, specifically designed to quickly addduplicateimportexport, and remove variables.

  • Go to [Devices] in the main menu, select the concerning device, open its [Services] tab, and edit  the target’s services.
  • Select [Data source], and press [Open configurator].
  • To add a variable press [Add variable] and then [Add new variable].
  • Enter the variable name “Digital input“, data type “Boolean“, communication protocol “GPIO” and press [Add].

Temporary disconnect

After this next step, the config push, the device will temporarily disconnect to reconfigure its settings and will automatically reconnect. This may take a minute.

  • Finally, press [Push changes] in the config tab to complete the setup.

Next step

Now that you’ve added the variables, you can test if they’re configured properly.

Test variables

The test utility is used to check if all the added variables are set correctly. It shows the status of every variable and displays the variables’ latest values if everything is configured correctly. If not, it’ll show an error message.

  • In the configurator press [Run test].

A connection will now be set up to stream the data directly to your computer, using:

PortTransport protocolApplication protocol

When the connection is set up and all variables are set correctly, it should look like this:

Unexpected result?

If the test utility shows unexpected values, please check if the addresses and data types of all variables are entered correctly.
If you get no data at all, please also check that the above listed port and protocols are not being blocked by your computer’s or company’s firewall.

Next step

Now that you’ve tested the variables, you can view our “Configure data tags” guide to start logging.

Manage variables

You can view all defined variables in a list view or table view. Multiple variables can be selected by pressing the  icon on the left, or you can select all by pressing […]. These can then be removed, duplicated, or exported to a CSV file.