Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
simulmot $Revision: 1.7 $ | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: All | ||||||
Description:
| ||||||
Documentation:
Versions >1.3 fix a bug in the macro simulon when started with all arguments (simulon motor home lhwlimit hhwlimit) Versions >1.3 include 2 new commands simul_enable_hwl and simul_disable_hwl to enabble or disable the harware limit switches. These values are set by the command simulon motor home_pos low_hw_limit high_hw_limit If one forget to set theses values in the setup file when Spec is started from fresh it will be impossible to move a simulation motor raising the error: Both hard limits active on motor 0, unit 0, "motor_name" If you don't want to set these values using simulon you can put the command simul_disable_hwl motor_name in your setup file. Gilbert 04/11/2009 SETUP | ||||||
Macros:
Usage: simulon () simul_disable_hwl Usage: simul_disable_hwl motor_name Disable the hardware limits for a motor simul_enable_hwl Usage: simul_enable_hwl motor_name Enable the hardware limits for a motor | ||||||
Internal Macros: | ||||||
Usage: simulglobals () simulcglobals Usage: simulcglobals () simulcon Usage: simulcon () usertosteps Usage: usertosteps (mnum, vuser) stepstouser Usage: stepstouser (mnum, steps) dialtosteps Usage: dialtosteps (mnum, vdial) stepstodial Usage: stepstodial (mnum, steps) simul_cmd Usage: simul_cmd (mne, what, p1, p2) simul_par Usage: simul_par (mne, key, action, p1) simul_config Usage: simul_config (mne, code, p1, p2) code is mot ctrl detach simul_calcregions Usage: simul_calcregions (mne, totalmove, baserate, slewrate, acctime) Calculate the different regions (acc/constant/decel) in pos and time simul_calc_real_acc_s Usage: simul_calc_real_acc_s (s, baserate, slewrate, acctime) Calculate the real length of the acceleration phase simul_getpos Usage: simul_getpos (mne) Return the actual position (from global variables) simul_startmove Usage: simul_startmove (mne, target) simul_calcpos Usage: simul_calcpos (mne,t) Return the position when time is given simulc_cmd Usage: simulc_cmd (mne, what, p1, p2) ct_prestart_all ct_prestart_one ct_start_one time mode (1 = monitor, 2 = time, 3 = continious) ct_start_all ct_get_status ct_counts should return the current counter values Simulated COUNTER simulc_par Usage: simulc_par (mne, key, action, p1) simulc_config Usage: simulc_config (mne, code, p1, p2) simulc_updatecounts Usage: simulc_updatecounts (mne) ptest_config Usage: ptest_config(mne, type, p1, p2) ptest_calc Usage: ptest_calc(mne, mode, mne2) | ||||||
|