1. Controller RIO-47120-16bits

Spex uses a Galil RIO-47120-16bit RIO device to provide it additional IO.
This RIO has:
   8 +/-10V 16bit Analog input
   8 +/-10V 16bit Analog output
   16 digital inputs
   16 digital outputs (8 high power/ 8 low power)


2. Configuration/Setup 

2.1 Ethernet

Use the serial port to talk to the unit:
  Cable: use straight thru cable with F-F connectors.
  COM setup: 115200 8N1  Enable RTS/CTS

  TZ will return current IO state.
  TH will return ethernet status

Setting the IP.
  RIO defaults to DHCP. To setup an static IP:
     DH0
     IA 192,168,1,14
     BN                   ' to burn these parameters

   cold boot...
   TH - command is 'Tell Ethernet Handler'
   response was:
      CONTROLLER IP ADDRESS 192,168,1,14 ETHERNET ADDRESS 00-50-4C-28-24-05

2.2 IO Channel setup:

1.  Put configuation of the Analog IO as a #AUTO program.
    Set Analog  IN to -/+ 10, single ended.
    Set Analog OUT to -/+ 10

----+----1----+----2----+----3----+----4  (program lines are under 40chars max).
#AUTO
'set AO to -10 to +10v:
DQ0,4;DQ1,4;DQ2,4;DQ3,4
DQ4,4;DQ5,4;DQ6,4;DQ7,4
'set AI to -10v to +10v:
AQ 0,2;AQ 1,2;AQ 2,2;AQ 3,2
AQ 4,2;AQ 5,2;AQ 6,2;AQ 7,2
EN

You can load this program into a RIO unit via a serial or telnet
connection using the DL command. After the EN, terminate
the download using the '\' or cnt-Z, cntl-Q, or cntl-D

   DL
   
   \    (termination character).

Type UL to view the program's buffer.

If the program is correct, use the BP comand to save the
application program into EEPROM memory.

To default check:
    TH      - shows infor related to ethernet.
    MG_DQn  - shows DQ value for channel n
              MG_DQ0;MG_DQ1;MG_DQ2;MG_DQ3;MG_DQ4;MG_DQ5;MG_DQ6;MG_DQ7
    MG_AQn  - shows AQ value for channel n
              MG_AQ0;MG_AQ1;MG_AQ2;MG_AQ3;MG_AQ4;MG_AQ5;MG_AQ6;MG_AQ7

3. Example command for RIO 

TZ read state of all IO.

AO set:

 AO0,1.00
 AO1,1.11
 AO2,1.22
 AO3,1.33
 AO4,1.44
 AO5,1.55
 AO6,1.66
 AO7,1.77

DO - Set

  // individual bits
  CB 0
  SB 0

  // Set/clear bits with one command, ie $88 is 1000 1000
  OP $88