Slow Controls
back
The slow controls is operated through a computer running EPICS and VxWorks in crate 90. This computer communicates to the FEE crates and their contents. It also configures the MAPMT boxes and talks to the HVSys controllers. If there are problems it may be necessary to reboot VxWorks. The most obvious problem that requires this is that all the graphics on the main GUI have gone white. This indicates the processor has lost communication. Rebooting can be done as follows:
from eemc-sc type
telnet eemc-serv 7007
type enter a few times till get prompt
This port can be left open and you can see the activity in the VxWorks
controller scroll by. However you are blocking access to someone else
who may want to get in. (So be careful leaving it running from the lap
top in the hall, for example.)
(alternate: but avoid because it locks up the port and if you don't exit
no one else can get in)
If the VxWorks controller really hangs you may not be able to talk to
it enough to reboot. So if the above telnet method does not work you
can force a reboot by clicking on the crate reset for crate 90. If this
doesn't work you can power cycle the crate. (See the section on crate
supplies.)
Other things can be done from the "telnet eemc-serv 7007" window.
To check or configure the MAPMT boxes we need to disable HV scanning.
Type the letter i and "enter". A whole screen of the running
processes will scroll by. Near the bottom of the list will be
.
You want to suspend the three processes called EEMCHVGO_1, _2 and, _3. To
do this type
ts>EEMCHVGO_1
You can use the mouse to cut and paste the name in if you like. Also
ctrl h backspaces to correct typing errors. (Careful though because
other control characters do things like reboot the processor and all
hell breaks loose then.)
do the same for
ts EEMCHVGO_2
It responds immediately with a number and then a few seconds later with
a message that the process is suspended.
You can type i again and this time the 4th column should indicate SUSPEND.
When done working with the MAPMT boxes you should restart the 3 HV processes
using
tr EEMCHVGO_1
Other useful commands from the VxWorks command line: Do this only with
the HV processes suspended and FEE crates uninstalled.
The HDLC communications branches are:
The programs running on the VxWorks computer are determined by a
script on eemc-sc. The script is in
/home/online/VxWorks/indiana/starbnl_new.cmd
At the end of the script are a number of lines such as
seq &EEMCHV
The # comments the line out and that program is not run. The programs
are started according to this file when the VxWorks processor is rebooted.
type reboot
should see info as reboots
exit telnet by ^]
telnet eemc-vxvme
user target
pw [ ]
type enter a few times till get prompt
type reboot
CA online.. _rsrv_online.. 155c0f0 183 DELAY.. 52162.. 155c06c.. 0.. 450
EEMCHVGO_1.. _ss_entry.. 134ee48 190 PEND+T.. ae94.. 134ede4.. 3d0002.. 3198
EEMCHVGO_2.. ss_entry.. 134c5a8 190 PEND+T.. ae94.. 134c544.. 3d0004.. 58
EEMCHVGO_3.. _ss_entry.. 1349d08 190 DELAY.. 52162.. 13482d0.. 3d0002.. 2
logRestart.. 1e682c4.. 16d55f4 200 PEND+T.. ae94.. 16d55a8.. 39.. 1413
.
ts EEMCHVGO_3
tr EEMCHVGO_2
tr EEMCHVGO_3
Table of HDLC commands:
SYSTEM COMMAND DESCRIPTION
HDLC controls "radstoneReset" resets the Radstone HDLC slow controls communications board.
MAPMT boxes "smdInit i,j" i is HDLC channel and j is box address. This tells the
mapmt box to reset to default configurations.
MAPMT boxes "smdLoopMonitor i,j" Loops monitoring voltages and temperature of the box.
MAPMT boxes "hNodeInfo i,j" tells box to broadcast its name and a few other details.
Indicates it is up and communicating.
MAPMT boxes "smdReconfig i,j" reloads the fpga's in the box
For experts:
The MAPMT boxes
are numbered sequentially starting at 64 for 12S1, 65 for 12S2 etc.
Box
4S1 is address 80.
Box
8S1 is address 96 and 11P1 is 111.
#seq &EEMCLaser
#seq &EEMCTestLaser
back