TIDUE74F April 2018 – March 2026
Tamagawa is a manufacturer of encoder technology used for obtaining high-precision position information in machine tools, robotics, motor drives and so forth. Tamagawa rotary encoders consist broadly of two types: incremental or absolute. Incremental encoders provide a train of pulses, while the absolute-type provides absolute digital values. Absolute encoders include both single-turn and multi-turn types.
The TIDM-1011 reference design focuses on an absolute-type which provides a digital output through an RS-485 line driver. The protocol format of the transaction supported by TIDM-1011 is known as T-Format.
The C2000 T-Format encoder interface provides the required physical layer for a controller to communicate with an encoder. This encoder interface provides the RS-485 drive control to send and receive digital information with the encoder. In this context, a T-Format transaction is the transmission of a request from the controller plus the response back from the encoder. From the perspective of the encoder interface, a transaction can be divided into FRAME_STATES shown in Figure 2-2:
This pattern is repeated for each transaction with the encoder.
The T-format communication protocol is broadly classified into three types of transactions: data readout, reset, and EEPROM access. Each transaction has a unique Data ID defined by the protocol. The Data ID is used to identify the specific request made by the controller through the encoder interface.
| Transaction Type | Data ID | Transaction |
|---|---|---|
| Readout | ID 0 | Absolute data in one revolution |
| ID 1 | Multi-turn data | |
| ID 2 | Encoder ID | |
| ID 3 | All of the above plus the encoder error status | |
| Reset | ID 7 | Reset absolute data in one revolution |
| ID 8 | Reset multi-turn data | |
| ID C | Reset errors | |
| EEPROM | ID D | Read encoder's EEPROM |
| ID 6 | Write to encoder's EEPROM |
Each transaction consists of 10-bit fields. Each field has the format shown in Table 2-3. The first bit is a start bit (always 0) and the last bit is a delimiter bit (always 1). The content of the 8-bits of data between the start bit and delimiter depend on the specific type of field.
| Bit 1 | Bit 2 | Bit 3 | Bit 4 | Bit 5 | Bit 6 | Bit 7 | Bit 8 | Bit 9 | Bit 10 | |
|---|---|---|---|---|---|---|---|---|---|---|
| Content | Start bit Always 0 |
8 data bits: Least
significant bit first. The content depends on the specific field. These 8 bits of data are included in the CRC calculation. |
Delimiter bit Always 1 |
|||||||
The fields defined by the T-Format protocol are:
The fields used in a request are shown in Table 2-4. To begin a transaction, the controller sends a request through the encoder interface. The request starts with the ControlField which includes the Data ID. The encoder uses the Data ID to identify the exact transaction requested. For a readout or reset request, only the ControlField is required. In the case of an EEPROM read or write the controller also sends an EEPROM AddressField and an EEPROM DataField (for a write) followed by a CRCField.
| Request type | Fields Transmitted | |||
|---|---|---|---|---|
| Readout | ControlField | |||
| Reset | ControlField | |||
| EEPROM Write | ControlField | EEPROM AddressField | EEPROM DataField | CRCField(1) |
| EEPROM Read | ControlField | EEPROM AddressField | CRCField | |
The fields used in an encoder's response depend on the specific request. For readout and reset transactions (Table 2-5), the encoder responds with an echo of the ControlField, follwed by a StatusField and one or more DataFields. Lastly the encoder always sends a CRCField. The CRCField can be used as an integrity check of the received data.
| Data ID | Type | Control Field(1) |
Status Field |
DataFields (DF0:DF1:….DF7) + CRC (2) (3) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID 0 | Read | CF | SF | ABS0(4) | ABS1 | ABS2 | CRC | |||||
| ID 1 | Read | CF | SF | ABM0(5) | ABM1 | ABM2 | CRC | |||||
| ID 2 | Read | CF | SF | ENID(6) | CRC | |||||||
| ID 3 | Read | CF | SF | ABS0 | ABS1 | ABS2 | ENID | ABM0 | ABM1 | ABM2 | ALMC(7) | CRC |
| ID 7 | Reset | CF | SF | ABS0 | ABS1 | ABS2 | CRC | |||||
| ID 8 | Reset | CF | SF | ABS0 | ABS1 | ABS2 | CRC | |||||
| ID C | Reset | CF | SF | ABS0 | ABS1 | ABS2 | CRC | |||||
In the following data readout example, the controller requests the multi-turn data (Data ID 1). Referencing Table 2-5, the response DataFields correspond to the multi-turn data (ABM0:ABM1:ABM2).
| Request: | ControlField for Data ID 1 |
|||||
| Response: | ControlField for Data ID 1 |
StatusField | DataField0 | DataField1 | DataField2 | CRC |
For a EEPROM transaction, the encoder responds with the ControlField + EEPROM AddressField + EEPROM DataField + CRCField as shown in Table 2-7.
| Data ID | Request | Field 0 | Field 1 | Field 2 | Field 3 |
|---|---|---|---|---|---|
| ID 6 | Write | ControlField | EEPROM AddressField |
EEPROM DataField (1) |
CRCField(3) |
| ID D | Read | ControlField | EEPROM AddressField |
EEPROM DataField (2) |
CRCField |