R12.1 JA-2025July15

Define Macro Variable for Spoke Device

In this case, certain data in the parsed result of the hub device can be transferred to the spoke device as its macro variables.

Under the Replicate Command section, select the spoke device and you can define a macro variable directly .


Depending on the selected neighbor source, the scope of the value bound to the macro variable that can be selected is different. For example, if the neighbor source is the device table, two types of data will be provided to you to select as look-up data: the neighbor table of the hub device to which this spoke device belongs, and the ADT variables.

The value scope of the spoke macro variable is summarized as follows.

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

The processing logic for the spoke device's macro variable varies depending on whether the selected table is same as the neighbor source's ADT table.

  • The Same Table: Directly search the value corresponding to the spoke macro variable according to the method of how to find neighbors defined in the neighbor source to organize the spoke command and perform subsequent decoding and replication.
  • The Different Tables: You need to define how to find the corresponding value for the spoke device based on whether a device key is defined in the table selected by the spoke macro variable.
    • When a device key is defined: Filter the value based on the device key.

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

In summary, if the table of the neighbor source is the same as the table selected by the spoke macro variable, you don’t need to configure the device key, otherwise, you can configure the device key separately if needed.