Home > Stage with Integrated Controller > Direct Control through Serial Port

 

Stage with Integrated Controller - Direct Control through Serial Port

Stage with Integrated Controller can be controlled directly by sending commands to the built-in controllers. The easiest way to try this is by using HyperTerminal, which should be set as follows: 9600 bits/sec., data bits 8, parity none, stop bits 1, flow control Xon/Xoff, select your COM port, in ASCII setup in the Send frame check "Send line ends with line feeds" and check "Echo typed characters locally", and in the Receive frame check "Append line feeds".

To use the stage you need to know at least two commands "P" - move by a given number of microsteps in the positive direction, and "D" - move by a given number of microsteps in the negative direction. The stage has two controllers assigned numbers 3 (X) and 4 (Y). This number is set by a rotary switch in the controller. After power up the microstep resolution is 1/256 of full step. So, assuming the full turn of the lead screw is 1 mm, one microstep is 1000 microns / 200 motor steps per revolution / 256 = 0.01953125 μm.

The following command (after typing the command press Enter):

/3P10000R

will move the stage in X by 195.3125 μm in the positive direction. Commands begin with forward slash followed by the controller number and end with "R" and <Enter>.  All commands return a string, which does not need to be analyzed except to read the position (see below).  The structure of the return string is: start character (/), master address (0), status byte, possibly return information, terminator byte.

Other useful commands:

"z" command - set current position as zero. This command may cause a slight move of the motor as it moves to the nearest motor pole. Example: /3z0R

"Z" command - Home to switch moving at most the given number of microsteps and set position to zero. This command finishes at motor pole. Example: /3Z1000000000R

"A" command - move to absolute position. Example: /3A12345R  (moves to microstep position 12345)

"?" command - read current position. Example: /3?0 ("R" at the end is not needed). This command returns string /0`12345  . (assuming it is performed after the previous "A" command).

For more details on programming see the EZHR17EN command set.