Chapter 2 Basic Unit Specification
3. Communication ports
2-19
b. Sub-function FF01: Write TP03 ID
Function
Code
Sub-function FF01
Function Write TP03 ID
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 01H
Sub-function
Low 01H Low 6CH
High 00H High 00H
CRC-16
High C6H
Data
Data
Low 37H
Data
Data
Low 37H
Low B3H Low B3H
CRC-16
High 51H
CRC-16
High 51H
Remark
1. To write new ID number to TP03, Data is new ID number (1 to approx. 255).
And the high byte must be set to 0.
2. If the TP03 is initialized, the ID will be reset to 001. If you want to set up a
net, it is necessary to set a new ID for each PLC.
c. Sub-function FF02: Read TP03 running/stopping status
Function
Code
Sub-function FF02
Function Read TP03 running/stopping status
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 02H
Sub-
function
Low 02H Low 6DH
High 00H High 52H
CRC-16
High 03H
Data
Data
Low 00H
Data
Data
Low 55H
Low 00H Low FDH
CRC-16
High 17H
CRC-16
High 48H
Remark
*: Sub-function: Read program running or stopping status, If return data =5255H,
program running (ASCII code ‘RU’); if return data =5354H, program stopping
(ASCII code ‘ST’).