OPTOMUX - IOPLEXER

FORMATS FOR I,O AND Y CLUSTERS

     FIRST, QTY, BOARD, POS, ALA, ENABLE

CLUSTER FORMAT FOR A

     FIRST, QTY, BOARD, POS, ALA, ENABLE, PROBE

FIRST          the index of the first RTES variable in the cluster

          I clusters read binary channels into I registers
          O clusters write O registers to binary channels
          A clusters read analog channels into A or R registers (depending on the PROBE
          parameter)
          Y clusters write Y registers (raw values) into analog output channels.

QTY       the number of variables in the cluster

BOARD     the address of the OPTOMUX board (decimal)

POS       the position of the first channel to be transferred

ALA       the index of the RTES alert register

ENABLE    the index of the RTES enable register

PROBE     analog inputs only:
               If 0, request the counts from the OPTOMUX board and use them as raw
               values for the 'A' variables.
               If >0, request the EXTENDED TEMPERATURE READINGS for the
               probe type corresponding to the value of PROBE and place them in the
	         'R' registers.
               The value of PROBE must match the analog input module type you use:

                       1 ICDT
                       2 10 OHM RTD
                       3 100 OHM RTD
                       4 TYPE J THERMOCOUPLE
                       5 TYPE K THERMOCOUPLE
                       6 TYPE R THERMOCOUPLE
                       7 TYPE S THERMOCOUPLE
                       8 TYPE T THERMOCOUPLE
                       9 TYPE E THERMOCOUPLE

COUNTERS

Each counter is defined by a G cluster. You may define up to 64 counters.

The format of a counter cluster is :

     register, 0, address, position, alarm, enable

register: the index of a RTES register where the count will appear.  The next 2 registers
          are used to control the counter:

               set the first register to true to count.
               set the second register to true to clear the count.  (it returns to false
               when count is cleared)

0:        a dummy argument to maintain the cluster format.

address:  hardware address of the OPTOMUX board where the counter is.

position: position (0-15) of the counting input on the board.

alarm:    index of the register that will indicate a non or bad response from the counter.

enable:   index of the register that controls the communication with this counter. If the
          register is on (1 or odd value), RTES will attempt communication with this
          counter, the counter will be ignored otherwise. Any register, starting at R0002
          may be used. If you use 0, a enable register does not apply: RTES
          communicates with the counter continuously. This register is not affected by the
          C option, the enable register is never returned to 0 automatically.

Example:

     We want to count the false to true transitions of the input located at position 5
     of board address 200. The count will be  read into register R0150. R0151 will
     be used to start/stop the  counter, R0152 will be used to clear the counter.
     Communication alarm will be annunciated at register R0005. There is no enable
     register.

     The configuration file will include:

     G=1 149,0,200,5,4,0

PULSE DURATION MEASUREMENT

A digital input may be used to measure a pulse duration.
Each pulse duration to be measured is defined as a "S" cluster.

S=n	n-number of pulse measurements defined

each pulse measurement cluster consists of the following parameters:

     register, 0, address, position, alarm, enable

register     index of the RTES register that RETURNS THE LATEST PULSE DURATION
		in increments of 10ms
  register+1 PULSE STATUS - a 1 indicates that pulse is completed
  register+2 CLEAR COMANND - set this register to 1 to reset the two registers above
address      BOARD ADDRESS
position     OUTPUT POSITION
alarm        COMM. FAIL REG
enable       RUN SWITCH - Turn this register to 1 TO MEASURE A PULSE

Example:
We want the 2nd output (position 1) on board address 253 (FDhex) to measure a pulse when
R0053 is set to 1.

We will use R0001 as communication failed indicator and R0050-R0052 to operate the process.

The configuration file will contain:

S=1
49,0,253,2,0,52

RTES registers will be set as follows:

R0001	A253		0.00	1	Board 253 (FD) not responding
.
.
R0050	DURATION        40.00		Pulse duration in increments of 10ms
R0051	STATUS		 1.00		Pulse complete when on
R0052   CLEAR            0.00           Turn on to clear the measurement
R0053	SEND		 0.00		Set this to 1 to read the pulse(s)
	

PULSE STREAM GENERATOR

A digital output may be used a pulse generator.
Each pulse generator is defined as a "p" cluster (lower case p).

p=n	n=number of pulse generators defined

Each pulse generator cluster is defined by :

     register, 0, address, position, alarm, enable

register     PERIOD IN MULTIPLE OF 10mS
  register+1 NUMBER OF PULSES
address      BOARD ADDRESS
position     OUTPUT POSITION
alarm        COMM. FAIL REG
enable       TRIGGER - RETURNS TO 0 WHEN DONE

Example:
We want the 3rd output (position 2) on board address 253 (FDhex) to send a 200ms pulse when
R0053 is set to 1.

We will use R0001 as communication failed indicator and R0050+R0051 to define the pulse.

The configuration file will contain:

p=1
49,0,253,2,0,52

RTES registers will be set as follows:

R0001	A253		0.00	1	Board 253 (FD) not responding
.
.
R0050	PULSE		40.00		Pulse period (200ms on/200ms off)
R0051	NBR		 1.00		Number of pulses
R0052
R0053	SEND		 0.00		Set this to 1 to send the pulse(s)
	
OPTOMUX over IP
You must install the TCP/IP stack (EXNET)
Use TOPTOMUX for TCP/IP
Use UOPTOMUX for UDP

Add to the configuration file:

P=n	(n=qty of OPTOMUX modules used)
For each module add a line consisting of 5 numbers:
optomux address, 1st IP byte, 2nd IP byte, 3rd IP byte, 4th IP byte

For example:
;Configuration file to read 16 digital inputs from OPTOMUX address 22 at IP 192.168.0.22:
P=1
22,192,168,0,22
I=1
0,16,22,0,0,0