R12.1-2025July30

Define Macro Variable for Spoke Device

In this case, certain data parsed from the hub device can be transferred to the spoke device as macro variables. To define a macro variable:

  1. Select the spoke device located under the Replicate Command section.
  2. Select the neighbor source. Depending on the selection, the scope of the value bound to the macro variable will be different.

    For example, if the neighbor source is the device table, two types of data will be provided for lookup data selection:

    1. Variable in Neighbor Table: The variables in the neighbor table of the hub device to which this spoke device belongs.
    2. ADT Variable: The ADT variable in the domain.

The processing logic for the macro variable depends on whether the selected table is the same as the neighbor source’s ADT table or a different one.

  • Same Table: Directly search the spoke macro variable value as defined in the neighbor source. And organize the spoke command to perform subsequent decoding and replication.
  • Different Table: Define how to retrieve the corresponding value for the spoke device based on whether a device key is present in the selected table.
    • When a device key is defined, it will filter the value using the device key.

    • When a device key is not defined: Each value will be decoded and replicated.

In summary, if the neighbor source table is the same as the table selected by the spoke macro variable, configuring a device key is not required. Otherwise, you can configure the device key separately, if needed.