Read system clock – Rockwell Automation 1395 Node Adapter Board User Manual

Page 38

Advertising
background image

Chapter 3
Functional Description

3-26

Read System Clock

This function reads the system time from the Drive.

PLC Block Transfer Data

BTW Instruction Length: 4
BTR Instruction Length: 40

BTW Message Structure –
Message Header Information:

Word 1: 0
Word 2: 0
Function Code, Word 3: 1026
Write Message Length, Word 4: 8 bytes

WORD

0

0

1026

8

BTW (SETUP)

BTR (RETURNED DATA)

0

0

1026

See Note

1

2

3

4

NOTE:

Word 4 of the BTR instruction is broken down into
two bytes. The High byte contains the status bits
per table 3.B. The low byte contains the Drive
message length in bytes.

5

6

Year

Month ( 1 – 12 )

Day ( 1–31 )

Hour ( 0 – 24 )

Second ( 0 – 59 )

Minute ( 0 – 59 )

10’s of msec (0–100)

7

8

9

10

11

Message Operation – The READ SYSTEM CLOCK function requests the
Drive to provide it’s current time. The Drive stores time in the 24 hour
format. The values returned are integer type and may be scaled by the PLC
Controller prior to being used in the Program.

Advertising