SUBROUTINE PROD_SPEC_RTYPE_CONV(ConvType, DataIo, SubrLabel, ReturnedValue)

$insert logical

equ valid$         to 0    ;* successful
equ invalid_msg$   to 1    ;* bad data       -   print error message window
equ invalid_conv$  to 2    ;* bad conversion -          "         "
equ invalid_nomsg$ to 3    ;* bad but do not print the error message window

status() = Valid$
begin case
   case ConvType = 'ICONV'
        ReturnedValue = DataIo
   case ConvType = 'OCONV'
        begin case
           case DataIo = 'C'
              ReturnedValue = 'SiGe'
           case DataIo = 'E'
              ReturnedValue = 'Epsilon'
           case DataIo = 'P'
              ReturnedValue = 'EpiPro 5000'
           case DataIo = 'H'
              ReturnedValue = 'HTR'
           case DataIO = 'A'
           	  ReturnedValue = 'ASM+'
           case Otherwise$
              ReturnedValue = ''
        end case
   case otherwise$
        status() = invalid_msg$
end case
return
