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

Page 39

Advertising
background image

Chapter 3
Functional Description

3-27

Write System Clock

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

PLC Block Transfer Data

BTW Instruction Length: 10
BTR Instruction Length: 40

BTW Message Structure –

Message Header Information:

Word 1: 0
Word 2: 0
Function Code, Word 3: 1027
Write Message Length, Word 4: 20 bytes

WORD

BTW

BTR

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

0

0

1027

20

Year

Month ( 1 – 12 )

Day ( 1 – 31 )

Hour ( 0 – 23 )

Minute ( 0 – 59 )

7

8

10

Second ( 0 – 59 )

9

0

0

1027

See Note

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.

Advertising