Write system clock – Rockwell Automation 1395 Multi-Comm Hardware/Software User Manual
Page 58

Chapter 3
Configuration & Interfacing
3–47
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: 4
PLC DH+ Data –
Write
Read
Size In Elements:
10
4
Processor Type:
PLC–5
PLC–5
Destination Address:
N15:0–9
N15: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
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–H. 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.