Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
K6221.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: All | ||||||
Description:
| ||||||
Documentation:
Configure first a macro motor controller with DEVICE field set to string "k6221" and ADDR field set to the full GPIB address where the controller can be reached (ex: "0:12"). Therefore there must be ONE macro motor controller per K6221 Then configure a motor using the previous controller, the "channel" is used to select what to control. 0 for "output current" and 1 for "compliance voltage" The unit of "current" motor will be amps and the unit of "voltage" motor will be volts. | ||||||
Macros:
Usage: k6221cmd motor command Send the given command to the controller associate to the given motor and print out the answer if there is one. Ex: k6221cmd m0 *IDN? k6221on Usage: k6221on motor Switch on output of the controller associate with given motor. k6221off Usage: k6221off motor Switch off output of the controller associate with given motor. | ||||||
Internal Macros: | ||||||
Usage: k6221_config () Called by spec after reading the config file k6221_cmd Usage: k6221_cmd () Called by spec on motor operation. _k6221_error_clear Usage: _k6221_error_clear (addr) Clear any previous error _k6221_error_print Usage: _k6221_error_print (addr, msg, silent) Retrieve current error and print it out with the optional given message except if silent has be requiered. Returns non null if there was an error pending. _k6221_onoff Usage: _k6221_onoff (mne, state) Control controller output for the given motor. _k6221_cmd Usage: _k6221_cmd (addr, command) Send the given command to the controller given by its address and returns the answer if there is one. Otherwise returns an empty string. | ||||||
|