| QG2.MAC |
|
[
source code |
installed at |
configured at
]
|
|
See other macros in category:
All
|
Description:
Macros to control the Queensgate piezos through a serial line.
|
Documentation:
DESCRIPTION
These macros allow to define move and read the position of several
Queensgate piezos, and to configure them as pseudomotors
These piezos are assumed to be controlled through
a serial line
ATTENTION
- Always put the baud rate to 2400 baud. The controller can not keep up
with the high speed of 9600 baud for some commands. Pierre Pinel did some
extensive tests in the lab to find that.
- The offset knob on the controller adds to the voltage applied via the
RS232 controlled unit. There are possitions of the knob were the computer can
not reach the full range.
- Reading back the encoder position can only be done with 2 bits less
precision and is therefore useless. The current macro set do not read back
the position.
|
Macros:
qg_mv
Usage: qg_mv <motor_mnemo> <QG_list_index>
Moves the associated Piezo with the A[] value
motor_mnemo : pseudo motor mnemo name
QG_list_index : index in QG_DEV list
qgsetup
Usage: qgsetup <nb_of_qg> <dev_name> <piezo_mne> <module_nb> <length> <scale>...
creates the queensgate pseudomotors.
- nb_of_qg : number of devices
and for each device:
- dev_name
- device server name of the serial line device
- piezo_mne
- piezo mnemonic
- module number
- 1,2,3 for M1,M2,M3
- length
- complete length of the piezo,
- scale
- a scale factor. length is multiplied by this factor
This allows the length to be the real length of the piezo, and
the user to work in his own units.
|
|
Internal Macros:
|
qg_read
Usage: qg_read
qg_init
Usage: qg_init
qg_initall
Usage: qg_initall
qg_put
Usage: qg_put(devname, str)
qg_get
Usage: qg_get(devname)
no_cntl
Usage: no_cntl(str)
|
| Filename: | qg2.mac |
| Author: | J.KLORA - MCD 22/1/96 |
| Last mod.: | 08/08/2002 14:37 by berruyer |
|