beautypg.com

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

Page 40

background image

3–26

Configuration & PLC Interfacing

Publication 1395–5.37– March, 1999

Write System Clock

This function writes the system time from the PLC Controller to the
Drive.

PLC Block Transfer Instruction Data –

Write

Read

Size In Elements:

10

4

Processor Type:

PLC

PLC-5

Destination Address:

N40:0-9

N40:0-9

Message Structure –

Message Header Information:
Word 1
: 0
Word 2: 0
Function Code, Word 3: 1027
Write Message Length, Word 4: 20 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
1027

See Note

Header
Word 2

Header
Word 3

Header
Word 4

0

Header
Word 1

0

Function Code
1027

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

Hour
(0–24

Second
(0–59)

Data
Word 9

Minute
(0–59

Message Operation – The WRITE SYSTEM CLOCK function sets
the time in the Drive from the PLC Controller. The Drive stores time
in the 24 hour format. The values are integer type and may need to be
scaled by the PLC Controller prior to being sent to the Drive.