Constructor
new SdoServer(eds)
- Source:
- Implements:
- See:
-
- CiA301 'Service data object (SDO)' (ยง7.2.4)
Parameters:
Name | Type | Description |
---|---|---|
eds |
Eds | parent device. |
Members
blockInterval :number
- Description:
Time delay between each segment during a block transfer.
- Source:
- Since:
- 6.2.0
Time delay between each segment during a block transfer.
Type:
- number
blockSize :number
- Description:
Number of segments per block when serving block transfers.
- Source:
Number of segments per block when serving block transfers.
Type:
- number
Methods
addClient(clientId, cobIdTx, cobIdRx)
- Description:
Add an SDO server parameter entry.
- Source:
- Deprecated:
- Use Eds#addSdoServerParameter instead.
Parameters:
Name | Type | Description |
---|---|---|
clientId |
number | client COB-ID to add. |
cobIdTx |
number | Sdo COB-ID for outgoing messages (to client). |
cobIdRx |
number | Sdo COB-ID for incoming messages (from client). |
getClient(clientId) → {DataObject|null}
- Description:
Get an SDO client parameter entry.
- Source:
- Deprecated:
- Use Eds#getSdoServerParameters instead.
Parameters:
Name | Type | Description |
---|---|---|
clientId |
number | server COB-ID of the entry to get. |
Returns:
the matching entry.
- Type
- DataObject | null
init()
- Description:
Initialize the device and audit the object dictionary.
- Source:
- Deprecated:
- Use SdoServer#start instead.
receive(message)
- Description:
Call when a new CAN message is received.
- Source:
- Implements:
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
message |
object | CAN frame. Properties
|
removeClient(clientId)
- Description:
Remove an SDO server parameter entry.
- Source:
- Deprecated:
- Use Eds#removeSdoServerParameter instead.
Parameters:
Name | Type | Description |
---|---|---|
clientId |
number | client COB-ID of the entry to remove. |
setBlockInterval(value)
- Description:
Set the time delay between each segment during a block transfer.
- Source:
- Since:
- 6.2.0
Parameters:
Name | Type | Description |
---|---|---|
value |
number | block interval in milliseconds. |
setBlockSize(value)
- Description:
Set the number of segments per block when serving block transfers.
- Source:
- Since:
- 6.0.0
Parameters:
Name | Type | Description |
---|---|---|
value |
number | block size [1-127]. |
start()
- Description:
Start the module.
- Source:
- Implements:
Fires:
stop()
- Description:
Stop the module.
- Source:
- Implements: