Eds

Eds

A CANopen Electronic Data Sheet.

This class provides methods for loading and saving CANopen EDS v4.0 files.

Constructor

new Eds(info)

Source:
See:
  • CiA306 "Electronic data sheet specification for CANopen"
Parameters:
Name Type Description
info object

file info.

Properties
Name Type Description
fileName string

file name.

fileVersion string

file version.

fileRevision string

file revision.

description string

What the file is for.

creationDate Date

When the file was created.

createdBy string

Who created the file.

vendorName string

The device vendor name.

vendorNumber number

the device vendor number.

productName string

the device product name.

productNumber number

the device product number.

revisionNumber number

the device revision number.

orderCode string

the device order code.

baudRates Array.<number>

supported buadrates

lssSupported boolean

true if LSS is supported.

Members

baudRates :Array.<number>

Description:
  • Supported baud rates.

Source:

Supported baud rates.

Type:
  • Array.<number>

createdBy :string

Description:
  • Name or description of the file creator (max 245 characters).

Source:

Name or description of the file creator (max 245 characters).

Type:
  • string

creationDate :Date

Description:
  • File creation time.

Source:

File creation time.

Type:
  • Date

dataObjects :object

Description:
  • Constructs and returns the Eds DataObjects keyed by decimal string. This is provided to support old tools. For new code use the new Eds iterator methods (keyed by hex string) instead.

Source:
Deprecated:

Constructs and returns the Eds DataObjects keyed by decimal string. This is provided to support old tools. For new code use the new Eds iterator methods (keyed by hex string) instead.

Type:
  • object

description :string

Description:
  • File description.

Source:

File description.

Type:
  • string

dynamicChannelsSupported :boolean

Description:
  • Indicates the facility of dynamic variable generation (not supported).

Source:
See:
  • CiA302

Indicates the facility of dynamic variable generation (not supported).

Type:
  • boolean

fileName :string

Description:
  • File name.

Source:

File name.

Type:
  • string

fileRevision :number

Description:
  • File revision (8-bit unsigned integer).

Source:

File revision (8-bit unsigned integer).

Type:
  • number

fileVersion :number

Description:
  • File version (8-bit unsigned integer).

Source:

File version (8-bit unsigned integer).

Type:
  • number

granularity :number

Description:
  • Provides the granularity allowed for the mapping on this device - most devices support a granularity of 8. (8-bit integer, max 64).

Source:

Provides the granularity allowed for the mapping on this device - most devices support a granularity of 8. (8-bit integer, max 64).

Type:
  • number

groupMessaging :boolean

Description:
  • Indicates the facility of multiplexed PDOs (not supported).

Source:
See:
  • CiA301

Indicates the facility of multiplexed PDOs (not supported).

Type:
  • boolean

lssSupported :boolean

Description:
  • Indicates if LSS functionality is supported.

Source:

Indicates if LSS functionality is supported.

Type:
  • boolean

modificationDate :Date

Description:
  • Time of the last modification.

Source:

Time of the last modification.

Type:
  • Date

modifiedBy :string

Description:
  • Name or description of the last modifier (max 244 characters).

Source:

Name or description of the last modifier (max 244 characters).

Type:
  • string

nrOfRXPDO :number

Description:
  • The number of supported receive PDOs (16-bit unsigned integer).

Source:

The number of supported receive PDOs (16-bit unsigned integer).

Type:
  • number

nrOfTXPDO :number

Description:
  • The number of supported transmit PDOs (16-bit unsigned integer).

Source:

The number of supported transmit PDOs (16-bit unsigned integer).

Type:
  • number

orderCode :string

Description:
  • Product order code (max 245 characters).

Source:

Product order code (max 245 characters).

Type:
  • string

productName :string

Description:
  • Product name (max 243 characters).

Source:

Product name (max 243 characters).

Type:
  • string

productNumber :number

Description:
  • Product code (32-bit unsigned integer).

Source:

Product code (32-bit unsigned integer).

Type:
  • number

revisionNumber :number

Description:
  • Revision number (32-bit unsigned integer).

Source:

Revision number (32-bit unsigned integer).

Type:
  • number

simpleBootUpMaster :boolean

