Time Set 0x00B5

SwitchKit Name

TimeSet

Type

EXS API and SwitchKit API message

Description

This message allows the host to set the clock used by the Excel platform to timestamp fault log entries.

It is imperative that you set the system time properly.

Sent by

Host

SwitchKit Code

Configuration

TimeSet (

Node = integer,

Month = integer,

Day = integer,

Year = integer,

Hour = integer,

Minute = integer,

Second = integer);

C Structure

typedef struct {

UBYTE Month;

UBYTE Day;

UBYTE Year;

UBYTE Hour;

UBYTE Minute;

UBYTE Second;

} XL_TimeSet;

C++ Class

class XLC_TimeSet : public XLC_OutboundMessage {

public:

UBYTE getMonth() const;

void setMonth(UBYTE x);

UBYTE getDay() const;

void setDay(UBYTE x);

UBYTE getYear() const;

void setYear(UBYTE x);

UBYTE getHour() const;

void setHour(UBYTE x);

UBYTE getMinute() const;

void setMinute(UBYTE x);

UBYTE getSecond() const;

void setSecond(UBYTE x);

};

EXS API Hex Format

MESSAGE (White)

RESPONSE (Gray)

Byte

Field Description

Byte

Field Description

0

Frame (0xFE)

0

Frame (0xFE)

1, 2

Length (0x000B)

1, 2

Length (0x0007)

3, 4

Message Type (0x00B5)

3, 4

Message Type (0x00B5))

5

Reserved (0x00)

5

Reserved (0x00)

6

Sequence Number

6

Same Sequence Number

7

Logical Node ID

7

Logical Node ID

8

Month

8, 9

Status MSB, LSB

9

Day

10

Checksum

10

Year

Represented by the last two digits. For example, 1995 = 0x5F.

 

 

11

Hour

 

12

Minute

13

Second

14

Checksum