RD Controls Hardware Release Note 16.1 <P> CAMAC C1003 Module <P> Multifunction RS232 Interface

RD Controls Hardware Release Note 16.1

CAMAC C1003 Module

Multifunction RS232 Interface

R. West, W. Knopf, T. O'Brien, A. Thomas, T. Watts

May 7, 1992

Introduction

The C1003 CAMAC module enables readings to be obtained from a connected meter by issuing CAMAC commands via the EPICURE Beamline Control System. The C1003 module may be connected via an RS232 interface to one of the following meters:

The type of device to be supported is selected by switches on the module I/O connector.

Module Configuration

The C1003 module is based on the CAMAC 1111 single board computer:

On the front panel of the module are the following buttons and indicators:

RS232 Interface Configuration

The C1003 module has an RS232 I/O connector port on the rear of the module and also on the front. Each port's baud rate may be set to a value from 300 to 19200. RS232 serial data transmitted from the teslameter must be formatted as follows:

I/O Connector

There are 8 switches on the I/O connector used to indicate the type of device connected to the C1003 module. Switches 1 through 4 indicate the type of the connected meter and switches 5 through 8 indicate the baud rate. For the C1003 module, switch 1 and switch 5 both in the ON position indicate a 1200 baud thermocouple is connected. Any other switch configuration indicates a 9600 baud teslameter is connected.

MetroLAB Model PT2025 NMR Teslameter

The RS232 interface of the teslameter can operate in two modes: autonomous and conversational. In the autonomous mode, the teslameter is controlled solely from the device's front panel. A message consisting of the present field value is periodically broadcast by the teslameter at a rate determined by switch settings. Messages from the C1003 module to the teslameter are ignored. The autonomous mode is the only mode supported by the C1003 module.

In the conversational mode, the RS232 "host" has total control of all teslameter functions and exchanges ASCII strings in a request/reply fashion. There are currently no plans for the C1003 module to support the conversational mode.

Switch Settings

To enable the C1003 module to process data from the teslameter, the jumper on the circuit board of the teslameter's I/O module must be set to the 9600 baud position and the micro-switches on the rear panel of the teslameter must be set in the following manner:

Message Formats

Approximately once per second, the teslameter transmits to the C1003 module a string of ASCII characters which is terminated by a carriage return, line feed pair. Depending upon the position of the MHz/TESLA toggle switch on the front panel, the string has one of two formats:

vdd.ddddddFcl in the MHz position

vdd.dddddddTcl in the TESLA position

where

Group3 Model DTM-100 Series Hall Effect Teslameter

The DTM-100 may be configured by use of DIP switches to transmit each new reading on the serial line in a known format at a maximum rate of 2.34 Hz. The RS232 interface of this device can operate in several other modes, but this is the only one which is supported by the C1003 module.

Switch Settings

To enable the C1003 module to process data from the teslameter, the switches on the processor board of the teslameter must be set appropriately. The 16-position switch used to specify the serial data bit rate must be set to the 9600 position. The DIP switches must be set in the following manner:

The RS232 jumpers on the processor board must be connected in the following manner:

Message Formats

Approximately 2.34 times per second, the teslameter transmits to the C1003 module a string of ASCII characters which is terminated by a carriage return, line feed pair:

bddddducl

where

Teslameter Initialization

In addition to the physical switch settings, the C1003 module must send the DTM teslameter certain configuration commands whenever the module is reset or powered on:

Newport Model 269 Digital Pyrometer

The C1003 module is also capable of interfacing with the Newport thermocouple meter.

Switch Settings

Type of output is selected by a simple jumper/pin array behind the lens. The serial output of the thermocouple meter has the following characteristics:

Message Formats

Each message consits of 9 ASCII characters

sddddd uc

where

CAMAC Functions

When a CAMAC operation is performed, the Z8002 processor executes a vectored interrupt to a routine which reads the CMCSLV data lines and determines the function code. A jump is then executed to the appropriate routine to process the request.

Function Code Descriptions

F0 A0 - Read low 16 bits of most recent data value
This function returns the low 16 bits of the reading value most recently acquired from the teslameter.

F0 A1 - Read high 16 bits of most recent data value
This function returns the high 16 bits of the reading value most recently acquired from the teslameter. For the DTM teslameter which only returns a 16-bit reading, the value is placed in the low 16 bits and the sign bit is extended into the upper 16 bits.

F1 A8 - Read module status

F1 A13 - Read LAM mask register

F1 A14 - Read LAM source register

F6 A0 - Read module number
This function always returns the decimal value 1003.

F6 A1 - Read software version
A sixteen-bit value is returned with the major version number (release) in the most significant byte and the revision level number in the least significant byte.

F6 A2 - Read selected options
This function returns a reading of the switch settings on the I/O connector used to indicate the type of the attached meter. Only the low 8 bits are significant. EE indicates a 1200 baud thermocouple is connected. Any other value indicates a 9600 baud teslameter is connected.

F6 A3 - Read FOP status

F6 A4 - Read FOP reply data

F8 A0 - Test LAM
This function indicates if the module has requested LAM, independent of whether or not LAM is enabled. If the module has requested LAM, Q is returned. Otherwise, no Q is returned. This function is totally implemented in hardware and does not interrupt the embedded processor.

F9 A0 - Reset module
This function is totally implemented in hardware. It is equivalent to pressing the reset button on the module's front panel, causing the embedded processor to be reset. Q is always returned. However, trying to communicate with the module before the reset is complete results in no Q.

F10 A0 - Clear LAM source register
This function clears the entire LAM source register.

F17 A0 - Clear selected LAM source register bits
This functions clears selected bits in the LAM source register. The user must supply a 16-bit word which has a bit set for each corresponding LAM bit which is to be cleared.

F17 A13 - Write LAM mask register
This functions writes the accompanying 16-bit word to the LAM mask register.

F17 A14 - Write LAM source register
This function sets selected bits in the LAM source register. The user must supply a 16-bit word which has a bit set for each corresponding LAM bit which is to be set.

F19 A2 - Write FOP command

F19 A3 - Write FOP data

F24 A0 - Disable LAM
This function disables the assertion of LAM to the crate controller.

F26 A0 - Enable LAM
This function enables the assertion of LAM to the crate controller. Any LAM request made while LAM was disabled is immediately asserted.

Data Format

The C1003 module converts the ASCII text string from the connected device to a signed 32-bit integer representing the floating point data value times 10 to the 7th power. In addition, one of the following status codes is associated with the data value:

Diagnostics

Diagnostic commands may be directly input to the module by connecting a computer terminal to one of the RS232 ports. A HELP menu displays the commands which are available to assist in trouble shooting. The following commands can be executed at a terminal:

Status LEDs

All status LEDs are cleared whenever a carriage return is received.

Security, Privacy, Legal

Security, Privacy, Legal

rwest@fsus04.fnal.gov