S1: Addres of the connecting device. S2: Communication function code. S3:
Explanation
Address to read data. S: Register to read and write data.
Before using this command, set COM1 to be controlled by PLC(Set Pr09-31 =
-12). Then set the corresponding comunication speed and format(Set Pr09-01
and Pr09-04). S2: Communication function code. This command only supports
the function codes in the table below.
Function
Once the command is executed, M1077, M1078 and M1079 will become zero.
Here is an example of when C2000 wants to control another motor drive and a
PLC with station number 20.
To control a slave motor drive
No.
1
2
3
4
Description
02
Input read
03
Read Word
06
Write a single Word.
0F
Write multiple coil
10
Write a single word
Example
Read Pr01-00 ~ Pr01-03, four data
and save the read data in D0 to D3.
Read motor drive's address from
H2100 ~ H2104, total 3 data and save
the read data in D5 ~ D7.
Write into Pr05-00 ~ Pr01-03, total 3
data, the value to write into are D10 ~
D2
Write into motor drive's address
H2000~H2104, total 2 data, the value
to write into are D15~D16.
Chapter 16 PLC Function C2000 Series
S1
Station
Fucntion
#
K10
K10
K10
K10
16-68
MODRW COMMAND
S2
S3
S4
Addr-
Register
Code
ess
H3
H100
D0
H3
H2100
D5
H10
H500
D10
H10
H2000
D15
n
Leng
-th
K4
K3
K3
K2