Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
syncmot.mac | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: Positioning | ||||||
Description:
| ||||||
Documentation:
Macro for defining macro motors as a combination of an arbitrary number of real motors that need to be moved together like, for example, the height of a table. To define a motor that would perform synchronize movement on other motors you need to define a macro motor controller in config with macro prefix = syncmot Then define a motor on that controller and set as motor parameter in config the nbmotors value and as many mot-x- entries as necessary referring to real motors EXAMPLE In CONFIG file header: PSE_MAC_MOT = syncmot 8Then define in the motor definition area: MOT011 = MAC_MOT:0/0 2000 1 2000 200 50 125 0 0x003 mhgt Hht MOTPAR:nbmotors = 3 MOTPAR:mot1 = j1 MOTPAR:mot2 = j2 MOTPAR:mot3 = j3 | ||||||
Macros:
| ||||||
Internal Macros: | ||||||
Usage: syncmot_config(mne,type,unit,module,chan) Used on spec config or reconfig syncmot_calc Usage: syncmot_calc(mne, mode) Used for reading macro motor position or calculating real motor displacements | ||||||
|