Constructor
new Time(eds)
- Source:
- Implements:
- See:
-
- CiA301 "Time stamp object (TIME)" (ยง7.2.6)
Parameters:
Name | Type | Description |
---|---|---|
eds |
Eds | Eds object. |
Members
cobId :number
- Description:
Get object 0x1012 - COB-ID TIME.
- Source:
- Deprecated:
- Use Eds#getTimeCobId instead.
Get object 0x1012 - COB-ID TIME.
Type:
- number
cobId :number
- Description:
Set object 0x1012 - COB-ID TIME.
- Source:
- Deprecated:
- Use Eds#setTimeCobId instead.
Set object 0x1012 - COB-ID TIME.
Type:
- number
consume :boolean
- Description:
Get object 0x1012 [bit 31] - Time consumer enable.
- Source:
- Deprecated:
- Use Eds#getTimeConsumerEnable instead.
Get object 0x1012 [bit 31] - Time consumer enable.
Type:
- boolean
consume :boolean
- Description:
Set object 0x1012 [bit 31] - Time consumer enable.
- Source:
- Deprecated:
- Use Eds#setTimeConsumerEnable instead.
Set object 0x1012 [bit 31] - Time consumer enable.
Type:
- boolean
produce :boolean
- Description:
Get object 0x1012 [bit 30] - Time producer enable.
- Source:
- Deprecated:
- Use Eds#getTimeProducerEnable instead.
Get object 0x1012 [bit 30] - Time producer enable.
Type:
- boolean
produce :boolean
- Description:
Set object 0x1012 [bit 30] - Time producer enable.
- Source:
- Deprecated:
- Use Eds#setTimeProducerEnable instead.
Set object 0x1012 [bit 30] - Time producer enable.
Type:
- boolean
Methods
init()
- Description:
Initialize the device and audit the object dictionary.
- Source:
- Deprecated:
- Use Time#start instead.
receive(message)
- Description:
Call when a new CAN message is received.
- Source:
- Implements:
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
message |
object | CAN frame. Properties
|
Fires:
start()
- Description:
Start the module.
- Source:
- Implements:
Fires:
stop()
- Description:
Stop the module.
- Source:
- Implements:
Fires:
write(date)
- Description:
Service: TIME write.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
date |
Date | date to write. |
Fires:
Events
time
- Description:
A Time object was received.
- Source:
Type:
- Date