Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
Skeleton_mh.mac $Revision: $ | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: All | ||||||
Description:
| ||||||
Documentation:
The macros provide users with an interface between SPEC and the Skeleton device. INTERNALS You may declare a motor and a counter, even for the same device! The macro motor/counter macros can handle that. Now declare a motor controller: MOTORS DEVICE ADDR <>MODE NUM <>TYPE Then create the macro motor: Unit is always 0 ! Number: <>Controller 0: MAC_MOT (Skeleton: possibly necessary ?)Then hit 'm' twice. Set the following for your motor: Hardware read mode <> PR + AL + NQ Now declare a scaler controller: SCALERS DEVICE ADDR <>MODE NUM <>TYPE The counter is then configured as : Number Name Mnemonic <>Device Unit Chan <>Use As Scale Factor 3 Skel Skel MAC_CNT 0 1 counter 1 INTERNALS | ||||||
Macros:
Usage: skeleton_debug toggle debug mode for the present macros. | ||||||
Internal Macros: | ||||||
Usage: __Skeleton_tango_catch_error __skeleton_error Usage: __skeleton_error (mesg) Attempts to write indentical error message only once in a while SKELETON_config Usage: SKELETON_config (mne, type, unit, mod, chan) Called by spec SKELETON_cmd Usage: SKELETON_cmd(mne, cmd, p1, p2, p3) Called by spec | ||||||
|