Description:
  • Indicates simple boot-up master functionality (not supported).

Source:

Indicates simple boot-up master functionality (not supported).

Type:
  • boolean

simpleBootUpSlave :boolean

Description:
  • Indicates simple boot-up slave functionality (not supported).

Source:

Indicates simple boot-up slave functionality (not supported).

Type:
  • boolean

vendorName :string

Description:
  • Vendor name (max 244 characters).

Source:

Vendor name (max 244 characters).

Type:
  • string

vendorNumber :number

Description:
  • Unique vendor ID (32-bit unsigned integer).

Source:

Unique vendor ID (32-bit unsigned integer).

Type:
  • number

Methods

(static) fromFile(path) → {Eds}

Description:
  • Create a new Eds from a file path.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
path string

path to file.

Returns:

new Eds object.

Type
Eds

(static) isEds(obj) → {boolean}

Description:
  • Returns true if the object is an instance of Eds.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
obj object

object to test.

Returns:

true if obj is Eds.

Type
boolean

addEmcyConsumer(cobId, optionsopt)

Description:
  • Add an entry to object 0x1028 - Emergency consumer object.

    • bit 0..11 - CAN-ID.
    • bit 16..23 - Reserved (0x00).
    • bit 31 - 0 = valid, 1 = invalid.
Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
cobId number

COB-ID to add.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
subIndex number <optional>

index to store the entry.

parameterName string <optional>

DataObject name.

accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

addEntry(index, data) → {DataObject}

Description:
  • Create a new entry.

Source:
Parameters:
Name Type Description
index number

index of the data object.

data object

data passed to the DataObject constructor.

Fires:
Returns:
  • the newly created entry.
Type
DataObject

addHeartbeatConsumer(deviceId, timeout, optionsopt)

Description:
  • Add an entry to object 0x1016 - Consumer heartbeat time.

    • bit 0..15 - Heartbeat time in ms.
    • bit 16..23 - Node-ID of producer.
    • bit 24..31 - Reserved (0x00);
Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
deviceId number

device identifier [1-127].

timeout number

milliseconds before a timeout is reported.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
subIndex number <optional>

index to store the entry.

accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

addReceivePdo(pdo, options)

Description:
  • Create a RPDO communication/mapping parameter object.

    Object 0x1400..0x15FF - RPDO communication parameter

    Sub-index 1 (mandatory):

    • bit 0..10 - CAN base frame.
    • bit 11..28 - CAN extended frame.
    • bit 29 - Frame type.
    • bit 30 - RTR allowed.
    • bit 31 - RPDO valid.

    Sub-index 2 (mandatory):

    • bit 0..7 - Transmission type.

    Sub-index 3 (optional):

    • bit 0..15 - Inhibit time.

    Object 0x1600..0x17FF - RPDO mapping parameter

    • bit 0..7 - Bit length.
    • bit 8..15 - Sub-index.
    • bit 16..31 - Index.

    Inhibit time and synchronous RPDOs are not yet supported. All entries are treated as event-driven with an inhibit time of 0.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
pdo object

PDO data.

Properties
Name Type Description
cobId number

COB-ID used by the RPDO.

transmissionType number

transmission type.

inhibitTime number

minimum time between updates.

dataObjects Array.<DataObject>

objects to map.

options object

optional arguments.

Properties
Name Type Attributes Description
index number <optional>

DataObject index [0x1400-0x15ff].

parameterName Array.<string> <optional>

DataObject names.

accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

addSdoClientParameter(deviceId, cobIdTx, cobIdRx, optionsopt)

Description:
  • Add an SDO client parameter object.

    Object 0x1280..0x12FF - SDO client parameter.

    Sub-index 1/2:

    • bit 0..10 - CAN base frame.
    • bit 11..28 - CAN extended frame.
    • bit 29 - Frame type (base or extended).
    • bit 30 - Dynamically allocated.
    • bit 31 - SDO exists / is valid.

    Sub-index 3:

    • bit 0..7 - Node-ID of the SDO server.
Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Default Description
deviceId number

device identifier [1-127].

cobIdTx number 1536

COB-ID for outgoing messages (to server).

cobIdRx number 1408

