Skip to content

Weidmüller u-OS Data Hub

The Weidmüller connector enables bidirectional data exchange between your LogicCloud runtime and the Weidmüller u-OS Data Hub. You can publish PLC variables to the hub (provider) and subscribe to hub variables (consumer).

Before creating a Weidmüller connection, you need:

  1. A Weidmüller u-OS device with the Data Hub enabled
  2. OAuth2 client credentials configured in the u-OS Control Center (Identity & access → Clients)
  3. The exact client name as shown in Control Center
  1. In your project, navigate to the Runtimes section
  2. Select your runtime and expand Connections
  3. Click Add connection and select Weidmüller
  4. Fill in the connection details:
FieldDescription
NameA descriptive name for the connection
Client IDThe OAuth2 client ID from u-OS Control Center
Client NameThe exact client name from u-OS Control Center
Client SecretThe OAuth2 client secret
Token URLThe OAuth2 token endpoint (usually auto-detected)
  1. Click Save to create the connection

Providers publish PLC runtime variables to the u-OS Data Hub, making them available to other systems.

  1. Right-click the connection and select Add Provider
  2. Configure the provider:
FieldDescription
NameA descriptive name for the provider
Provider IDThe hub provider identifier (lowercase letters, digits, underscores only)
FolderOptional prefix for variable addresses (dot-separated)
  1. Click Save

The Provider ID must follow the u-OS naming grammar:

  • Lowercase letters (a-z), digits (0-9), and underscores (_) only
  • Must start with a letter
  • Maximum 63 characters
  • No dots, dashes, spaces, or uppercase letters

Valid: plc, weather_station, line1_sensors Invalid: PLC, plc-1, plc.line1, 1plc

Consumers subscribe to u-OS Data Hub variables and write them to PLC runtime variables.

  1. Right-click the connection and select Add Consumer
  2. Configure the consumer (same fields as provider)
  3. Click Save

Mappings connect PLC variables to u-OS Data Hub variables.

  1. Select the provider or consumer
  2. Click Add Mapping
  3. Configure each mapping:
FieldDescription
Variable NameThe PLC runtime variable
AddressThe hub variable address (dot-separated path)
TypeData type: Bool, Int, Float64, String, etc.
ProviderOptional: override the endpoint’s provider ID for this mapping
Quality VariableOptional: PLC variable for quality metadata
Timestamp VariableOptional: PLC variable for timestamp metadata

The hub variable address uses dot-separated segments:

Valid: temperature, line1.temp1, sensors.out.temp1 Invalid: 1temp, temp-1, temp/out

When you set a Folder on the provider/consumer, it is automatically prepended to each mapping’s address:

FolderMapping AddressEffective Address
sensors.outtemp1sensors.out.temp1
plc.valuestemperatureplc.values.temperature
(empty)line1.sp1line1.sp1

This allows organizing variables hierarchically without repeating the prefix in every mapping.

TypeDescription
BoolBoolean (true/false)
Int32-bit signed integer
Int6464-bit signed integer
Float32Single-precision floating point
Float64Double-precision floating point
StringUTF-8 text

By default, all mappings in a provider/consumer use the endpoint’s Provider ID. You can override this per-mapping to publish/subscribe to a different hub provider:

  1. In the mapping row, set the Provider field to a different provider ID
  2. Leave it empty to inherit from the endpoint

This allows a single consumer to subscribe to variables from multiple hub providers.

Cause: The Client Name doesn’t match exactly what’s in u-OS Control Center.

Solution:

  1. Open u-OS Control Center → Identity & access → Clients
  2. Copy the exact client name (case-sensitive)
  3. Update the connection in LogicCloud

”providerId is not a valid hub provider name”

Section titled “”providerId is not a valid hub provider name””

Cause: The Provider ID contains invalid characters.

Solution: Use only lowercase letters, digits, and underscores. Must start with a letter.

Possible causes:

  • Provider not registered (check edge device logs)
  • Address doesn’t match the VariableName grammar
  • OAuth2 token expired or invalid

Solution:

  1. Check the edge device logs for registration errors
  2. Verify the address uses only valid characters (letters, digits, underscores, dots)
  3. Verify OAuth2 credentials are correct

Cause: Mappings weren’t saved correctly.

Solution: Re-open the provider/consumer, verify mappings are listed, and save again.