Chapter 8 Operation Procedures and Fault Protection
131
8
※
08H (Drive detection): Only use when testing the communication
OP code
– 08H is to detect if the drive is correctly receiving the data from the host.
The main purpose of using this OP code is to ensure the host data to be correctly
sent to the drive.
Example: Verify the data (0000H and AA55H) to be correctly received by the drive.
Message Code (Host to Drive)
Address
OP
Code
Data 1
Data 2
CRC Checksum
MSB
LSB
MSB
LSB
LSB
MSB
02H
08H
00H
00H
AAH
55H
5EH
A7H
The host sends OP-code (08H) to verify the data 0000H and AA55H to be correctly
received by the drive.
Return Code (Drive to Host)
Address
OP
Code
Data 1
Data 2
CRC Checksum
MSB
LSB
MSB
LSB
LSB
MSB
02H
08H
00H
00H
AAH
55H
5EH
A7H
The drive returns the same message to the host to confirm the data well received
from the host. Data 1 must be 0000H but Data 2 can be any values.
Note:
The host cannot simultaneously broadcast 08H OP code to all drives when
multiple drives connected or drives rejec
t drive’s OP codes.
※
10H (Write to multi-registers)
When multiple data need to write into the drive from the host, the host can define
how many registers and data to be written into the drive.
This example is illustrating 2 data (1011H and 1770H) from the host to be written into
2 drive registers (2000H and 2001H).
Message Code (Host to Drive)
Address
OP
Code
Starting
Register
Register
Number to
Write
Data
Length
Data 1
Data 2
CRC
Checksum
MSB LSB MSB LSB
MSB LSB MSB LSB LSB MSB
02H
10H 20H 00H 00H 02H
04H
10H 11H 17H 70H 3FH FBH
The host calls the drive 1 by defining the drive address (02H) with the write to
multi-registers OP code (10H) to write 2 data (1011H and 1770H) into the drive
registers (2000H and 2001H) which are defined by calling starting register (2000H)
with ―register number to write‖ (0002H). In this example, if user has 4 data to write to
4 drive registers, the message code can be as follows:
a. Starting register: 2000H (still)
b. Register number to write: 0004H
Then, 4 data will be sequentially written into 4 registers starting from 2000H, 2001H,
2002H, to 2003H.
Содержание RM6F5 series
Страница 1: ...AC MOTOR DRIVE Operation Manual RM6F5 series ...
Страница 194: ...Notes 194 Notes ...
Страница 195: ...Notes 195 Notes ...