Class: FLSettings

FLSettings

Provides properties for configuring FLNet


Extends

Members


a1InSize :number

Gets/sets the size of the Area 1 input in the common memory map.

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

a1InStart :number

Gets/sets the start address of the Area 1 input in the common memory map.

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

a1OutSize :number

Gets/sets the size of the Area 1 output in the common memory map.

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

a1OutStart :number

Gets/sets the start address of the Area 1 output in the common memory map.

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

a2InSize :number

Gets/sets the size of the Area 2 input in the common memory map.

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

a2InStart :number

Gets/sets the start address of the Area 2 input in the common memory map.

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

a2OutSize :number

Gets/sets the size of the Area 2 output in the common memory map.

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

a2OutStart :number

Gets/sets the start address of the Area 2 output in the common memory map.

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

ip :wat.IPAddress

Gets/sets the IP address used when enabled.

Type:
Since:
  • 1.0 (WAT 1.0)

mmap :string

Gets/sets the xml description of the memory map. When anybus.Anybus#load is called, this description is used to create an object tree that can be used to directly access the attributes from JavaScript.

This is typically set using AJAX to retrieve an xml memory map file.

Type:
  • string
Since:
  • 1.0 (WAT 2.4)
Inherited From:
See:
Example
var dev = $wat.load(abType)[0];

function init(mmap)
{
   dev.settings.mmap = mmap;
   // set up the other settings here

   if (dev.load() == false)
   {
      alert("Failed to load memory map");
      return;
   }
}

// called after the page loads, for example in the body onload
function getXML()
{
   xmlhttp = new XMLHttpRequest();
   xmlhttp.open("GET", "mmap.xml", true);
   xmlhttp.onreadystatechange=function() {
      if (xmlhttp.readyState==4) {
         init(xmlhttp.responseText);
      }
   }
   xmlhttp.send("");
}

mmapFile :string

The name of a file in the file system of the uP device (e.g. /wat/mmap.xml) to read the memory map from if mmap is empty when anybus.Anybus#load is called.

It is often more convenient to use AJAX and mmap to load a memory map.

Type:
  • string
Since:
  • 1.0 (WAT 2.4)
Inherited From:
See:

offlineAction :number|null

Gets/sets the memory map policy when offline.

Type:
  • number | null
Since:
  • 1.0 (WAT 2.4)
Inherited From:
See:

OfflineAction :object

Available options for offlineAction.

Type:
  • object
Properties:
Name Type Description
Zero number

Clear all of the memory map to zero when offline (0)

Freeze number

Freeze the memory map in the current state when offline (1)

Set number

Set all bits in the memory map to one when offline (2)

Since:
  • 1.0 (WAT 2.4)
Inherited From:
See:

Events


a1InSizeChanged

Indicates that the a1InSize property has changed.

Since:
  • 1.8 (WAT 2.4)

a1InStartChanged

Indicates that the a1InStart property has changed.

Since:
  • 1.8 (WAT 2.4)

a1OutSizeChanged

Indicates that the a1OutSize property has changed.

Since:
  • 1.8 (WAT 2.4)

a1OutStartChanged

Indicates that the a1OutStart property has changed.

Since:
  • 1.8 (WAT 2.4)

a2InSizeChanged

Indicates that the a2InSize property has changed.

Since:
  • 1.8 (WAT 2.4)

a2InStartChanged

Indicates that the a2InStart property has changed.

Since:
  • 1.8 (WAT 2.4)

a2OutSizeChanged

Indicates that the a2OutSize property has changed.

Since:
  • 1.8 (WAT 2.4)

a2OutStartChanged

Indicates that the a2OutStart property has changed.

Since:
  • 1.8 (WAT 2.4)

mmapChanged

Indicates that the mmap property has changed.

Since:
  • 1.0 (WAT 2.4)
Inherited From:

mmapFileChanged

Indicates that the mmapFile property has changed.

Since:
  • 1.0 (WAT 2.4)
Inherited From:

offlineActionChanged

Indicates that the offlineAction property has changed.

Since:
  • 1.0 (WAT 2.4)
Inherited From: