Time Stamp Object (TIME)

Usually the Time-Stamp object represents an absolute time in milliseconds after midnight and the number of days since January 1, 1984. This is a bit sequence of length 48 (6 bytes).

API

class canopen.timestamp.TimeProducer(network)[source]

Produces timestamp objects.

cob_id = 256

COB-ID of the SYNC message

transmit(timestamp=None)[source]

Send out the TIME message once.

Parameters:

timestamp (float) – Optional Unix timestamp to use, otherwise the current time is used.