Time

Time

CANopen TIME protocol handler.

The time stamp (TIME) protocol follows a producer-consumer structure that provides a simple network clock. There should be at most one time stamp producer on the network.

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:

Get object 0x1012 - COB-ID TIME.

Type:
  • number

cobId :number

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

Source:
Deprecated:

Set object 0x1012 - COB-ID TIME.

Type:
  • number

consume :boolean

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

Source:
Deprecated:

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

Type:
  • boolean

consume :boolean

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

Source:
Deprecated:

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

Type:
  • boolean

produce :boolean

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

Source:
Deprecated:

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

Type:
  • boolean

produce :boolean

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

Source:
Deprecated:

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

Type:
  • boolean

Methods

init()

Description:
  • Initialize the device and audit the object dictionary.

Source:
Deprecated:

receive(message)

Description:
  • Call when a new CAN message is received.

Source:
Implements:
Parameters:
Name Type Description
message object

CAN frame.

Properties
Name Type Description
id number

CAN message identifier.

data Buffer

CAN message data;

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