We don't want to change anything on the controller when we start SICS so we don't interfere with whatever else is talking to it. So don't command it during init.
We also want to send Speed, Accel and Decel on each move so we defer those until then.
r3622 | dcl | 2012-06-28 15:39:47 +1000 (Thu, 28 Jun 2012) | 5 lines
bias off the high bits on multiturn encoders because these bits can
increment if you unplug a resolver.
r3307 | ffr | 2011-12-02 12:49:54 +1100 (Fri, 02 Dec 2011) | 4 lines
SICS-418 Make sure hnotify sends messages as hdbevents when using the
JSON protocl
site_ansto/instrument/config/hmm/hmm_object.tcl
Initialise the hmm object to make sure the read type is set.
nxscripts_common_1.tcl
Set the read type when saving the hmm data.
server_config.tcl
Fix the autosave command so that you can enable/disable autosave while
the histogram memory is running.
protocol.c
Reduce noise in log files when using the JSON protocol. Don't log
messages generated during macro execution (ie within a TCL proc).
motor.c:MotorStatus
Abort the current operation, the scan command and batch files when a
motor object returns a hardware fault status value.
motor_dmc2280.c
set driver status to HWFault when the driver is in the error state.
r3251 | ffr | 2011-09-23 08:49:00 +1000 (Fri, 23 Sep 2011) | 25 lines
When a motor stops and power saving is enabled (ie motor left on) the driver should check for faults and then transition to the idle state.
r3134 | ffr | 2011-05-19 08:37:16 +1000 (Thu, 19 May 2011) | 2 lines
Reduce log noise by setting iout = eInternal for macros.
servlog.c
Fixed timestamp in logfiles to get hours.
hmm_configuration_common_1.tcl
Added ML's mods to wombat config: ie BAT and FAT TABLE attributes and elements for multi-period acquisition and histo-streaming.
Fixed "failed lsearch" bug. It's more robust to test for a non-successful lsearch instead of a failed lsearch.
nxscripts_common_1.tcl
SICS-297 Fixed Saving data series in a scratch file overwrites earlier entries.
instdict_specification.tcl
Added "scobj" kind and "sct_indexed_motor" sics object type for script context controllers and and objects.
hipadaba_configuration_common.tcl
Added sct_indexed_motor sics obj type to ::hdb::sobjadd and scobj kind to ::hdb::add_node
sct_positmotor_common.tcl
Update the index SICS variable when updating the current index value to make sure that the position is saved in the data file.
You must now provide the hdb node_name when creating the sct posit motor.
mk_sct_positmotor now sets the "param" and "long_name" attributes on the posit motor object
util/utility.tcl
Added ::utility::set_sct_indexed_motor_attributes to set SICS object attributes required for generating hdb info for an SCT_POSIT_MOTOR
nxscript.c
Merge the ansto mod to putslab (rev1.7) which adds support for saving unbuffered data from the histmem.
sicshipadaba.c
This incorporates the patch made to CommandSetCallback in rev1.10 so it can just be copied as is (ie no merge required).
WARNING: There are changes to ListHdbNode to handle record separators which may affect us.
Disabled sending hdb command start and stop messages because they break gumtree
sicshdbfactory.c
Disabled sending hdb command start and stop messages because they break gumtree
hipadaba_configuration_common.tcl R2.4DEV
The sct_posit_motor case of ::hdb::sobjadd is only needed to call add_node with kind=scobj.
nxscripts_common_1.tcl R2.4DEV
Added ::nexus::scobj::sdsinfo
_gen_nxdict now skips nodes with data_type == "none"
new util/script_context_util.tcl R2.4DEV
Adds ::scobj::hinitprops command to initialise the hdb properties for script context object nodes.
sct_positmotor_common.tcl R2.4DEV
Use ::scobj::hinitprops utility command to initialise hdb properties on script context object parameter nodes.
dynstring.c
DynStringReplace should memcopy '\0', otherwise it can get the wrong length for iTextLen.
Added DynStringReplaceWithLen to allow initialising a dynstring with char arrays which contain null chars and
other non-ascii chars. Useful for read and write buffers in script context.
ascon.c
AsconRead return NULL for noResponse and AsconFailed otherwise the "result" node gets set with a spurious empty value.
scriptcontext.c
SctActionHandler only set the "result" node if there really is a reply.
sicsobj.c
Update from M.K.
site_ansto.c
Added galil and ordela hvps protocol handlers for scriptcontext.
motor_dmc2280.c
Allow home parameter to be outside of limits (for KOWARI)
hardsup/makefile
Added ordela HVPS protocol handler
hardsup/sct_orhvpsprot.c
New ordela HVPS protocol handler. Retries on NAKs and re-orders pot channels (ie toggles lower two bits).
hardsup/sct_velselprot.c
Start velocity selector protocol handler.
hardsup/sct_galilprot.c
Completed galil protocol handler.
hipadaba_configuration_common.tcl
Add new style SICS objects to hdb tree.
instdict_specification.tcl
Added scobj to kind list and sct_motor to sics object list. (and some housekeeping)
hmm_configuration_common_1.tcl
Added ratemaps to simulation. Fixe BAT_TABLE and added PERIOD_INDICES as per Mark Lesha's mods for multi-period acquisition.
ratemaps now return float.
sct_postimotor_common.tcl
Now setting properties on the posit motor object so that it can be automatically added to the hdb tree.
hrpd/config/motors/motor_configuration.tcl
Fixed simulated msd motor so that it's handle properly in the hdb layer.
sans/config/hmm/detector_ordela.tcl
Updated the ordela calibration script to use the new sct_orhvpsprop.c script context controller.
quokka_configuration.tcl
Deleted lines which set the hdb properties for script context posit motors. This is now handled automatically as for other SICS objects.
utility.tcl
setpos now replaces the motor setpos subcommand.
Added functions to set script context object attributes and sct_posit motor attributes.
Created hparPath and hsibPath convenience commands for new-style SICS objects.
script_context_util.tcl
NEW! Adds hinitprops function to initialise the hdb properties for a script context object
r2758 | ffr | 2008-12-12 17:53:53 +1100 (Fri, 12 Dec 2008) | 113 lines
Reverted change from rev 1.79 19-Aug-08
which was supposed to send IDLE state position updates if position change is greater than the precision.
r2697 | ffr | 2008-09-18 16:00:52 +1000 (Thu, 18 Sep 2008) | 5 lines
Lakeshore controllers will be connected to the ca5-[instrument] moxa box
Default config parameters are now available via a tc_dfltPar array
IP and socket number are now mandatory when creating an ls340 object
hrpd/.../lakeshore340.tcl
Multiple lakeshores can now be added to the hdb tree
echidna_configuration.tcl
Provide example for configuring two lakeshores
SICS-134 reflectometer/../commands.tcl
First draft of beam/attenuator command, currently sends POS=xx (this won't work)
reflectometer/../motor_configuration.tcl
Add bat position feedback via action
sans/../motor_configuration.tcl
Renamed action parameter (aoid) to "action"
server_config.tcl
Initialise motor movecount to 500 to reduce number of position updates by a factor of 50
SICS-134 action.c
Update the beam/attenuator command feedback variable when POS changes.
SICS-134 motor_dmc2280.c
Added PLP:BAT:POS status response handler for platypus bat position updates
Only send IDLE state position updates if position change is greater than the precision.
Rename action parameter (aoid) to "action"
r2679 | ffr | 2008-08-19 15:11:55 +1000 (Tue, 19 Aug 2008) | 31 lines
sans/config/hmm/detector.tcl
Use dns-name for voltage controller address.
sans/config/motors/motor_configuration.tcl
Set det home position.
SICS-122 Added FastShutter variable and configured det motor with an action object to set the FastShutter variable.
SICS-248 Replaced beamstop motor objects with beamstop action objects.
action.[ch]
The action object factory will eventuall be defined here.
SICS-122 Currently there is just a funcion which sets the FastShutter variable
beamstopaction.c
Added motion control enabled check.
Added "list" subcommand.
Makefile
Compile action.c
motor_dmc2280.c
The status check command now always checks the TI1 and TI0 interrupts.
Added action-object configuration parameter. Call AO_istatus with TI1
if configured with an action object.
r2674 | ffr | 2008-08-13 14:16:30 +1000 (Wed, 13 Aug 2008) | 26 lines
Discard outstanding message response on entering State_Unknown (timing window)
Don't break if it times out while waiting
Defer various faults until motor has stopped
Rename absenc to absencoder in list command (if has encoder)
Modify absenc to report integer encoder value
Allow manager to set various sensitive values in motor debug mode
Make motor "reset" command wait until motor reinitialised (timing window)
r2520 | dcl | 2008-05-12 11:05:35 +1000 (Mon, 12 May 2008) | 9 lines
Reject NaN and Infinity in run command.
Change error message for both limit switches active.
Check status of BG command in case it failed.
r2482 | dcl | 2008-04-24 12:08:03 +1000 (Thu, 24 Apr 2008) | 5 lines
detect position overrun error and stop runaway motor
implement deferred fault reporting until after motor stopped
save and report timer period in debug output (DMC_SetTimer)
handle leading '-' on numeric galil response
more comment documentation
remove unused variables
r2423 | dcl | 2008-04-14 09:38:41 +1000 (Mon, 14 Apr 2008) | 8 lines
Handle TimeOut events during Idle state. These have been observed to occur when a scan skips a point because of a drive failure.
r2237 | ffr | 2007-11-07 15:41:21 +1100 (Wed, 07 Nov 2007) | 4 lines