CUI AMT203 Скачать руководство пользователя страница 10

date
page

10/2010

10 of 13

20050 SW 112

th

 Ave. Tualatin, Oregon 97062     phone 503.612.2300    fax 503.612.2380   www.cui.com

PART NUMBER:   

 

 

 

      DESCRIPTION: 

 

 

 

 

AMT203

DEMO KIT USER GUIDE

© 2010 CUI Inc. All rights reserved.

Information in this document is subject to change without notice.

INSTALLATION

The TCL installer is included on the flash drive, as ActiveTcl8.5...exe This should be run to install the TCL 
interpreter.  After the TCL interpreter is installed, there will be a desktop icon Tclsh8.5, which can be double-
clicked to start a TCL shell.  The COMM package needs to be added. To do this simply start a TCL shell and type:

% teacup install comm

The teacup utility will go out over the internet, get the COMM package and install it. It will respond with the version 
number if all is well. The package is permanently installed so it is not necessary to repeat this installation.

EXAMPLE #1: RUNNING GETPOS

 

You must exit HyperTerminal (Hyperterm) before running the following command examples.  Be sure 

 

to use the “Safely Remove Hardware” option in the task bar to disconnect the USB line.

There is a folder on the Installation CD called TCL_ABS_work. Copy this folder to the desktop.  Start a TCL shell 
using the Tclsh85 shortcut and type the following:

% source abs_proc.tcl
% set com [StartCom [last_serial_port]]
% GetPos $com

Figure 7 shows the results of running the command sequence above. Note that if the COM port is other than com3 
there will be an error message instead of the file name when setting the com variable.  We recommend using [last_
serial_port] instead of com3.

TCL AUTOMATION SCRIPTS

Figure 7: GetPos example

Содержание AMT203

Страница 1: ...AMT203 ABSOLUTE ENCODER Demo Kit User Guide...

Страница 2: ...DATE for XP86 XP64 and Vista 32 and 64 bit The USB connector provides power whether or not the driver is installed on the host PC If the board is first plugged into the USB connector the AMT DMBD will...

Страница 3: ...the USB interface is more useful for automatic testing NO CONNECT Figure 2 shows the display when there is no encoder attached The version is shown as V11 The firmware can be updated using a Microchi...

Страница 4: ...when viewed from front QAQB STB QAQB for standard 90 deg quadrature output or STB for counter output NEXT go to the next Display Menu B3 B0 set the encoder resolution according to Resolution Table B4...

Страница 5: ...zero position or loading configured settings The buttons function as follows ZERO set current absolute position to zero PROGRAM load all configured settings into encoder memory Figure 7 displays the...

Страница 6: ...n This setting is to allow a logic analyzer to view the read protocol on the SPI lines EXIT return to the main menu NEXT returns eeprom XX location value XX displayed eeprom value swith has no functio...

Страница 7: ...mmands as described below A Set up Hyperterm in the properties menu for example set up a new session called usbftdi ht B Connect to set to the com port that C In the congifuration submenu the Bits per...

Страница 8: ...the com port driver including the USB serial driver This works for example if you exit Hyperterm abruptly and it will not start again because the port is unavailable Once again this is because the CO...

Страница 9: ...er AMT DMBD USER COMMANDS p read Position d set display radix 10 decimal h set display radix 16 hex This is the default 0 zero set position to zero y set fast read Y set no fast read k set encoder pos...

Страница 10: ...ckage and install it It will respond with the version number if all is well The package is permanently installed so it is not necessary to repeat this installation EXAMPLE 1 RUNNING GETPOS You must ex...

Страница 11: ...a number and steps that many increments with delta msec between proc step numsteps delta cm for set i 0 1 numsteps incr i 1 puts cm x gets cm yy after delta GetCSDPos takes a filename numsamp steps_pe...

Страница 12: ...in this document is subject to change without notice Figure 8 shows the TCLSH screen with the commands being run the output file is shown below the CSD is shown To output decimal data the d command co...

Страница 13: ...cated at the bottom right edge of the board Pin names are as shown and it is designed to match the ABS encoder connector The Expansion Connector is a 20 pin connector along the top edge of the board T...

Отзывы: