Professional Documents
Culture Documents
RMUman
RMUman
RMUman
Version 1.1
User Manual
Copyright
This manual and the software described in it are copyrighted with all rights
reserved. Under the copyright laws, this manual and software may not be copied,
in whole or part, without the prior written consent of MKS Instruments. The same
proprietary and copyright notices must be affixed to any permitted copies as were
affixed to the original. This exception does not allow copies to be made for others
whether or not sold, but all of the materials purchased may be sold, given, or
loaned to another person. Under the law, copying includes translating into another
language or format.
Preface
This manual is designed to serve as a guideline for the installation, set up,
operation and basic maintenance of the RMU Remote Monitoring Unit. The
information contained within this manual, including product specifications, is
subject to change without notice. Please observe all safety precautions and use
appropriate procedures when handling the RMU product and its related software.
This manual covers all versions V1.1.X. The latest version at time of revision is
noted in the page header.
2 of 2
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
Table of Contents
1 GENERAL INFORMATION ..................................................................................................................................4
1.1 CONVENTIONS USED IN THIS USER MANUAL ..................................................................................................................... 4
2 INSTALLATION AND SETUP..............................................................................................................................5
2.1 SHIPPING BOX CONTENTS .................................................................................................................................................. 5
2.2 RMU INTERFACE DESCRIPTION ......................................................................................................................................... 5
2.3 INSTALLATION ................................................................................................................................................................... 6
2.4 WIRING AND HARDWARE CONFIGURATION ....................................................................................................................... 7
2.4.1 Power Supply Wiring................................................................................................................................................ 7
2.4.2 I/O Wiring ................................................................................................................................................................ 8
2.4.3 Digital Input Interface Example............................................................................................................................. 11
2.4.4 Analog Input Interface Example............................................................................................................................. 11
2.5 COM PORT CONFIGURATION ............................................................................................................................................ 12
2.6 ETHERNET CONNECTOR ................................................................................................................................................... 13
2.7 STATUS LED’S ................................................................................................................................................................ 13
2.8 RESET SWITCH ................................................................................................................................................................. 13
3 NETWORK CONFIGURATION ..........................................................................................................................14
3.1 CONNECT TO THE RMU VIA A SERIAL TERMINAL SESSION ............................................................................................. 14
4 RMU EMBEDDED LINUX OS ............................................................................................................................16
4.1 FLASH MEMORY CONTENTS ............................................................................................................................................ 16
4.1.1 Boot Loader............................................................................................................................................................ 16
4.1.2 The Initrd File System ............................................................................................................................................ 16
4.1.3 Kernel..................................................................................................................................................................... 16
4.1.4 Linux Console......................................................................................................................................................... 17
4.1.5 Embedded Web Server............................................................................................................................................ 17
4.2 DEVELOPMENT TOOLS:.................................................................................................................................................... 18
4.3 EXAMPLE APPLICATION: “HELLO WORLD” .................................................................................................................... 18
4.4 EXAMPLE APPLICATION: ANALOG AND DIGITAL I/O ...................................................................................................... 19
4.5 EXAMPLE APPLICATION: SERIAL COM PORTS................................................................................................................ 22
APPENDIX A - RMU SPECIFICATIONS ...................................................................................................................27
WARRANTY ...............................................................................................................................................................29
3 of 3
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
1 General Information
The RMU is a compact, embedded Linux PC with integrated industrial I/O. The unit can be purchased
with OS only for User integration of logic and 3rd party programs, or with MKS SenseLink™ data
collection and monitoring software.. Different hardware platforms exist, which cover the most common
range of inputs:
• Analog Inputs
• Digital I/O
• RS-232/RS-485
• Ethernet
For a complete list of models at the time of this printing, see Appendix A.
Caution The CAUTION sign higlights information that is important to the safe
operation of the BlueBox, or to the integrity of your files. .
Pages with additional information about a specific topic are cross-referenced within the text.
Example: (See page xxx)
4 of 4
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
Reset Switch
Power LEDs
5 of 5
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
2.3 Installation
The RMU mounts on a standard 35mm DIN rail. Make sure there is sufficient top and bottom clearance
for ventilation, to maintain an ambient operating temperature of 0°C to 50°C.
0
75 10
To install, slide the Top Clip over the DIN rail, and gently press down on the RMU until the Bottom Clip
snaps into place.
To remove, use a flat-blade screwdriver to gently pry the Quick Release Tab until the Bottom Clip
disengages from the DIN rail.
Top Clip
Bottom Clip
6 of 6
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
To install a wire, use a small (2 mm) flat-blade screwdriver to depress the Wire Tension Clip. Insert the
stripped wire end into the Wire Termination Hole and remove screwdriver to engage the Wire Tension
Clip.
To remove a wire, use a screwdriver to depress the Wire Tension Clip and gently pull on the wire
7 of 7
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
8 of 8
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
9 of 9
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
10 of 10
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
OPTOCOUPLER
INPUT 24V
24V
≈ I1+
SWITCH
OR
SENSOR
I1-
COM
The 24V and DC COM are
connected internally to the RMU
power connection.
COM
AI1+
0-20mA ANALOG
JUMPER SIGNAL
500Ω ~
For single-ended inputs, only one
AI1- connection per AI is required.
Connect the bottom signal to ACOM
as an analog reference.
11 of 11
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
COM Port 1 RTS and CTS signals are always enabled. If RS232 handshake signals are not required,
you must still connect RTS to CTS together at COM Port 1.
When configured for RS485, COM Ports 2 and 3 can operate in either a 2-wire mode (half-duplex) or 4-
wire mode (full-duplex). For 2-wire operation, you must externally connect RX485 (+) and TX485 (+)
together, and externally connect RX485 (-) and TX485 (-) together. The RMU internally disables the
TX485 transmitter between transmissions, allowing other RS485 devices access to the 2-wire network.
12 of 12
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
The RMU has eight additional green status LEDs. The four DIN LEDs (I4, I3, I2, I1) indicate the ON/OFF
state of the four digital inputs. The four DOUT LEDs (O4, O3, O2, O1) indicate the ON/OFF state of the
four digital outputs. The LED is lit when the corresponding input or output is ON.
13 of 13
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
3 Network Configuration
The RMU network settings configure the 10BaseT Ethernet port.
The following are factory-default Ethernet settings. Customer specific units can be set with other,
unique IP Address Settings.
RMU
Parameter Setting
IP-Address 192.168.1.2
Subnet AMsk 255.255.255.0
Default Gateway none
In order to read or change the network settings of an unknown unit, you can connect to the RMU via a
serial terminal session (see section below).
Using a terminal program such as Microsoft® HyperTerminal or Tera Term Pro you can now connect to
the console port of the RMU.
Parameter Value
Baudrate 9600
Data bits 8
Parity None
Stop bits 1
Flow Control None
• Once the null modem cable (serial) is connected to com 2 then power up the sense link to
establish the connection.
• After boot up, you must press <Ctrl + C> in order to get the # prompt
• Once connected the IP-Address can be changed by using the net command:
14 of 14
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
15 of 15
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
The next ten megabytes contain the Journaling Flash File System (JFFS2) that is used to store
application programs and data.
The mnt is located in Flash memory. All others are mounted to the RMA disk, thus any changes or
additions to the file system will be lost when the system is rebooted.
4.1.3 Kernel
When the kernel starts executing, it will run the shell script /etc/rc.sh. The rc.sh script does the following:
1. Sets the Real Time Clock
2. Mounts the /mnt/ffs JFFS2 file system
3. Starts networking by executing the shell script /mnt/etc/rc.network
4. Initializes hardware specific features by executing the shell script /mnt/etc/rc.hardware
5. Starts the xinetd services (telnet and ftp)
6. Starts the application programs by executing the shell script /mnt/ffs/etc/rc.application
16 of 16
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
Built-in commands:
Edit “/mnt/ffs/etc/rc.application”
17 of 17
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
To autostart the new application, telnet to the RMU and add the application to the startup script
/mnt/ffs/etc/rc.application.
On the host, create, compile and link the “Hello World” program
1. Create a hello.c file (on the host) containing the following text:
#include <stdio.h>
void main()
{
printf("\nHello World\n");
}
2. Compile and link the file using the following ELDK commands:
/opt/eldk/usr/bin/ppc_8xx-gcc -c -o hello.o hello.c
/opt/eldk/usr/bin/ppc_8xx-gcc –s hello.o –o hello
The RMU uses a memory mapped I²C board for Analog and Digital Inputs and Digital Outputs. The
application programmer can use the following function (prototype) calls to access the RMU Digital and
Analog I/O pins:
Get Digital Inputs, Get/Set Digital Outputs and Get Analog Inputs
1. int iox_set_do(u_char addr, uint bit_num, int value);
2. int iox_get_do(u_char addr, uint bit_num, int *value);
3. int iox_get_do_internal(u_char addr, uint bit_num, int *value);
4. int iox_get_di(u_char addr, uint bit_num, int *value);
5. int iox_get_ai_raw(u_char addr, uint ai_num, int *value);
6. int iox_get_ai(u_char addr, uint ai_num, float *value);
Performance Considerations
The iox_get and iox_set function call get or set one value per call. For better real time performance, the
iox_read and iox_write calls allow the programmer to get and set multiple analog or digital values in one
call. The following is an example of reading four analog inputs:
The following demonstration program uses some of the supplied RMU IOX Lib Function calls. A soft copy
of the program and the associated lib are available on request.
/*
* RMU iox_demo.c
*
* The purpose of the program is to show how to read MKS RMU IOX analog
* and digital inputs and how to set digital outputs.
*
* This example pgm is a simple 5.0VDC Set Point Controller with 10%
* hysteresis.
* If the RMU Analog Input AI1 goes below 4.75 VDC then Close
* RMU Digital Output O1 relay.
* If the RMU Analog Input AI1 goes above 5.25 VDC then Open
* RMU Digital Output O1 relay.
* If the RMU Digital Input Pin I1 is or goes high then the demo
* will terminate.
*
* This program is for demonstration purposes only.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <sys/time.h>
#include <unistd.h>
#include <ctype.h>
#include "iox_lib.h"
#include "iox_dev_comm.h"
int main()
{
int enableTest; // Value of the D0 Input pin
uint ai_val; // Raw Input Voltage (counts)
float ai_voltage; // Floating Point Voltage
int do_o1_state = IOX_DIO_OFF; // Digital Output O1 state
int loopCounter = 0; // Loop Counter for debug
do_o1_state = IOX_DIO_ON;
iox_set_do ( IOX_ADDRESS, IOX_O1_OUT, IOX_DIO_ON );
}
/* Debug Prints */
//printf( "Loop %d, ai_val %x, ai_voltage %f, do_o1_state %x\n",
//loopCounter++, ai_val, ai_voltage, do_o1_state );
/* Delay 100ms */
usleep( 100*1000 );
return 0;
}
For clarity and simplicity, the demo program does not check the return codes of the IOX Lib functions.
The RMU supports three Serial Communication Ports (COM1-3). An application program can connect to
and transmit on or receive from any of the ports. As can be seen in the RMU COM Port configuration
documentation, two of the ports support Asynchronous Serial RS-232 or RS-485 and the other port
(COM1) supports RS-232 Serial Communications with Hardware Flow Control.
The following demonstration program shows how to read and write characters to a RMU Serial COM
Port. A soft copy of the program and the associated lib are available on request.
/*
* RMU com_demo.c
*
* The purpose of the program is to show how to do simple
* read/write I/O to the RMU COM1 Serial Port.
*
* This example program prompts and displays the value of one of
* the RMU Analog Inputs. Connect a dumb terminal (9600, 8, np) or
* a PC terminal emulator pgm ( minicom or hyperterm ) to RMU COM3.
* Use the RMU console or a telnet session to start the program.
* The program prompts the user for an Analog Input Port and will
22 of 22
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
* then display the associated voltage. The user may enter the
* 'q' key to terminate the program.
*
* This program is for demonstration purposes only.
*
*/
#include <stdio.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <termios.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <ctype.h>
#include "iox_lib.h"
#include "iox_dev_comm.h"
/////////////////////////////////////////////////////////
int nBaudRate;
int nFD = -1;
struct termios ts;
switch (nBaud)
{
case 150 : nBaudRate = B150; break;
case 300 : nBaudRate = B300; break;
case 600 : nBaudRate = B600; break;
case 1200 : nBaudRate = B1200; break;
case 2400 : nBaudRate = B2400; break;
case 4800 : nBaudRate = B4800; break;
case 9600 : nBaudRate = B9600; break;
case 19200 : nBaudRate = B19200; break;
case 38400 : nBaudRate = B38400; break;
case 57600 : nBaudRate = B57600; break;
case 115200 : nBaudRate = B115200; break;
default : nBaudRate = B19200;
23 of 23
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
memset(&ts, 0, sizeof(ts));
return nFD;
}
//////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
int main()
{
char szHeaderStr[] =
"Display Analog Pin Value 1-4 or q to quit\r\n";
char szPromptStr[] = "Analog Pin # ";
char szErrorStr[] = " Input Out Of Range - 1-4";
int nFD = OpenComm("/dev/ttyS1", 9600); /* COM3 */
char buf[20];
int buf_len;
float fAnalogValue;
int nErrorFlag = FALSE;
char outputBuf[20];
int nRC;
24 of 24
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
case 'q':
case 'Q':
close(nFD);
exit(0);
default:
write(nFD,szErrorStr, sizeof(szErrorStr));
nErrorFlag = TRUE;
}
if (nRC > 0 )
write(nFD, outputBuf, nRC);
}
For clarity and simplicity, the demo program does not check the return codes of some of the function
calls.
26 of 26
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
Processor
CPU 32-bit RISC Power PC, 50MHz CPU
Memory 32MB SDRAM
Flash 16MB
Data Collection Memory 7MB Flash (part of 16MB Flash)
Real Time Clock Lithium battery-backed
Communications
Ethernet Port 10BaseT, RJ45 connector with EMI filter, LED indicators
RS232 Port TXD, RXD, RTS, CTS signals; DB9 connector
RS232/RS422/485 Ports Switch selectable RS232 (TXD, RXD) or RS422 (4-wire); DB9 connector
Serial Baud Rates 300bps to 115Kbps (38.4Kbps maximum with all 3 ports operating continuously).
Analog Input
Channels 8 S.E. / 16 S.E. / 4 DIFF / 8 DIFF
Resolution 12-bit
Input Range 0-10V / 0-20mA
Over Voltage 15 VDC (max)
Input Impedance 70MOhm
Digital Inputs
Input Lines 4/8
Input Voltage 24VDC (internally supplied)
ON current level >2mA
OFF voltage level <1mA
Minimum ON voltage 6VDC
Maximum OFF voltage 18VDC
Maximum current 30mA
Digital Outputs
Output Lines 4/8
Type dry contact relay, 1 amp maximum
General
Power Supply 18VDC to 28VDC
Power Consumption 10W typical, 25W maximum
Dimensions LxHxW 103 x 100 x 50 mm (Single Slot) / 103 x 100 x 75 mm (Double Slot)
Operating Temperature 0C to 50C
Storage Temperature -40C to 85C
CE pending
UL/CSA pending
27 of 27
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
Product Type
H/W
S/W
Options
Product Type
TWSL RMU ™ with TOOLweb™ ToolSide interface (blue/white)
RMIO RMU with RMU™ application software (black)
H/W (Hardware)
H002
H003
H004
H005
H006
H007
H008
H009
H/W Details
4AI-DIF 16bit, 4DI
4AI-Current, 4DI
8AI-Current, 8DI
16AI-SE, 8DI
4AI-DIF, 4DI
8AI-DIF, 8DI
8AI-SE, 4DI
Gateway
Model Description
I/O Slots 1 1 2 2 1 1 2 0
Serial COM Ports 3 3 3 3 3 3 3 3 (2) RS232, (1) RS232/485 hardware selectable
Analog inputs, differential, voltage 4 8 0 - 10V, 12 bit
Analog inputs, differential, voltage, 16 bit 4 0 - 10V, 16 bit
Analog inputs, single-ended, voltage 8 16 0 - 10V, 12 bit
Analog inputs, differential, current 4 8 4 - 20mA, 12 bit
Digital inputs 4 4 8 8 4 4 8 0 active low, opto-coupler input
Digital outputs 4 4 8 8 4 4 8 0 relay dry contact output, normally open
S/W (Software)
S004 RMU™ for single slot I/O unit
S00x Various software builds and customer specific versions
Options
P0x Various serial protocol and customer specific functionality
Consult factory for specific application requests
28 of 28
© MKS Instruments CIT Products 2004, All rights reserved
RMU User Manual Version 1.1.6
WARRANTY
MKS Instruments, Inc. (MKS) warrants that for two years from the date of shipment the equipment
described above (the “equipment”) manufactured by MKS shall be free from defects in materials and
workmanship and will correctly perform all date-related operations, including without limitation accepting
data entry, sequencing, sorting, comparing, and reporting, regardless of the date the operation is
performed or the date involved in the operation, provided that, if the equipment exchanges data or is
otherwise used with equipment, software, or other products of others, such products of others
themselves correctly perform all date-related operations and store and transmit dates and date-related
data in a format compatible with MKS equipment. THIS WARRANTY IS MKS’ SOLE WARRANTY
CONCERNING DATE-RELATED OPERATIONS.
For the period commencing with the date of shipment of this equipment and ending two years later, MKS
will, at its option, either repair or replace any part which is defective in materials or workmanship or with
respect to the date-related operations warranty without charge to the purchaser. The foregoing shall
constitute the exclusive and sole remedy of the purchaser for any breach by MKS of this warranty.
The purchaser, before returning any equipment covered by this warranty, which is asserted to be
defective by the purchaser, shall make specific written arrangements with respect to the responsibility for
shipping the equipment and handling any other incidental charges with the MKS sales representative or
distributor from which the equipment was purchased or, in the case of a direct purchase from MKS, with
the MKS-CIT home office in Santa Clara, CA
This warranty does not apply to any equipment, which has not been installed and used in accordance
with the specifications recommended by MKS for the proper and normal use of the equipment. MKS
shall not be liable under any circumstances for indirect, special, consequential, or incidental damages in
connection with, or arising out of, the sale, performance, or use of the equipment covered by this
warranty.
THIS WARRANTY IS IN LIEU OF ALL OTHER RELEVANT WARRANTIES, EXPRESSED OR IMPLIED,
INCLUDING THE IMPLIED WARRANTY OF MERCHANTABILITY AND THE IMPLIED WARRANTY OF
FITNESS FOR A PARTICULAR PURPOSE, AND ANY WARRANTY AGAINST INFRINGEMENT OF
ANY PATENT.
29 of 29
© MKS Instruments CIT Products 2004, All rights reserved