Class: Anybus

Anybus

Provides methods and attributes for configuring anybus fieldbusses

Members


enabled :bool

Gets/sets whether the device is enabled. The other settings (such as the memory map) must be configured prior to enabling. Changes made after enabling will not take effect until the device is disabled and then re-enabled.

Type:
  • bool
Since:
  • 1.0 (WAT 2.4)
See:

<readonly> online :bool

Gets the online status of the device. When enabled, the device will be considered 'online' when it has been accepted into the network and is reading from and writing in a fieldbus-specific way.

Changes to online are notified using onlineChanged.

When the device goes offline, the behavior of the memory map is defined in offlineAction.

Type:
  • bool
Since:
  • 1.0 (WAT 2.4)
See:

<readonly> settings :anybus.AnybusSettings

Gets an object that can be used to read and write the device settings. The values in this object must be configured prior to enabling.

Type:
Since:
  • 1.0 (WAT 2.4)
See:

Methods


dump()

Dumps input and output buffers to the trace log. Useful for debugging, when the trace log is being forwarded to a log server.

Since:
  • 1.0 (WAT 2.4)

load()

Loads the memory map that has been set using mmap or mmapFile and creates an object tree to access the defined instances and attributes.

Since:
  • 1.0 (WAT 2.4)

Events


enabledChanged

Indicates that enabled has changed. Does not indicate if the device has successfully joined a network. Use onlineChanged for that.

Parameters:
Name Type Description
enabled bool
Since:
  • 1.0 (WAT 2.4)

onlineChanged

Indicates that online has changed.

Parameters:
Name Type Description
online bool

New state of online

Since:
  • 1.0 (WAT 2.4)