ELMB Course 1 ATLAS DCS Readout Chain Readout Chain CANopen Master/Slave node Object dictionary ELMB CANopen Slave node Object dictionary Voltage channels OPC Server PC, VME, etc. PDO Exchange SCADA System OPC Client ELMB ELMB Digitization of analog inputs OPC Server OPC Server Client-server architecture Conversion to physical units Standard connection for any OPC Client PVSS PVSS Fine calibration and data display
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
ELMB Course 1
ATLASDCS
Readout ChainReadout Chain
CANopenMaster/SlavenodeO
bjec
tdi
ctio
nary
ELMB CANopenSlave node O
bjec
tdi
ctio
nary
Voltage channelsOPC Server
PC, VME, etc.
PDO Exchange
SCADA System OPC Client
ELMBELMB Digitization of analog inputs
OPC ServerOPC Server Client-server architecture Conversion to physical units Standard connection for any OPC Client
PVSSPVSS Fine calibration and data display
ELMB Course 2
ATLASDCS
Typical ApplicationTypical Application
ELMBELMB Maximum of 32 ELMBs in a branch
Kvaser PCI card (2 or 4 port)Kvaser PCI card (2 or 4 port) CANbus cable from USA15 or US15 to UX15CANbus cable from USA15 or US15 to UX15
GND CAN signals CAN power (20 mA/ELMB) Digital + Analog power (15 + 9 mA/ELMB)
CAN Power Crate or commercial Power SupplyCAN Power Crate or commercial Power Supply Patch panelPatch panel Rack (and wall) mounted ELMB motherboardRack (and wall) mounted ELMB motherboard
ELMB Course 3
ATLASDCS
Physical DistributionPhysical Distribution
PSPS Kvaser Kvaser PCI-CANPCI-CAN
Patch PanelPatch Panel
Rack MountedRack Mounted ELMBsELMBs
USA15USA15
UX15UX15
s ~ 0.5 ms ~ 0.5 ms ~ 5 ms ~ 5 m
ELMB Course 4
ATLASDCS
The CAN BusThe CAN Bus
Each node must have a unique IDEach node must have a unique ID 0 reserved; applies to all nodes in the CANbus
Both ends of bus must be terminatedBoth ends of bus must be terminated 120 ohm resistor between CAN_H and CAN_L
Straight Bus configurationStraight Bus configuration Star or Ring configurations are not possible
Maximum of 63 ELMBs per busMaximum of 63 ELMBs per bus Recommended maximum of 32 per bus
Configurable baud rateConfigurable baud rate Faster rates restrict bus length
125 Kbaud ≈ 500m 250 Kbaud ≈ 270m
ELMB_0x01 ELMB_0x03
ELMB_0x02
ELMB_0x3f
ELMB_0x3e
120Ω Terminator
120Ω Terminator
CAN Master (PC)
L >> l
l
L
ELMB Course 5
ATLASDCS
The ELMBThe ELMB(Embedded Local Monitor Board)(Embedded Local Monitor Board)
General purpose CAN node using CANopen Flexible I/O functions
Multiplexed ADC, 16 bit, 64 channels with signal adaptation. Configurable for rate, range, mode and number of channels
8 input, 8 output and 8 definable I/O ports SPI bus Low power consumption, opto-isolated Add-ons: DAC, 12 bit, 16-64
channelsInterlock facility
Data sent periodically, on-request or on-change Radiation tolerant
0.5 Gy and 3*1010 neutrons per year Operation in field of 1.5 Tesla Remote diagnostics and loading of SW SEE detection and recovery
Node ID DIP
switches
ELMB Course 6
ATLASDCS
ELMB MotherboardELMB Motherboard
General purpose motherboardGeneral purpose motherboard Allows for signal adaptation Connectors for analog and digital input and outputs Power connector CAN bus connector
ELMB Course 7
ATLASDCS
Motherboard Bottom SideMotherboard Bottom Side
J23Ch. 56-59
J24Ch. 48-51
J27Ch. 24-27
J28Ch. 16-19
J20Ch. 32-35
J18Ch. 36-39
J14Ch. 0-3
J16Ch. 4-7
J21Ch. 60-63
J22Ch. 52-55
J25Ch. 28-31
J26Ch. 20-23
J17Ch. 40-43
J19Ch. 44-47
J13Ch. 8-11
J15Ch. 12-15
ELMB Course 8
ATLASDCS
AdaptersAdapters
Temperature sensors – 2 wireTemperature sensors – 2 wire For NTC 10K or PT1000
Temperature sensors – 4 wireTemperature sensors – 4 wire For PT100
Differential voltage attenuatorDifferential voltage attenuator Attenuates 1:100
Inline resistorsInline resistors 1Kohm resistors for simple voltage measurement
Resistor values on adapters may be modifiedfor greater accuracy over a known voltage range
ELMB Course 9
ATLASDCS
Motherboard Top SideMotherboard Top Side
ADC inputch 48 - 63
ADC inputch 16 - 31
ADC inputch 32 - 47
ADC inputch 0 - 15
ResetCAN busJ11
Power cable
J10
Port A
Port F SPI
Port C
J4J3
ELMB Course 10
ATLASDCS
ELMB 128 Block DiagramELMB 128 Block Diagram
ELMB Course 11
ATLASDCS
PoweringPowering Ways to power the ELMBWays to power the ELMB
CAN and Digital power supplied through the CAN bus Need to connect Analog power to Digital or CAN Recommended to connect Analog power to Digital as
CAN draws more current Useful for highly distributed systems
Supply power through motherboard using up to three different supplies
Possible to connect the three power sections together and supply only one voltage (not recommended)
ADC Input Ch 48-63
ADC Input Ch 16-31
ADC Input Ch 32-47
ADC Input Ch 0-15
Reset CAN bus
J10 J4 J3 J11 Port C Port F Port A
SPI Port
Power Supply
10V + -
VAP VDP
VAG VDG
10V + -
VCP VCG
Analog Digital
CAN
Example showing ELMB connections with two power supplies
VCP
VCG
VDP
VDG
VAP
VAG
Power Cable
Analog
CAN
Digital
ELMB Course 12
ATLASDCS
Installing Kvaser CardInstalling Kvaser Card
Download drivers from:Download drivers from:www.kvaser.comThen go to ‘Support ▼’, ‘Downloads’ and under heading ‘Files for specific products’ click ‘Files for PCIcan’
Run setup programRun setup program Shut-down PCShut-down PC Check switches (SW-1 and SW-2) on CAN card and Check switches (SW-1 and SW-2) on CAN card and
set as necessary (only for 4-port card)set as necessary (only for 4-port card) Pay special attention to ‘common bus’
Install Kvaser card in free PCI slotInstall Kvaser card in free PCI slot Start PCStart PC Last setup steps will be completedLast setup steps will be completed
ELMB Course 13
ATLASDCS
Kvaser 4-port CAN CardKvaser 4-port CAN Card
SW-1SW-1 To connect CAN
ground to PC ground (switches 1 and 2 – switch 3 is unused)
SW-2SW-2 On-board
terminators for “common bus” (switches 1 and 2)
Connection of ports to “common bus” (switches 3 to 10)
Download setup zip file from:Download setup zip file from:http://atlas.web.cern.ch/Atlas/GROUPS/DAQTRIG/DCS/ELMB/DIST/OPC/OPCSetup.zipor, for a self extracting zip filehttp://atlas.web.cern.ch/Atlas/GROUPS/DAQTRIG/DCS/ELMB/DIST/OPC/OPCSetupZip.exe
Unzip to temporary folderUnzip to temporary folder Login as ‘Administrator’ to local PCLogin as ‘Administrator’ to local PC
Do NOT login to network Do NOT login with a different user name (even if the user has
administration rights) Run ‘setup.exe’ from the temporary folderRun ‘setup.exe’ from the temporary folder Install required componentsInstall required components
Kvaser and/or NICAN component Help files Diagnostic Tools OPC Server
ELMB Course 15
ATLASDCS
• CAN is one of the three recommended fieldbuses at CERN
• Defines two first layers of the OSI communication model
• Physical: Communication medium
• Data link: How the data frames look like
• CANopen is a High-level communication protocol on top of CAN
• Defines how CAN frames are used
• CANopen chosen on the basis of its flexibility and acceptance
The ELMB framework will try to hide CAN/CANopen from the users
However, a small background on the technologies will help you to understandwhy things have to be executed in a given sequence
CAN/CANopen backgroundCAN/CANopen background
ELMB Course 16
ATLASDCS All device parameters are stored in an object dictionary.
The object dictionary contains the description, data type and structure of a parameter, as well as its address
Co
mm
un
icat
ion
Inte
rfac
e
PD
O, S
DO
, NM
T Object Dictionary
Data types, Communicationand application
objects
Application
ApplicationProgram,
Device Profileimplementation
CANopen deviceSDOTxPDORxPDO
NGNMTSYNCEMCY
Pro
cess
IO
CANopen device modelCANopen device model
ELMB Course 17
ATLASDCS
• Master-slave and slave-slave communication modes• The ELMB standard readout chain implements the master-slave model
• PVSS application, using the OPC server, is CANopen master.
• A CANopen master as a network manager • node configuration
• network boot
• supervision
CANopen communication CANopen communication modelmodel
ELMB Course 18
ATLASDCS
1. Process Data Objects (PDO):
• Real time transfers
• Unconfirmed in broadcast mode
• Up to 8 data bytes
• Two types:
• Received (RxPDO): Outputs
• Transmitted (TxPDO): Inputs
2. Service Data Objects (SDO):
• Mainly used for device configuration
• Access to object dictionary
• Peer-to-peer
• Confirmed data transfer of arbitrary
length
CANopen communication objects can be classified in four categories
3. Administrative Objects:
• Network Management (NMT)
• Node Guarding (NG)
4. Special Function Objects:• Network synchronization (SYNC)
• Error conditions (EMCY)
• Time stamping
CANopen communication CANopen communication objectsobjects
ELMB Course 19
ATLASDCS
Initial
Pre-operational
OFF
Power up
Boot up EMCY
OperationalSDO
PDO
NMT = Start
NMT = Reset
NMT = Set to Pre-Op
SDO
PDO
Stopped
NMT = Stop
NMT = Start
PDO
SDO
NMT = Reset
NMT = Stop
CANopen state modelCANopen state model
ELMB Course 20
ATLASDCS
NMT: change node state
0 cmd nodeId
cmd: 0x01 => Start 0x02 => Stop 0x80 => Set to pre-operational 0x81 => Reset 0x82 => Reset CAN communication
COB-ID 0 1 2
Understanding the ELMB Understanding the ELMB messages: NMTmessages: NMT
ELMB Course 21
ATLASDCS
SYNC: request synchronous inputs from nodes
0x80
COB-ID 0 1 2
Understanding the ELMB Understanding the ELMB messages: SYNCmessages: SYNC
ELMB Course 22
ATLASDCS
SDO: read node configuration; SDO Upload
0x600 + ID Sub-IdxIndex0x40
0x580 + ID Sub-IdxIndex data0 data1 data2 data3aaa