#  Genius NewSketch, Binary MM protocol
#
# J. Lago 2003
# Departamento de Ciencias Agroforestales
# Universidad de Huelva
# lago@uhu.es

setup
{
    digname = Genius
    description = NewSketch 1812HR, 1212HRII
    baud = 9600
    coordinates = absolute
    buttons = 4
    buttonstart = 1
    buttonoffset = 0
    units_per_inch = 1000
   #units_per_inch = 2540
    stop_bits = 1
    data_bits = 8
    parity = odd		
}

startpoint
{
    send = \017     #begin transmision
    wait = 0.1
    send = \000     #reset
    wait = 0.4
    send = F        #absolute coordinates
    wait = 0.1
    send = j        #resolution 1000 lpi
   #send = v        #resolution 2540 lpi
    wait = 0.1
    send = B        #mode point
    wait = 0.1
    send = zb       #binary report
    wait = 0.1
    send = z9       #8 db, odd parity
    wait = 0.1		    
}

startquery
{
    send = \017     #begin transmision
    wait = 0.1
    send = \000     #reset
    wait = 0.4
    send = F        #absolute coordinates
    wait = 0.1
    send = j        #resolution 1000 lpi
   #send = v        #resolution 2540 lpi    
    wait = 0.1
    send = @        #mode stream
    wait = 0.1
    send = zb       #binary report
    wait = 0.1    
    send = z9       #8 db, odd parity
    wait = 0.1	    
}

stop
{
    send = \019     #end transmision
}

format 
{
    byte1 =  1   0   ?   ?   ?  b2  b1 b0
    byte2 =  0  x6  x5  x4  x3  x2  x1 x0
    byte3 =  0 x13 x12 x11 x10  x9  x8 x7
    byte4 =  0  y6  y5  y4  y3  y2  y1 y0
    byte5 =  0 y13 y12 y11 y10  y9  y8 y7
}