About the Galil RIO-47120

1. Intro 
In 2018/08, the filter wheel's sixnet device died. We replaced it with the RIO.
The sixnet used 4 Digital Out signals to control the filter wheel.

Note: 1st used  RIO47120 Rev 1.1j, MAC: 00-50-4C-28-4B-7F
      This RIO did not accept the program download. Will replace it with a RIO-47122
      RIO47122 Rev. 1.0 Serial 1441, MAC: 00-50-4C-28-05-A1

2. RIO Setup 

setup IP using the old smokey_sixnet number:
  128.171.165.97    smokey-rio

1. Setup IP: 
   DH0
   IA 128,171,165,97          ' use correc IP for unit
   BN                         ' to burn these parameters

   DH?                        ' show the DH value
   IA?                        ' show the current IP number

2. IO configuration

   Only DigitlaOut bits D8 to D11 are used.

   Setup an AUTO program to insure bit have a legal value at startup:
      #AUTO
      REM set the filter wheel to ND4.8
      OP $00,$01;
      EN

3. some query command:

To default check:
    TH      - shows infor related to ethernet.
    ID      - summarizes IO available for the RIO
    TZ      - show IO values for the RIO
    MG_DQn  - shows DQ value for channel n  (should return 2)
    MG_AQn  - shows AQ value for channel n  (should return 4)
    UL      - show the program on the RIO (UpLoad program to host computer).
    ID      - identify IO configuration

to query Analog Input configuration:
   MG _AQ0,_AQ1,_AQ2,_AQ3,_AQ4,_AQ5,_AQ6,_AQ7

to query Analog Input values:
   MG @AN[0],@AN[1],@AN[2],@AN[3],@AN[4],@AN[5],@AN[6],@AN[7]

to query Analog Output configuration:
   MG _DQ0,_DQ1,_DQ2,_DQ3,_DQ4,_DQ5,_DQ6,_DQ7

to query Analog Output values:
   MG @AO[0],@AO[1],@AO[2],@AO[3],@AO[4],@AO[5],@AO[6],@AO[7]


3. Filter Summary

The RIO is used to input a BCD (binary encoded decimal) into the filter wheel's control electronics. 
The DO11, DO10, DO9, DO8 outputs are used (lower 4 bits of bank1, DO 8 to 15). 
Summary of the outputs used for the filter wheel:

 Index Menu     BCD_value_binary   Galil_command 
                    D11...D8 
   0   ND4.8     1 = 0 0 0 1         OP $0,$1
   1   ND2.4     2 = 0 0 1 0         OP $0,$2
   2   H20+      3 = 0 0 1 1         OP $0,$3
   3   R         4 = 0 1 0 0         OP $0,$4
   4   Rcont     5 = 0 1 0 1         OP $0,$5
   5   Open      6 = 0 1 1 0         OP $0,$6