esrf

Beamline Instrument Software Support
SPEC Macro documentation: [ Macro Index | BCU Home ]

ICE_SHUTTER.MAC
See other macros in category: All
Description:
    Macros to use a shutter controled by an IcePAP motor.
Documentation:
    DESCRIPTION
    The aim is to have a motor moving to two different positions depending on an incoming electrical signals. Typically, for a shutter, the two positions correspond to open and close positions of the shutter. The underlying IcePAP features used are the position lists and the tracking mechanism.

Macros:
    iceshutsetup
    Usage: iceshutsetup motor pos_closed pos_open [velocity acctime]
    Defines the closed and open positions used when tracking the incoming signal. The positions are absolute and given in user units. Optionaly new velocity/acceleration can be used when the motor will be moving during tracking. The acceleration is giveng in ms. No action on motor is done, therefore it's still usable as any other motor. ex ID16b: iceshutsetup shutr 15 0 6000 2

    iceshuton
    Usage: iceshuton motor
    Move the motor to the "closed" position and activate the tracking on the incoming signals. No check is done on the current incoming signal level. The current level MUST correspond to the "closed" position of the shutter. The motor velocity/acceleration will be changed to new values if they have been given on setup.

    iceshutoff
    Usage: iceshutoff motor
    Tracking incoming signal is des-activated. The motor can now be moved as any other motor. The velocity/acceleration are restored with the config values.

Internal Macros:
    _iceshutsetup
    Usage: _iceshutsetup (motor, pos_closed, pos_open, velocity, acctime)
    If velocity/acctime are null, the values from the motor config will be used.

    _iceshutcheck
    Usage: _iceshutcheck


    _iceshuton
    Usage: _iceshuton (motor)


    _iceshutoff
    Usage: _iceshutoff (motor)


    _iceshut_sync
    Usage: _iceshut_sync (motor)


Filename: ice_shutter.mac
Author: MP BLISS (Original 05/2016).
$Revision: 1.4 $ / $Date: 2021/12/02 11:42:12 $
Last mod.: 02/12/2021 12:42 by witsch