tech_note_rs232_comm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tech_note_rs232_comm [2021/04/20 17:40] – jon | tech_note_rs232_comm [2026/09/22 20:19] (current) – remove references to sending serial commands with Tiger Controller Console brandon | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Physical interface ===== | ===== Physical interface ===== | ||
| - | MS2000 and RM2000 controllers have a physical RS-232 serial port (a 9-pin D-sub connector). | + | MS2000 and RM2000 controllers have a physical RS-232 serial port (a 9-pin D-sub connector). |
| - | For USB connections, | + | TG-1000 " |
| - | ==== Table 1: Serial Link Info ==== | + | If your controller can accept more than one physical connector it does not make a difference which you use. |
| - | ^ ^MS2000 and RM2000 ^TG-1000/Tiger ^ | + | ===== Serial Link Info ===== |
| - | ^Baud Rate | < | + | |
| - | | + | ^ ^MS2000 and RM2000 ^TG-1000 |
| - | ([[ms2000_operation# | + | ^Baud Rate | [[ms2000_operation# |
| ^Data Bits | 8 || | ^Data Bits | 8 || | ||
| ^Parity | None || | ^Parity | None || | ||
| ^Stop Bits | 1|| | ^Stop Bits | 1|| | ||
| ^ Flow Control | None || | ^ Flow Control | None || | ||
| + | |||
| + | ===== Serial Port Drivers ===== | ||
| + | |||
| + | For USB connections, | ||
| + | |||
| + | As of early 2018 there was a bug affecting the " | ||
| + | |||
| + | For troubleshooting connectivity issues in Windows with a USB cable: open Windows Device Manager and expand the section "Ports (COM & LPT)" | ||
| + | |||
| + | [{{documentation/ | ||
| ===== Software ===== | ===== Software ===== | ||
| Line 24: | Line 34: | ||
| All software control is using the serial commands sent over the serial port (or virtual serial port with USB connection). | All software control is using the serial commands sent over the serial port (or virtual serial port with USB connection). | ||
| - | Only one program can use the serial port at a time due to the nature of serial ports. | + | Only one program can use the serial port at a time due to the nature of serial ports. |
| - | ==== ASI Console, | + | ==== ASI Console, Tiger Controller |
| - | ASI Console: for MS2000, RM2000 | + | [[: |
| - | ASI Tiger Console: for TG-1000/ | + | [[: |
| - | + | ||
| - | Tiger Control Panel: for TG-1000/ | + | |
| + | [[tiger_control_panel|Tiger Control Panel]]: for TG-1000/ | ||
| ==== Micro-manager ==== | ==== Micro-manager ==== | ||
| Line 57: | Line 66: | ||
| - Send serial commands directly using the pyserial library | - Send serial commands directly using the pyserial library | ||
| - Use pymmcore package to access the MMCore layer of Micro-Manager where ASI devices have excellent support | - Use pymmcore package to access the MMCore layer of Micro-Manager where ASI devices have excellent support | ||
| - | - Use Pycro-manager | + | - Use pycromanager |
| | | ||
| See the [[python|Python]] page for details. | See the [[python|Python]] page for details. | ||
| - | |||
| ==== LabView ==== | ==== LabView ==== | ||
| Line 73: | Line 81: | ||
| === Termite === | === Termite === | ||
| - | An free and easy to use terminal program is Termite ( https:// | + | A free and easy to use terminal program is [[https:// |
| {{document: | {{document: | ||
| - | Note: your //Port// and //Baud rate// setting requirements may be different than shown, e.g. baud rate is 112500 | + | Note: your //Port// and //Baud rate// setting requirements may be different than shown, e.g. baud rate is always 115200 |
| Line 91: | Line 99: | ||
| Various proprietary high-level microscope control software which support ASI controllers (e.g. Molecular Devices’ Metamorph, Nikon Elements) uses serial commands to communicate with the controller. | Various proprietary high-level microscope control software which support ASI controllers (e.g. Molecular Devices’ Metamorph, Nikon Elements) uses serial commands to communicate with the controller. | ||
| - | |||
| - | |||
| - | ===== Command ===== | ||
| - | |||
| - | The controller’s instruction set is implemented using the following format: | ||
| - | |||
| - | COMMAND X=?????? | ||
| - | |||
| - | The COMMAND is a string of ASCII characters such as '' | ||
| - | |||
| - | Next are the axis parameters. | ||
| - | |||
| - | '' | ||
| - | |||
| - | For Tiger: When '' | ||
| - | '' | ||
| - | |||
| - | All commands are completed with a Carriage Return (ASCII hex code: '' | ||
| - | |||
| - | ===== Reply ===== | ||
| - | Upon receiving a Carriage Return <wrap reply>< | ||
| - | |||
| - | |||
| - | === MS-2000 Reply Syntax === | ||
| - | |||
| - | When a command is recognized, the controller will send back a colon '':'' | ||
| - | == Examples == | ||
| - | |||
| - | <asi> $ Typed commands are in THIS TYPEFACE | ||
| - | Controller replies are in THIS TYPEFACE</ | ||
| - | |||
| - | <asi> | ||
| - | $ MOVE X=1234 Z=1234.5 <CR> | ||
| - | :A < | ||
| - | $ MOVE X Y Z <CR> | ||
| - | :A < | ||
| - | $ WHERE X <CR> | ||
| - | :A 0 < | ||
| - | $ MOVE X=4 Y=3 Z=1.5 <CR> | ||
| - | :A < | ||
| - | $ WHERE X Y Z <CR> | ||
| - | :A 4 3 1.5 < | ||
| - | $ WHERE Z Y X <CR> | ||
| - | :A 4 3 1.5 < | ||
| - | </ | ||
| - | |||
| - | |||
| - | === Tiger Reply Syntax === | ||
| - | |||
| - | The TG-1000 has two reply syntaxes; the active one is set using the <wrap cmd> [[commands: | ||
| - | |||
| - | In the Tiger syntax no <wrap reply> :A </ | ||
| - | |||
| - | The above examples in Tiger reply syntax are as follows: | ||
| - | |||
| - | <asi> | ||
| - | $ MOVE X=1234 Z=1234.5 <CR> | ||
| - | :A < | ||
| - | $ MOVE X Y Z <CR> | ||
| - | :A < | ||
| - | $ WHERE X <CR> | ||
| - | :A 0 < | ||
| - | $ MOVE X=4 Y=3 Z=1.5 <CR> | ||
| - | :A < | ||
| - | $ WHERE X Y Z <CR> | ||
| - | :A 4 3 1.5 < | ||
| - | $ WHERE Z Y X <CR> | ||
| - | :A 4 3 1.5 < | ||
| - | ==== Query of Parameters ==== | ||
| - | |||
| - | Most commands used to set parameter values can be queried for the current values using the question-mark syntax: <wrap cmd> CMND X? Y? Z? F? </ | ||
| - | |||
| - | The controller will respond with CMND’s current settings, e.g. <wrap reply> :A X=0 Y=1 Z=10 F=2 </ | ||
| - | |||
| - | This feature is most useful when using a terminal program to change controller parameters to verify that you have made the changes that you think you did, or to check present settings. | ||
| - | |||
| - | |||
| - | ==== Error Codes ==== | ||
| - | |||
| - | When a command is received that the controller | ||
| - | <asi> : | ||
| - | |||
| - | The error codes are as follows: | ||
| - | ^: | ||
| - | ^: | ||
| - | ^: | ||
| - | ^: | ||
| - | ^: | ||
| - | ^: | ||
| - | ^: | ||
| - | ^: | ||
| - | ^: | ||
| - | ^:N-21 |Serial Command halted by the HALT command | ||
| - | ^: | ||
| Line 196: | Line 110: | ||
| Because the TG-1000/ | Because the TG-1000/ | ||
| + | |||
| + | === Low Level Commands === | ||
| If communication speed is of the utmost importance, it is possible to use binary commands in which case the controller doesn' | If communication speed is of the utmost importance, it is possible to use binary commands in which case the controller doesn' | ||
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
tech_note_rs232_comm.1618954837.txt.gz · Last modified: (external edit)
