R7CWTU
5-2-55, Minamitsumori, Nishinari-ku, Osaka 557-0063 JAPAN
Phone: +81(6)6659-8201 Fax: +81(6)6659-8510 E-mail: [email protected]
EM-7814 Rev.3 P. 7 / 18
■
DETAIL OF READING/WRITING SEQUENCE
Sequence (1)
• Reading command
Set register number in RWw0.
Set RY1 OFF.
• Writing command
Set register number in RWw0.
Set the data to write in RWw2 and RWw3.
Set RY1 ON.
• Master to Slave (R7CWTU)
COMMAND
READING
WRITING
RY1
OFF
ON
RWw0
Register number
Register number
RWw2
----
Data to write (LSW)
RWw3
----
Data to write (MSW)
Sequence (2)
Set RY0 ON.
Receiving a command, the unit copies RY1, RWw0, RWw2,
RWw3 to RX1, RWr0, RWr2, RWr3.
• Master to Slave (R7CWTU)
REQUIRE
READING
WRITING
RY0
ON
ON
• Slave (R7CWTU) to Master
ACKNOWLEDGE READING
WRITING
RX1
OFF
ON
RWr0
Register number
Register number
RWr2
----
Data to write (LSW)
RWr3
----
Data to write (MSW)
Sequence (3)
Following the completion of a command, the unit sets reply
data in RWr2 and RWr3, and sets RX0 ON.
• Slave (R7CWTU) to Master
REPLY
READING
WRITING
RX0
ON
ON
RWr1
Error code
Error code
RWr2
Data to read (LSW)
----
RWr3
Data to read (MSW)
----
• Error Codes
ERROR CODE COMMAND CONTENTS
100H
Reading
No error
111H
Command error
112H
Device error (Time out)
113H
Device error (Communication)
200H
Writing
No error
211H
Command error
212H
Device error (Time out)
213H
Device error (Communication)
Note: Check the R7CWTU’s fault, if device error repeats.
Sequence (4)
Confirm RX0 is ON, and then read in reply data.
Sequence (5)
Set RY0 OFF.
• Master to Slave (R7CWTU)
COMPLETION
READING
WRITING
RY0
OFF
OFF
Sequence (6)
Confirming RY0 set OFF, the unit sets RX0 and RX1 OFF
and clears RWr0 through RWr3 (sets OFF).
ACKNOWLEDGING COMPLETION
READING
WRITING
RX1
OFF
OFF
RWr0
0
0
RWr1
0
0
RWr2
0
0
RWr3
0
0