piezo_gcs.mac $Revision: 1.2 $ |
[
source code |
installed at |
configured at
]
|
See other macros in category:
All
|
Description:
Macros to control a KEPCO Bipolar amplifier powersupply connected via GPIB line.
|
Documentation:
DESCRIPTION
This macro file allows to connect a kepco to macro motors in SPEC.
Controllers currently supported are:
- kepco BOP 50-8M (GPIB)
-
For debug purpose mainly, it's also possible to configure a macro
counter that will read the position of a kepco axis. But to avoid
duplicating parameters, the counter has no parameter and takes them
from its corresponding macro motor. In order to guess the motor
to use, the name of the counter must be the same as the motor with
\"_c\" added at the end.
For instance: \"nnn_x_c\" for \"nnn_x\"
SETUP
In order to configure a macro motor:
- 1)
You must have a "MOTORS" defined with:
- DEVICE
set to "kepco"
- TYPE
set to "Macro Motor"
- ADDR
set to the GPIB_Address of the controller
- NUM
must be set also
- 2)
Per kepco axis you must define a motor with:
- Controller
set to "MAC_MOT"
- Unit
field must be set to the "MOTOR" entry.
- 3)
In the config file add for each motor (WARNING: these
parameters are critical and can damage your hardware if wrong. They
are specific to each axis and not to the controller. Therefore
check with Electronics Group the value and DO NOT
copy/paste these values)
- MOTPAR:source = vout|iout
Voltage source or Intensity source pseudo motor
- MOTPAR:nada =
In order to configure a macro counter:
- 1)
You must have a "SCALERS" defined with:
- DEVICE
set to "kepco_c"
- TYPE
set to "Macro Counter"
- NUM
must be set also
- 2)
Per kepco axis you must define a counter with:
- Device
set to "MAC_CNT"
- Mnemonic
must the motor mne plus "_c"
- Unit
do not mind
- Chan
do not mind
|
Macros:
kepcodebug
Usage: kepcodebug [personal msg]
Switch on or off the print of debug messages
|
Internal Macros:
|
kepco_checkctl
Usage: kepco_checkctl
Check if controller was well configured
kepco_config
Usage: kepco_config(num,type,p1,p2,p3)
MACRO MOTOR:
Called by spec after reading the config file
kepco_getpos
Usage: kepco_getpos (motor_num)
MACRO MOTOR:
return the position read from the controller
kepco_cmd
Usage: kepco_cmd(num,key,p1,p2)
MACRO MOTOR:
Called by spec on motor operation.
kepco_c_config
Usage: kepco_c_config(num,type,p1,p2,p3)
MACRO MOTOR:
Called by spec after reading the config file
kepco_c_cmd
Usage: kepco_c_cmd(num,key,p1,p2)
MACRO MOTOR:
Called by spec on counter operation.
|
Filename: | kepco.mac |
Author: | L.C. BLISS 2006 |
Last mod.: | 23/11/2010 13:38 by guilloud |
|