Chapter 2 Basic Unit Specification
3. Communication ports
2-20
d. Sub-function FF03: Set RTC value
Function
Code
Sub-function FF03
Function Set RTC value
Format
PC Æ PLC PLCÆPC(OK) PLCÆPC(ERROR)
Slave Address 01 H Slave Address 01H Slave Address 01H
Function Code 6CH Function Code 6CH Function Code ECH
High FFH High FFH
Exception
Code
04H
Sub-
function
Low 03H
Data
Sub-
function
Low 03H Low 6CH
High Sec Low C4H
CRC-16
High C6H
Data
Low Min
CRC-16
High F4H
High Hou
Data
Low day
High Mon
Data
Low Yea
High Wee
Data
Data
Low 00
Low XX
CRC-16
High XX
Remark
1. Data length is 8 bytes, BCD code (second, minute, hour, day, month, year, week,
00).
2. XX represents that the data differs with different input data
I. 01H Read TP03 ID
Function
Code
01H
Function Read TP03 ID
Format
PC Æ PLC PLCÆPC(OK) PLCÆPC(ERROR)
Slave Address 01 H Slave Address 01H Slave Address 01H
Function Code 01H Function Code 01H Function Code 91H
Low C0H Bytes 01H Exception Code 04H
CRC-16
High 2CH
Data
TP03 ID 03H Low 4CH
Low 10H
CRC-16
High 53H
CRC-16
High 4CH
Remark
1. Such function is available for one TP03 communicating with another one. If
there is several TP03s in the net, the data in the bus must be wrong.
2. When in reading TP03 ID, the slave address is the random number except 0. In
responding, the slave address will be right ID.