TAC Review
ONCS Common Control Architecture
August 10, 1998
Edmond Desmond
On-Line Distributed Architecture Goals
Characteristics of the On-Line Architecture
PHENIX Detector Control Environment
Provides Controls for
Data Collection System
Data Collection Modules (DCM)
Data Collection Boards (DCB)
Partition Module (DPM)
Event Builder
Sub Event Buffers (SEB)
Event Builder Controller (EBC)
Assembly Trigger Processors (ATP)
Level 1
Timing System
Global Timing Module (GTM)
Master Timing Module (MTM)
Main Magnets
FEM
Architecture Implementation
Available Orbix Functionality includes
Interface Definition Language (IDL)
interface NameService {
void BindName ( in string objectName,
in Object objectRef );
long ResolveName ( in string objectName,
out Object objectRef );
};
Architecture Mechanisms for remote object access and Invocation
Naming Service
Using the Naming Service
// Client Code
nameserv_ptr pns;
pns = NameServer::_bind(":NS"," ");
// obtain a reference to a registered object
CORBA::Object_ptr pobject;
pns->ResolveName("daqevnot", pobject );
// Server Code to Register Objects
En_ptr pevnot = new TIE_EN(evnot_i)
(new EN_I(),"daqevnot");
pns->BindName("daqevnot",pevnot);
Event Notifier
Using the Event Notifer Service
pdcm1 = new TIE_Dcm(Dcm_I)
(new Dcm_I( ),"dcm1");
pevnot->subscribe(eventlist,"dcm1",pdcm1);
Event event;
// fill event with event identifiier and data
pevnot->sendevent(event );
CORBA 2.0 Event Service Model
Object Managers
Using the Object Manager
pns->ResolveName("daqobjmgr", pobjmgr );
Pobjmgr->getObjectList( objectlist );
CORBA::Object_ptr pobject =
pobjmgr->getObjectRef("dcm1", pdcm );
pobjmgr->newComponent("dcm2",pobject);
Active Object Implementation
Using the Active Objects
Event event;
// fill event structure;
event.eventid = 1;
pevnot->sendevent( event);
Event Structures
struct Event {
long eventid;
EventType type;
string srcObjectName;
string destObjectName;
Any devicedata;
};
Component Inheritance Hierarchy
PHENIX Naming Convention
A format for naming and identifying components throughout the PHENIX detector system.
Conventions for detector segment and configurable devices have been defined and agreed upon by the collaboration
FEATURES OF A NAMING CONVENTION
Identifies the sub detector and location to which a component belongs.
DCM.PBSC.[E].SE[0-3].SM[0-17]
DCM.PBSC.E.SE1.SM2
|
Sub System |
Mnemonic |
|
BB |
Beam Beam |
|
MVDB |
MVD barrel |
|
MVDE |
MVD endcaps |
|
DC |
Drift Chamber |
|
PC1 |
Pad Chamber |
|
PC2 |
Pad Chamber 2 |
|
PC3 |
Pad Chamber 3 |
|
TEC |
Time Expansion Chamber |
|
RICH |
|
|
TOF |
Time of Flight |
|
PBSC |
Lead scintillator |
|
PBGL |
Lead Glass |
|
MUTR |
Muon Tracker |
|
MUID |
Muon Id |
|
LV1 |
Level 1 |
|
PHNX |
Phenix Global Resource |
|
MM * |
Main Magnet |
Arms
|
Arm Identifier |
Arm Name |
|
E |
East |
|
W |
West |
Side
|
Side Identifier |
Side Name |
|
N |
North |
|
S |
South |
Segments:
|
Segment Identifier |
Segment Name |
|
SM |
Supermodule |
|
SR |
Supermodule row |
|
SC |
Supermodule column |
|
SU |
Super Unit |
|
KS |
Keystone |
|
PL |
Plane |
|
PA |
Panel |
|
SE |
Sector |
|
HS |
Half Sector |
|
RO |
Row |
|
CO |
Column |
|
MO |
Module |
|
EN |
End |
|
SL |
Slat |
|
ST |
Strip |
|
TO |
Tower |
|
CE |
Cell |
|
GP |
Gap |
|
SN |
Station |
|
TB |
Tube |
|
TV |
Tube Vertical |
|
TH |
Tube Horizontal |
|
WE |
Wedge |
|
CH |
Channel |
|
CN |
Chain |
|
C |
EndCap |
|
B |
Barrel |
Configurable Devices
|
Component Name |
Component Type |
|
DCB |
Data Collection Board |
|
DCM |
Data Collection Module |
|
FEM |
Front End Module |
|
HV |
High Voltage |
|
MTM |
Master Timing Module |
|
GTM |
Granule Timing Module |
|
PPG |
Programmable Pulse Generator |
|
Others as identified |
|
|
LL1BD |
LL1 board |
|
GL1BD |
GL-1 board |
Current Implementations
Interprocess Communication Mechanisms
ONCS server and application code is isolated from sub system developed code
Sub system code executes in a separate process
Command are sent via message queues
All commands are required to return a completion status code
Monitored data is read through shared memory
Data Collection System Controls
to control DCM operations
Sub Event Buffer Controls and Management
Main Magnet Controls
Main Magnet Controls
Consists of 3 Invar Power Supply Main Magnets
Control Interface
RS422 serial control
ASCII command and status return
Synchronous communication only
Allen Bradley Serial Highway to Allen Bradley Fault Monitoring Controller
Control System Description and Components
Command control and monitoring from NT based server
Uses ONCS common server and component interface.
Java based application interface implemented
Facility fault monitoring from Allen Bradley PLC -5 controller.
Control and monitoring application is written in PLC ladder logic by AGS personnel.
Interlock connection between main facility monitoring of critical faults
( temperature and water flow) and system shutoff
Fault monitoring of main facility interlocks will be connected to Invar internal fault bus
Facility faults are updated to ONCS monitoring process.
Schedule
Initial magnet mapping tests are scheduled for mid July.
Main Magnet Control Connections
ONCS readout of Allen Bradley monitored status and faults is through and Allen Bradley serial highway.
Allen Bradley NT drivers were purchased as part of the Rslinx software package.
Connection to ONCS server is through Rslinx DDE message mapping.
Main Magnets Command and Monitoring Functions
Command Set
Voltage setpoint 0 - 120v
Current setpoint 0- 3800 amps
Voltage Ramp Rate 1.2 to 126 volts/second
Current Ramp Rate 4.0 to 400 A/second
System start/stop
System reset
Power on / off
Start ramp up / down
Voltage readback
Current readback
Voltage setpoint readback
Current setpoint readback
Ramp rate readback for voltage and current
Fault status readback
Reads back 44 individual status indicators