Table of Contents - TG Drives

Table of Contents - TG Drives Table of Contents - TG Drives

28.11.2012 Views

166 XENDAT, EXTENDED REGISTER GROUPS 2 = Analog mode active. 3 = Combined serial and analog mode. 4 + any of the above: The incremental encoder interface active. (See the IENC group) The following values are used for initializing the interface and sensor: 32 = Force the ENDAT clock line LOW 64 = Force the ENDAT clock line HIGH 64+32 = Start the ENDAT CLOCK. 128 = Reset the interface hardware. XENDAT.Clock 1 4..99 RW 80 This sets the clock frequency to the ENDAT sensor. * Frequency is calculated as follows: f = 10 000 000 / (value + 1) Max ENDAT clock is 2 MHz, which gives the value: 4 Min ENDAT clock is 0.1 MHz, which gives the value: 99 The max allowable clock rate is also depending on the cable length to the sensor. *See the ENDAT specification for a more detailed description. ** Up to 127 Accepted by hardware, but will generate an out-of-specification clock frequency. Set frequency for the ENDAT communication. Below is a list of example values and the resulting communication frequency, 99 => 100 kHz 79 => 125 kHz 39 => 250 kHz 19 => 500 kHz 9 => 1.0 MHz 4 => 2.0 MHz XENDAT. 2 0..65535 R x NIU XENDAT.Status 3 0..65535 R x Shows status of hardware when ( XENDAT.Mode and 1) = 0, otherwise gives status data returned for last manually transmitted command. b0 (1) = ALRMbit, sensor alarm. This bit is only valid after a position transfer, User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001

EXTENDED REGISTER GROUPS XENDAT.Transfer = 0. XENDAT, b1 (2) = CRCbit, CRC compare mismatch. b2 (4) = PWRbit, current status of the ENDAT power supply. b3..b15 = reserved. XENDAT.Config 4 0..63 RW 25 Specifies the number of position data bits for the particular sensor in use. This value must be set to match the actual sensor in use. The DMC 2 can handle maximum 32 bits of position information, thus if a sensor with more than 32 bits is used, the most significant bits are discarded. If the sensor used less than 32 bits, the driver will incrementally extend the ENDAT position to 32 bits, to be able to fully utilize the DMC 2 functionality. XENDAT.Rdy 5 0..1 R 1 This member indicates when the ENDAT communications interface has completed a manually issued command. XENDAT.Data 6 16 bit RW 0 Data to/from a manually issued command. Read: Value received from the sensor as a result of a parameter read transfer. Write: Value to transmit to the sensor for a parameter writes transfer. XENDAT.Addr 7 32 bit RW 0 Address to read/write to sensor in manual mode. The ENDAT manual uses WORD as a notation for parameters, to convert a WORD value to an address use XENDAT.Addr = rWORD and 15. Read: Address received from the sensor as a result of a parameter read transfer. Write: Address to write ENDAT.Data to, within the ENDAT based sensor. XENDAT.Transfer 8 0-7 RW 0 To manually issue a command, command type is 0 to 7. After sensor initialization the following transfer types are available. Before a new transfer is issued with the ENDAT interface a programmer must check that User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 167

EXTENDED REGISTER GROUPS<br />

XENDAT.Transfer = 0.<br />

XENDAT,<br />

b1 (2) = CRCbit, CRC compare mismatch.<br />

b2 (4) = PWRbit, current status <strong>of</strong> the ENDAT power<br />

supply.<br />

b3..b15 = reserved.<br />

XENDAT.Config 4 0..63 RW 25<br />

Specifies the number <strong>of</strong> position data bits for the particular<br />

sensor in use. This value must be set to match the actual<br />

sensor in use.<br />

The DMC 2 can handle maximum 32 bits <strong>of</strong> position<br />

information, thus if a sensor with more than 32 bits is used,<br />

the most significant bits are discarded. If the sensor used<br />

less than 32 bits, the driver will incrementally extend the<br />

ENDAT position to 32 bits, to be able to fully utilize the<br />

DMC 2 functionality.<br />

XENDAT.Rdy 5 0..1 R 1<br />

This member indicates when the ENDAT communications<br />

interface has completed a manually issued command.<br />

XENDAT.Data 6 16 bit RW 0<br />

Data to/from a manually issued command.<br />

Read:<br />

Value received from the sensor as a result <strong>of</strong> a<br />

parameter read transfer.<br />

Write:<br />

Value to transmit to the sensor for a parameter writes<br />

transfer.<br />

XENDAT.Addr 7 32 bit RW 0<br />

Address to read/write to sensor in manual mode.<br />

The ENDAT manual uses WORD as a notation for<br />

parameters, to convert a WORD value to an address<br />

use XENDAT.Addr = rWORD<br />

and 15.<br />

Read:<br />

Address received from the sensor as a result <strong>of</strong> a<br />

parameter read transfer.<br />

Write:<br />

Address to write ENDAT.Data to, within the<br />

ENDAT<br />

based sensor.<br />

XENDAT.Transfer 8 0-7 RW 0<br />

To manually issue a command, command type is 0 to 7.<br />

After sensor initialization the following transfer types are<br />

available. Before a new transfer is issued with the<br />

ENDAT interface a programmer must check that<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />

167

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!