# Calcomp 9500 digitizer, ASCII format 6
#
# Originally build and tested by 
#  Terry Baker and David Gerdes  USA-CERL  1992

setup
{
    digname = Calcomp
    description = Calcomp digitizer, ascii format 6
    buttonoffset = 1
    buttons = 16                #number of buttons on digitizer
    buttonstart = 0             #number buttons start with
    baud = 9600
    units_per_inch = 1000
    button_up_char = U
}


startrun
{
    send = \027%^6\013          #set output format to format 6
    send = \027%R\013           #set to run mode
}

startpoint
{
    send = \027%^6\013          #set output format to format 6
    send = \027%P\013           #set to run mode
}

startquery
{
    send = \027%^6\013          #set output format to format 6
    send = \027%R\013           #set to run mode
    send = \027%Q!\013          #set prompt character to '!' and 
				              #put in prompt mode
}

query
{
    send = !\013                #send prompt
}

stop
{
    send = \027%H\013            #halt
}

format 
{
    ascii = b?xxxxxyyyyy
}
