//*************************************
//
// E.S.O. - VLT project
//
// "@(#) $Id: workshop.cdt,v 2.27+ 1999/03/09 12:53:31 vltsccm Exp $"
//
// waSetValue.cdt"
// 
// Who       When        What
// --------  ----------  ----------------------------------------------
// eallaert  1999-03-24  Created
//
// 
//======================================================================

//====================================================================== 
// The Public commands defined for the application
//====================================================================== 

PUBLIC_COMMANDS

//====================================================================== 
COMMAND= 		SETVAL
SYNONYMS= 		setvalue
FORMAT=			A 

PARAMETERS=
    PAR_NAME=           position
    PAR_TYPE=           REAL
    PAR_RANGE=          INTERVAL MIN=-40000.0 ; MAX = 60000.0
    PAR_OPTIONAL=       YES
    PAR_DEF_VAL=        500

REPLY_FORMAT= 		A
REPLY_PARAMETERS=
    PAR_NAME=           status
    PAR_TYPE=           STRING
    PAR_DEF_VAL=        "OK"

HELP_TEXT=
Set the motor to the position corresponding to value.
@

//====================================================================== 
COMMAND= 		GETVAL
SYNONYMS= 		getvalue
FORMAT=			A 

REPLY_FORMAT= 		A
REPLY_PARAMETERS=
    PAR_NAME=           position
    PAR_TYPE=           REAL
    PAR_DEF_VAL=        0.0

DISPLAY_FORMAT=         "%f"
HELP_TEXT=
Get the current motor position.
@

//======================================================================
// Standard commands
//======================================================================

COMMAND= EXIT

SYNONYMS=

FORMAT= A

PARAMETERS=

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Terminate the process
@
//----------------------------------------------------------------------

COMMAND= INIT

SYNONYMS=

FORMAT= A

PARAMETERS=
    PAR_NAME=    function
    PAR_TYPE=    STRING
    PAR_OPTIONAL= YES
    PAR_MAX_REPETITION=999

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Initialize the software and read config parameters
@
//----------------------------------------------------------------------


COMMAND= STOP

SYNONYMS=

FORMAT= A

PARAMETERS=
    PAR_NAME=    function
    PAR_TYPE=    STRING
    PAR_OPTIONAL= YES
    PAR_MAX_REPETITION=999

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Stop telescope movement
@
//----------------------------------------------------------------------


COMMAND=  PING

FORMAT= A

PARAMETERS=

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Get lifesign from module.
@
//----------------------------------------------------------------------


COMMAND=  STATE

FORMAT= A

PARAMETERS=

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "ONLINE"

HELP_TEXT=
Get state of module.
@
//----------------------------------------------------------------------


COMMAND=  STATUS

SYNONYMS= getStatus, GSTS

FORMAT= A

PARAMETERS=
    PAR_NAME=    function
    PAR_TYPE=    STRING
    PAR_OPTIONAL=YES
    PAR_MAX_REPETITION=999

    PAR_NAME=    global
    PAR_TYPE=    LOGICAL
    PAR_OPTIONAL=YES
    PAR_DEF_VAL= FALSE

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "State: ONLINE - Default CMD reply"

HELP_TEXT=
Get complete status of module.
@
//----------------------------------------------------------------------

COMMAND= OFF

SYNONYMS=

FORMAT= A

PARAMETERS=

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Switch to LOADED state
@
//----------------------------------------------------------------------

COMMAND= ONLINE

FORMAT= A

PARAMETERS=

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Switch to ONLINE state
@
//----------------------------------------------------------------------

COMMAND= STANDBY

SYNONYMS=

FORMAT= A

PARAMETERS=

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Switch to STANDBY
@
//----------------------------------------------------------------------

COMMAND=  VERBOSE

SYNONYMS= 

FORMAT= A

PARAMETERS=
    PAR_NAME=    onOff
    PAR_UNIT=
    PAR_TYPE=    STRING
    PAR_RANGE=   ENUM "On" , "Off"
    PAR_DEF_VAL= "Off"

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Switch on or off verbose mode.
@
//----------------------------------------------------------------------

COMMAND=  VERSION

SYNONYMS= GetVersion

FORMAT= A

PARAMETERS=

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "@(#) $Id: evhSampleSTD_COMMANDS.cdt,v 1.87 1999/01/13 14:31:56 vltsccm Exp $"

HELP_TEXT=
Get version of module.
@


MAINTENANCE_COMMANDS


TEST_COMMANDS

//----------------------------------------------------------------------

COMMAND= SELFTST

SYNONYMS=

FORMAT= A

PARAMETERS=
    PAR_NAME=    function
    PAR_TYPE=    STRING
    PAR_OPTIONAL= YES
    PAR_MAX_REPETITION=999


REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Perform a self-test of the software module
@
//----------------------------------------------------------------------

COMMAND= SIMULAT

SYNONYMS=

FORMAT= A

PARAMETERS=
    PAR_NAME=    function
    PAR_TYPE=    STRING
    PAR_OPTIONAL= YES
    PAR_MAX_REPETITION=999

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Switch on simulation mode
@
//----------------------------------------------------------------------

COMMAND= STOPSIM

SYNONYMS=

FORMAT= A

PARAMETERS=
    PAR_NAME=    function
    PAR_TYPE=    STRING
    PAR_OPTIONAL= YES
    PAR_MAX_REPETITION=999

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Switch off simulation mode
@

//----------------------------------------------------------------------

COMMAND= TEST

SYNONYMS=

FORMAT= A

PARAMETERS=
    PAR_NAME=    function
    PAR_TYPE=    STRING
    PAR_OPTIONAL= YES
    PAR_MAX_REPETITION=999

REPLY_FORMAT= A
REPLY_PARAMETERS=
    PAR_NAME=    done
    PAR_TYPE=    STRING
    PAR_DEF_VAL= "OK"

HELP_TEXT=
Perform a complete test of the software module
@

