Read system clock – Rockwell Automation 1395 Multi-Comm Hardware/Software User Manual

Page 57

Advertising
background image

Chapter 3

Configuration & Interfacing

3–46

Read System Clock

This function reads the system time from the Drive.

PLC Block Transfer Data

BTW Instruction Length: 4
BTR Instruction Length: 11

PLC DH+ Data –

Write

Read

Size In Elements:

4

11

Processor Type:

PLC–5

PLC–5

Destination Address:

N15:0–4

N15:0–10

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

BTR

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–H. 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