COB-ID for incoming messages (from server).

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
index string <optional>

DataObject index [0x1200-0x127F].

parameterName string <optional>

DataObject name.

accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

addSdoServerParameter(deviceId, cobIdTx, cobIdRx, optionsopt)

Description:
  • Add an SDO server parameter object.

    Object 0x1200..0x127F - SDO server parameter.

    Sub-index 1/2:

    • bit 0..10 - CAN base frame.
    • bit 11..28 - CAN extended frame.
    • bit 29 - Frame type (base or extended).
    • bit 30 - Dynamically allocated.
    • bit 31 - SDO exists / is valid.

    Sub-index 3 (optional):

    • bit 0..7 - Node-ID of the SDO client.
Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Default Description
deviceId number

device identifier [1-127].

cobIdTx number 1408

COB-ID for outgoing messages (to client).

cobIdRx number 1536

COB-ID for incoming messages (from client).

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
index string <optional>

DataObject index [0x1200-0x127F].

parameterName string <optional>

DataObject name.

accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

addSubEntry(index, subIndex, data) → {DataObject}

Description:
  • Create a new sub-entry.

Source:
Parameters:
Name Type Description
index number

index of the data object.

subIndex number

subIndex of the data object.

data object

data passed to the DataObject constructor.

Returns:
  • the newly created sub-entry.
Type
DataObject

addTransmitPdo(pdo, options)

Description:
  • Create a TPDO communication/mapping parameter object.

    Object 0x1800..0x19FF - TPDO communication parameter

    Sub-index 1 (mandatory):

    • bit 0..10 - CAN base frame.
    • bit 11..28 - CAN extended frame.
    • bit 29 - Frame type.
    • bit 30 - RTR allowed.
    • bit 31 - TPDO valid.

    Sub-index 2 (mandatory):

    • bit 0..7 - Transmission type.

    Sub-index 3 (optional):

    • bit 0..15 - Inhibit time.

    Sub-index 5 (optional):

    • bit 0..15 - Event timer value.

    Sub-index 6 (optional):

    • bit 0..7 - SYNC start value.

    Object 0x2000..0x21FF - TPDO mapping parameter

    • bit 0..7 - Bit length.
    • bit 8..15 - Sub-index.
    • bit 16..31 - Index.
Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
pdo object

object data.

Properties
Name Type Description
cobId number

COB-ID used by the TPDO.

transmissionType number

transmission type.

inhibitTime number

minimum time between writes.

eventTime number

how often to send timer based PDOs.

syncStart number

initial counter value for sync PDOs.

dataObjects Array.<DataObject>

objects to map.

options object

optional arguments.

Properties
Name Type Attributes Description
index number <optional>

DataObject index [0x1800-0x19ff].

parameterName Array.<string> <optional>

DataObject names.

accessType AccessType <optional>

DataObject access type.

entries() → {Iterable.<Array>}

Description:
  • Returns a new iterator object that iterates key/DataObjects pairs.

Source:
Since:
  • 6.0.0
Returns:

Iterable [key, DataObjects].

Type
Iterable.<Array>

findEntry(name) → {Array.<DataObject>}

Description:
  • Get a data object by name.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
name string

name of the data object.

Returns:
  • all entries matching name.
Type
Array.<DataObject>

getDeviceName() → {string}

Description:
  • Get object 0x1008 - Manufacturer device name.

Source:
Since:
  • 6.0.0
Returns:

device name.

Type
string

getEmcyCobId() → {number}

Description:
  • Get object 0x1014 - COB-ID EMCY.

Source:
Since:
  • 6.0.0
Returns:

Emcy COB-ID.

Type
number

getEmcyConsumers() → {Array.<number>}

Description:
  • Get object 0x1028 - Emergency consumer object.

Source:
Since:
  • 6.0.0
Returns:

Emcy consumer COB-IDs.

Type
Array.<number>

getEmcyInhibitTime() → {number}

Description:
  • Get object 0x1015 - Inhibit time EMCY.

Source:
Since:
  • 6.0.0
Returns:

Emcy inhibit time in 100 μs.

Type
number

getEmcyValid() → {boolean}

Description:
  • Get object 0x1014 [bit 31] - EMCY valid.

