beautypg.com

Read system clock – Rockwell Automation 1395 ControlNet Communication Board User Manual

Page 39

background image

3–25

Configuration & PLC Interfacing

Publication 1395–5.37– March, 1999

Read System Clock

This function reads the system time from the Drive.

PLC Block Transfer Instruction Data –

Write

Read

Size In Elements:

4

11

Processor Type:

PLC-5

PLC-5

Destination Address:

N40:0-4

N40: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

0

PLC Message Write

PLC Message Read

NOTE:

Word 4 of the PLC Message Read instruction is broken down
into two bytes. The High byte contains the status bits

The Low byte contains the Drive message length in bytes.

Header
Word 1

0

Function Code
1026

Message Length
8 bytes

Header
Word 2

Header
Word 3

Header
Word 4

0

Header
Word 1

0

Function Code
1026

See Note

Header
Word 2

Header
Word 3

Header
Word 4

Month
(1–12)

Data
Word 5

Year

Data
Word 6

Day
(1–31)

Data
Word 7

Data
Word 8

Data
Word 10

Data
Word 11

Hour
(0–24

Second
(0–59)

Data
Word 9

Minute
(0–59

10’s of msec
(0–100)

Message Operation – The READ SYSTEM CLOCK function
requests the Drive to provide its 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.