EasyManua.ls Logo

TPG CA-202A - Page 84

Default Icon
200 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Operation Code(OP Code) Description:
03H (Read multi-registers):
Example: Read data from registers 2101H and 2102H of the drive 1
Message Code (Host to Drive)
Starting Register
Register
Numbers to
Readout
CRC Checksum
Address
OP
Code
MSB LSB MSB LSB LSB MSB
02H 03H 21H 01H 00H 02H 9FH C4H
This example shows the host to read the drive data from 2 registers of the drive. The
host identifies drive 1 by calling the drive address (02H) with the “read” operation
command (03H) to read the drive data from the registers (2101H – starting register)
to the register (2102H – Register Numbers to Readout defines the numbers of
register for data readouts).
Return Code (Drive to Host)
2101H(Register)
Data
2102H(Register)
Data
CRC Checksum
Address
OP
Code
Data
Bytes
MSB LSB MSB LSB LSB MSB
02H 03H 04H 55H 00H 17H 70H D6H EBH
The host reads registers 2101H and 2102H of drive (02H) (drive status and speed
command). After the drive receives the host’s command, the drive returns 4 bytes
data (2101H=5500H and 2102H=1770H) to the host.
Caution: The host cannot simultaneously broadcast 03H OP code to drives when
multiple drives connected or all drives reject host’s OP code.
06H (Write to single register)
Example: Write a data (1770H) into the drive register (2001H)
Message Code (Host to Drive)
Drive Register Register Data CRC Checksum
Address
OP
Code
MSB LSB MSB LSB LSB MSB
02H 06H 20H 01H 17H 70H DDH EDH
This example shows the host to write the data (1770H) to the register (2001H) of the
drive. The host identifies drive 1 by calling the drive address (02H) with the “write”
operation command (06H) to write the data (1770H) into the register (2001H).
Return Code (Drive to Host)
Drive Register Register Data CRC Checksum
Address
OP
Code
MSB LSB MSB LSB LSB MSB
02H 06H 20H 01H 17H 70H DDH EDH
The host writes data 1770H into the drive register 2001H. After receiving data from
the host and writing data into drive’s registers, the drive returns the original receiving
message to the host. OP code-06H of the host can synchronously broadcast to all
drives but has no return code to the host.
84

Table of Contents

Related product manuals