Source:
Since:
  • 6.0.0
Returns:

Emcy valid.

Type
boolean

getEntry(index) → {DataObject|null}

Description:
  • Get a data object by index.

Source:
Parameters:
Name Type Description
index number

index of the data object.

Returns:
  • entry matching index.
Type
DataObject | null

getErrorHistory() → {Array.<object>}

Description:
  • Get object 0x1003 - Pre-defined error field.

Source:
Since:
  • 6.0.0
Returns:

[{ code, info } ... ]

Type
Array.<object>

getErrorRegister() → {number}

Description:
  • Get object 0x1001 - Error register.

Source:
Since:
  • 6.0.0
Returns:

error register value.

Type
number

getHardwareVersion() → {string}

Description:
  • Get object 0x1009 - Manufacturer hardware version.

Source:
Since:
  • 6.0.0
Returns:

hardware version.

Type
string

getHeartbeatConsumers() → {Array.<object>}

Description:
  • Get object 0x1016 - Consumer heartbeat time.

Source:
Since:
  • 6.0.0
Returns:

[{ deviceId, heartbeatTime } ... ]

Type
Array.<object>

getHeartbeatProducerTime() → {number}

Description:
  • Get object 0x1017 - Producer heartbeat time.

Source:
Since:
  • 6.0.0
Returns:

heartbeat time in ms.

Type
number

getIdentity() → {object|null}

Description:
  • Get object 0x1018 - Identity object.

Source:
Since:
  • 6.0.0
Returns:

identity.

Type
object | null

getReceivePdos() → {Array.<object>}

Description:
  • Get RPDO communication/mapping parameters.

Source:
Since:
  • 6.0.0
Returns:

mapped RPDOs.

Type
Array.<object>

getSdoClientParameters() → {Array.<object>}

Description:
  • Get SDO client parameters.

Source:
Since:
  • 6.0.0
Returns:

[{ deviceId, cobIdTx, cobIdRx } ... ]

Type
Array.<object>

getSdoServerParameters() → {Array.<object>}

Description:
  • Get SDO server parameters.

Source:
Since:
  • 6.0.0
Returns:

[{ deviceId, cobIdTx, cobIdRx } ... ]

Type
Array.<object>

getSoftwareVersion() → {string}

Description:
  • Get object 0x100A - Manufacturer software version.

Source:
Since:
  • 6.0.0
Returns:

software version.

Type
string

getStatusRegister() → {number}

Description:
  • Get object 0x1002 - Manufacturer status register.

Source:
Since:
  • 6.0.0
Returns:

status register value.

Type
number

getSubEntry(index, subIndex) → {DataObject|null}

Description:
  • Get a sub-entry.

Source:
Parameters:
Name Type Description
index number | string

index or name of the data object.

subIndex number

subIndex of the data object.

Returns:
  • the sub-entry or null.
Type
DataObject | null

getSyncCobId() → {number}

Description:
  • Get object 0x1005 - COB-ID SYNC.

Source:
Since:
  • 6.0.0
Returns:

Sync COB-ID.

Type
number

getSyncCyclePeriod() → {number}

Description:
  • Get object 0x1006 - Communication cycle period.

Source:
Since:
  • 6.0.0
Returns:

Sync interval in μs.

Type
number

getSyncGenerationEnable() → {boolean}

Description:
  • Get object 0x1005 [bit 30] - Sync generation enable.

Source:
Since:
  • 6.0.0
Returns:

Sync generation enable.

Type
boolean

getSyncOverflow() → {number}

Description:
  • Get object 0x1019 - Synchronous counter overflow value.

Source:
Since:
  • 6.0.0
Returns:

Sync counter overflow value.

Type
number

getTimeCobId() → {number}

Description:
  • Get object 0x1012 - COB-ID TIME.

Source:
Since:
  • 6.0.0
Returns:

Time COB-ID.

Type
number

getTimeConsumerEnable() → {boolean}

Description:
  • Get object 0x1012 [bit 31] - Time consumer enable.

Source:
Since:
  • 6.0.0
Returns:

Time consumer enable.

Type
boolean

getTimeProducerEnable() → {boolean}

Description:
  • Get object 0x1012 [bit 30] - Time producer enable.

