                         M340 RS232 Command List                  Page 1

                                                             06/24/99 med

        The M340 is a custom 6500 built for Virtual Corp. The M340 is not 
        compatible with the standard FIPP protocol. The M340 system uses 
        a modified poll request for sending data. The format is shown 
        below:


             0FFFF H   Poll packet
             00001 H   One word of data
             xxxx      Most recent key code
             zzzz      Inverted checksum


        This format is not standard, and is not self-synchronizing as the 
        standard poll is. For that reason it is not recommended for 
        normal use.  The M340 will NOT work with Fryers since fryers will 
        never see a Poll from the M340. 

        The following information is provided for informational purposes 
        only. It is not complete. The M340 was a custom instrument built 
        for Virtual Corp. They made many modifications to the instrument 
        for their own use. This information is provided primarily to let 
        you know that the instrument exists and the software base it was 
        derived from.

        ---

        Note: I don't know all the commands supported by the M340 
        (Virtual is no longer around to ask). The following list is 
        derived from the 6400 command list. While similar, there were 
        some slight differences. The M340 is an obsolete insturment and 
        is no longer supported.


        ---------------------------------------------------------------

                                  Command Usage

        The following command list shows the RS232 commands that are 
        available in the M340/6400. The Main Loop mode of the M340/6400 
        is the mode you are in when you send a reset command or press the 
        reset button.

             Refer to the RS232 command reference guide for a description 
        of the individual commands and their use with the various options 
        and modes.



        Command             -- StartUp (Logo screen) --            Number
        -----------------------------------------------------------------
        Do Reset                                                       38
        Get Software Version                                           28



                         M340 RS232 Command List                  Page 2

        Command                  -- Main Loop --                   Number
        -----------------------------------------------------------------
        Set Source Amplitude Value                                      0
        Set Frequency Value                                             2
        Set Noise Reduction Value                                       4
        Set Smoothing Status                                            5
        Set Label Information                                           6
        Set Curve Frame Data                                            9
        Set Automatic Status                                           48
        Set Output Limit Value                                         50 
        Set RefMic Status                                              52 
        Set Active Status                                              54 

        Do Pure Tone Sweep                                             16
        Do Reset                                                       38

        Get Source Amplitude Value                                     21
        Get Frequency Value                                            23
        Get Curve Frame Data                                           25
        Get Noise Reduction Value                                      26
        Get Smoothing Status                                           27
        Get Software Version                                           28
        Get Microphone Input Data                                      31
        Get Command Status                                             33
        Get Probe Curve Frame                                          42
        Get Automatic Status                                           49
        Get Output Limit Value                                         51 
        Get RefMic Status                                              53 
        Get Active Status                                              55 



        Command               -- Multi Curve mode --               Number 
        ----------------------------------------------------------------- 
        Set Label Information                                           6
        Set Curve Frame Data                                            9

        Do Reset                                                       38

        Get Curve Frame Data                                           25
        Get Software Version                                           28
        Get Command Status                                             33















                         M340 RS232 Command List                  Page 3

                     Changes or Special Notes About Commands


        The RS232 based FIPP (Frye Instrument Packet Protocol) was first 
        implemented on the Fonix 6500 Real Time Hearing Aid Analyzer. 
        Other Frye instruments such as the Fonix 6400 use the same 
        command set (or a sub-set of the commands).  The full list of 
        RS232 commands used by Frye instruments that use the FIPP 
        interface are listed in the RS232 Command Reference Guide.
        Over time there have been some minor changes and additions. These 
        changes and/or additions are described below.


        Curve data:

        Prior to version 1.10 the M340/6400 had 9 curve buffers available 
        for use. With version 1.10 four additional buffers are provided 
        bringing the total curve buffers available to 13.

             There are four base curves and five or nine additional 
        reference curves used in multi-curve. The curves are referenced 
        in Get CurveFrame or Set CurveFrame by the Curve Frame number. 


                       Curve                            Data Word

                       Curve one                        0
                       Curve two                        1
                       Curve three                      2
                       Curve four                       3
                       Reference 1                      4
                       Reference 2                      5
                       Reference 3                      6
                       Reference 4                      7
                       Reference 5                      8

                       Reference 6                      9  (added)
                       Reference 7                      10
                       Reference 8                      11
                       Reference 9                      12

        The curve numbers refer to the curve stack.  
        Curve numbers 0 through 3 correspond to curves 1 through 4. 
        Curve numbers 4 through 12 correspond to multi-curve reference 
        curves 1 through 9.

             The 6400 uses curve frame type 'A'. Refer to the Curve Frame 
        Reference Guide for a decription of the curve frame types and how 
        they are used.








                         M340 RS232 Command List                  Page 4


        New commands:

             In version 1.10 several new probe commands have been added. 
        these include Get/Set Noise Reduction, Get/Set Automatic Status, 
        Get/Set Output Limit Value, Get/Set RefMic Status, Get/Set 
        Frequency, Get/Set Source Amplitude, Do Sweep, Get/Set Active 
        Status, and Get Microphone Input Value.


        Machine type:

             The M340 always returns a machine type of 0006. 


        Multi-Curve:

             In version 1.05 of the 6400, the Multi-Curve mode now allows 
        commands to operate as indicated in the list. In version 1.04 the 
        Mutli-curve mode did not allow RS232 operation.





































                         M340 RS232 Command List                  Page 5

                          6400 Option Flags Description

             The  6400  contains a standard option flag indicator  and  a 
        custom  option flag indicator that can be read by requesting  the 
        version  number from the 6400. The software version request  will 
        return the Software version installed in the 6400 followed by the 
        option flags. The machine type defines the machine being used.

             The  information is provided as an array of 16 bit words  in 
        the following form:

                  vvvv - Version number
                  oooo - Standard option low word
                  oooo - Standard option high word
                  cccc - Custom option low word
                  cccc - Custom option high word
                  0006 - Machine type

             The version number is the indicated version times 100.  Thus 
        version 2.24 would be given as "224". The version number is given 
        as  a  binary number. The current version and  date  is  visually 
        presented  on the 6400's monitor when you first turn it  on  (the 
        logo screen).

        Following the version number is the standard option flag 
        indicator. The standard option flag indicator consists of a 32 
        bit long word which is used to indicate when a standard option 
        has been installed on the 6400. When the bit is on (1), the 
        option has been installed in the 6400 when the bit is off (0) the 
        option is not installed. Standard options are those options which 
        are available on all M340s. The only option provided was RS232 
        which was required on all M340 instruments since it was the only 
        way they could be controlled.

        Following the standard option flag indicator is the custom option 
        flag indicator. The custom option flag indicator also consists of 
        a 32 bit long word which is used to indicate when a custom option 
        has been installed on the instrument. When the bit is on (1), the 
        option has been installed in the M340 when the bit is off (0) the 
        option is not installed. There were no custom options provided on 
        the M340.

        Following the custom option flag indicator is the machine 
        identification word. The machine identification word indicates 
        which Frye instrument is responding to the commands. The M340 
        instrument will always return a 0006 in the machine type word.
        There is no sub-type provided with the M340 version information.










                         M340 RS232 Command List                  Page 6

        Option flag:

        The option flag consists of a 32 bit long word which is used to 
        indicate when a standard option has been installed on the 6400. 
        When the bit is on (1), the option has been installed in the 6400 
        when the bit is off the option is not installed.

             Below  is  a  table showing the option  flag  bits  and  the 
        positions and meanings of the bits:


        bit number    flag      functional                bit position  
        (long) word - label   - description             76543210 76543210
        -----------------------------------------------------------------
        ( 0)   0    - ENOP00  - <reserved>              ........ .......x
        ( 1)   1    - ENOP01  - <reserved>              ........ ......x. 
        ( 2)   2    - ENOP02  - <reserved>              ........ .....x..
        ( 3)   3    - ENOP03  - <reserved>              ........ ....x... 
        ( 4)   4    - ENOP04  - <reserved>              ........ ...x....
        ( 5)   5    - ENOP05  - <reserved>              ........ ..x..... 
        ( 6)   6    - ENOP06  - <reserved>              ........ .x......
        ( 7)   7    - ENOP07  - <reserved>              ........ x....... 
        ( 8)   8    - ENOP08  - <reserved>              .......x ........
        ( 9)   9    - ENOP09  - <reserved>              ......x. ........ 
        (10)  10    - ENOP10  - <reserved>              .....x.. ........
        (11)  11    - ENOP11  - <reserved>              ....x... ........ 
        (12)  12    - ENOP12  - <reserved>              ...x.... ........
        (13)  13    - ENOP13  - <reserved>              ..x..... ........ 
        (14)  14    - ENOP14  - <reserved>              .x...... ........
        (15)  15    - ENRS232 - RS232                   x....... ........ 

        (16)   0    - ENOP16  - <reserved>              ........ .......x
        (17)   1    - ENOP17  - <reserved>              ........ ......x. 
        (18)   2    - ENOP16  - <reserved>              ........ .....x..
        (19)   3    - ENOP17  - <reserved>              ........ ....x... 
        (20)   4    - ENOP16  - <reserved>              ........ ...x....
        (21)   5    - ENOP17  - <reserved>              ........ ..x..... 
        (22)   6    - ENOP16  - <reserved>              ........ .x......
        (23)   7    - ENOP17  - <reserved>              ........ x....... 
        (24)   8    - ENOP16  - <reserved>              .......x ........
        (25)   9    - ENOP17  - <reserved>              ......x. ........ 
        (26)  10    - ENOP16  - <reserved>              .....x.. ........
        (27)  11    - ENOP17  - <reserved>              ....x... ........ 
        (28)  12    - ENOP16  - <reserved>              ...x.... ........
        (29)  13    - ENOP17  - <reserved>              ..x..... ........ 
        (30)  14    - ENOP16  - <reserved>              .x...... ........
        (31)  15    - ENOP17  - <reserved>              x....... ........ 


             Flag  bits  marked <reserved> are reserved for  future  use. 
        These  flags will change in the future and should not  be  relied 
        upon   to  remain  in  a  particular  condition.   Contact   Frye 
        Electronics for an option list update if you are working with  an 
        option not listed.



                         M340 RS232 Command List                  Page 7

        <end>
























































