Insertion Device Serial Control Interface

Version 1.01 (November 1, 1999)

This document describes the details of the Insertion Device control directly through a serial interface.

We have implemented a direct link between the IOC controlling the Insertion Device and the Beamline control system through a serial link.  The protocol is straight RS232 communications. The link between the IOC and the beamline is via a fiber optic cable and a fiber modem.  The user can connect the fiber modem which has a DB25 male to a computer serial port.

We will be using the Blue and White fibers from the MSL fiber bundle.  The Blue fiber will be used for Transmit (T) and the white for Receive (R) on the fiber modem. The modem will be set to the DTE modem for communications to a computer (This depends on the type of cable used between  the computer and fiber modem. The port parameters are  19200 baud, 8 bit and N parity and 1 stop bit with XON/XOFF protocol.

This software running on the IOC monitors the port at all times. All inputs from the serial port has to be terminated with only a carriage return (0xD). The IOC listens to the port and upon receiving a string with the CR delimiter immediately processes the command and depending on the request will act on it. An acknowledgment is always sent with a CR delimiter. When the program is ready it will send a message Program Ready.

The device control is only possible when the device is in User Mode. Requests for status is always available. When an unrecognized command is sent the program will respond with a message Unknown Command!!

Listed below are all the commands and their responses:
 

Control Process Variables

Control is possible only when the device access control is set to USER mode. All controls commands are followed by = and the value with no spaces between them.

Read Commands

The following commands are send as is for status updates.
Suggestions and Comments to  Mohan Ramanathan
(Last Modified Monday, 05-Mar-2001 16:10:01 CST)