Source:
Since:
  • 6.0.0
Returns:

Time producer enable.

Type
boolean

getTransmitPdos() → {Array.<object>}

Description:
  • Get TPDO communication/mapping parameters.

Source:
Since:
  • 6.0.0
Returns:

mapped TPDOs.

Type
Array.<object>

keys() → {Iterable.<string>}

Description:
  • Returns a new iterator object that iterates the keys for each entry.

Source:
Since:
  • 6.0.0
Returns:

Iterable keys.

Type
Iterable.<string>

load(path)

Description:
  • Read and parse an EDS file.

Source:
Parameters:
Name Type Description
path string

path to file.

pushErrorHistory(code, info)

Description:
  • Push an entry to object 0x1003 - Pre-defined error field.

    • bit 0..15 - Error code.
    • bit 16..31 - Additional info.
Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
code number

error code.

info Buffer | number

error info (2 bytes).

removeEmcyConsumer(cobId)

Description:
  • Remove an entry from object 0x1028 - Emergency consumer object.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
cobId number

COB-ID of the entry to remove.

removeEntry(index) → {DataObject}

Description:
  • Delete an entry.

Source:
Parameters:
Name Type Description
index number

index of the data object.

Fires:
Returns:

the deleted entry.

Type
DataObject

removeHeartbeatConsumer(deviceId)

Description:
  • Remove an entry from object 0x1016 - Consumer heartbeat time.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
deviceId number

id of the entry to remove.

removeReceivePdo(cobId) → {object}

Description:
  • Remove an RPDO communication/mapping parameter object.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
cobId number

COB-ID used by the RPDO.

Returns:

removed RPDO.

Type
object

removeSdoClientParameter(deviceId)

Description:
  • Remove an SDO client parameter object.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
deviceId number

device identifier [1-127].

removeSdoServerParameter(deviceId)

Description:
  • Remove an SDO server parameter object.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
deviceId number

device identifier [1-127].

removeSubEntry(index, subIndex)

Description:
  • Delete a sub-entry.

Source:
Parameters:
Name Type Description
index number

index of the data object.

subIndex number

subIndex of the data object.

removeTransmitPdo(cobId) → {object}

Description:
  • Remove a TPDO communication/mapping parameter object.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
cobId number

COB-ID used by the TPDO.

Returns:

removed TPDO.

Type
object

reset()

Description:
  • Reset objects to their default values.

Source:
Since:
  • 6.0.0

save(path, optionsopt)

Description:
  • Write an EDS file.

Source:
Parameters:
Name Type Attributes Description
path string

path to file, defaults to fileName.

options object <optional>

optional inputs.

Properties
Name Type Attributes Description
modificationDate Date <optional>

file modification date to file.

modifiedBy Date <optional>

file modification date to file.

setDeviceName(name, optionsopt)

Description:
  • Set object 0x1008 - Manufacturer device name.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
name string

device name.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
saveDefault boolean <optional>

save value as default.

setEmcyCobId(cobId, optionsopt)

Description:
  • Set object 0x1014 - COB-ID EMCY.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
cobId number

Emcy COB-ID.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

setEmcyInhibitTime(inhibitTime, optionsopt)

Description:
  • Set object 0x1015 - Inhibit time EMCY.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
inhibitTime number

inhibit time in multiples of 100 μs.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

setEmcyValid(valid, optionsopt)

Description:
  • Set object 0x1014 [bit 31] - EMCY valid.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
valid number

Emcy valid.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

setErrorHistoryLength(length, optionsopt)

Description:
  • Configures the length of 0x1003 - Pre-defined error field.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
length number

how many historical error events should be kept.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

setErrorRegister(flags)

Description:
  • Set object 0x1001 - Error register.

    • bit 0 - Generic error.
    • bit 1 - Current.
    • bit 2 - Voltage.
    • bit 3 - Temperature.
    • bit 4 - Communication error.
    • bit 5 - Device profile specific.
    • bit 6 - Reserved (always 0).
    • bit 7 - Manufacturer specific.
Source:
Since:
  • 6.0.0
Parameters:
Name Type Description
flags number | object

error flags.

Properties
Name Type Description
generic boolean

generic error.

current boolean

current error.

voltage boolean

voltage error.

temperature boolean

temperature error.

communication boolean

communication error.

device boolean

device profile specific error.

manufacturer boolean

manufacturer specific error.

setHardwareVersion(version, optionsopt)

Description:
  • Set object 0x1009 - Manufacturer hardware version.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
version string

device hardware version.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
saveDefault boolean <optional>

save value as default.

setHeartbeatProducerTime(producerTime, optionsopt)

Description:
  • Set object 0x1017 - Producer heartbeat time.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
producerTime number

Producer heartbeat time in ms.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

setIdentity(identity, optionsopt)

Description:
  • Set object 0x1018 - Identity object.

    • sub-index 1 - Vendor id.
    • sub-index 2 - Product code.
    • sub-index 3 - Revision number.
    • sub-index 4 - Serial number.
Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
identity object

device identity.

Properties
Name Type Description
vendorId number

vendor id.

productCode number

product code.

revisionNumber number

revision number.

serialNumber number

serial number.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

setSoftwareVersion(version, optionsopt)

Description:
  • Set object 0x100A - Manufacturer software version.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
version string

device software version.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
saveDefault boolean <optional>

save value as default.

setStatusRegister(status, optionsopt)

Description:
  • Set object 0x1002 - Manufacturer status register.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
status number

status register.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
saveDefault boolean <optional>

save value as default.

setSyncCobId(cobId, optionsopt)

Description:
  • Set object 0x1005 - COB-ID SYNC.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
cobId number

Sync COB-ID (typically 0x80).

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

setSyncCyclePeriod(cyclePeriod, optionsopt)

Description:
  • Set object 0x1006 - Communication cycle period.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
cyclePeriod number

communication cycle period.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

setSyncGenerationEnable(enable, optionsopt)

Description:
  • Set object 0x1005 [bit 30] - Sync generation enable.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
enable boolean

Sync generation enable.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

setSyncOverflow(overflow, optionsopt)

Description:
  • Set object 0x1019 - Synchronous counter overflow value.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
overflow number

Sync overflow value.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

setTimeCobId(cobId, optionsopt)

Description:
  • Set object 0x1012 - COB-ID TIME.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
cobId number

Time COB-ID (typically 0x100).

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

setTimeConsumerEnable(enable, optionsopt)

Description:
  • Set object 0x1012 [bit 31] - Time consumer enable.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
enable boolean

Time consumer enable.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

setTimeProducerEnable(enable, optionsopt)

Description:
  • Set object 0x1012 [bit 30] - Time producer enable.

Source:
Since:
  • 6.0.0
Parameters:
Name Type Attributes Description
enable boolean

Time producer enable.

options object <optional>

DataObject creation options.

Properties
Name Type Attributes Description
accessType AccessType <optional>

DataObject access type.

saveDefault boolean <optional>

save value as default.

values() → {Iterable.<DataObject>}

Description:
  • Returns a new iterator object that iterates DataObjects.

Source:
Since:
  • 6.0.0
Returns:

Iterable DataObjects.

Type
Iterable.<DataObject>

Events

newEntry

Description:
  • A DataObject was added to the Eds.

Source:
Type:

newRpdo

Description:
  • A new receive PDO was mapped.

Source:
Since:
  • 6.0.0
Type:
  • object

newSdoClient

Description:
  • A SDO server parameter object was added.

Source:
Type:
  • object

newSdoServer

Description:
  • An SDO client parameter object was added.

Source:
Type:
  • object

newTpdo

Description:
  • A transmit PDO was removed.

Source:
Since:
  • 6.0.0
Type:
  • object

newTpdo

Description:
  • A new transmit PDO was mapped.

Source:
Since:
  • 6.0.0
Type:
  • object

newTpdo

Description:
  • A transmit PDO was removed.

Source:
Since:
  • 6.0.0
Type:
  • object

removeEntry

Description:
  • A DataObject was removed from the Eds.

Source:
Type:

removeSdoClient

Description:
  • A SDO server parameter object was removed.

Source:
Type:
  • object

removeSdoServer

Description:
  • An SDO client parameter object was removed.

Source:
Type:
  • object