Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Specifications for GUI of Microtron new control panel for testing of Equipment Control Module (ECM):1. Different buttons for different command.
2. Entry field for entering set data of Dipole magnet power supply and Azimuthal settings.
3. Setting readback and device readback value display up to two decimal places (via round off). It is to be done for both
Dipole magnet and azimuth.
4. During cycling or setting, display of status of execution of command. (Information is provided by coming bit stream in
readback).
5. FPGA reset, FPGA reconfiguration and Microcontroller remote reset button should be provided.
6. In addition to values, graphical Display for the readbacks with atleast history of 6 min duration(actual duration depends
on discussion).
7. Baud rate and time out information.
8. Display of Interlock status for different interlocks.
9. Display of last command sent information (Except readbacks).
10.Display of Frame error information. (Information is provided by acknowledgement frame).
11.Display and setting of different parameters for settings and cycling command respectively.
12.Display and logging of frame retry and error information. This will provide useful information for optimizing the intercommand delays and also for statistical analysis (no. of retries depends on discussion).
Functional specification for the control panel:
1. The software application should be able to communicate over RS232/RS485 link via an Ethernet to Serial device
networking module (make MOXA).
2. The communication is done in Command-acknowledgement-response form.
3. Different frame types need to be sent respectively(Frame format is provided in section1 & section 2):
a.
b.
c.
d.
e.
f.
g.
h.
i.
j.
k.
l.
Abort operation
Setting of supply
Cycling of supply
Switch ON supply
Switch OFF supply
Shutdown device
Setting Readback
Device Readback
FPGA remote reset
FPGA remote reconfiguration
Microcontroller remote reset
Global system shutdown(broadcast type and to be sent to all systems simultaneously with no acknowledgement)
4. Each time when a readback frame is sent by the application, the ECM will send two frames.
a. First one is the acknowledgement frame.
b. Second one is required information.
In case, if frame is incorrect then only negative acknowledgement will be given to the software.
Section 1
Frame formats for Equipment Control Module.
Start
Delimiter
Destination
Address
Source
Address
Reserved
bytes
Frame Type
No. of
Parameters
Data Field
Checksum
End
Delimiter
\r\n
Fig. 1
Presently, the communication between the EPICS and the Equipment Control Module (ECM) is done over RS232/RS485 link at a
configurable baud rate. The baud rate is configurable from 9600bps to 38400bps. Default is taken as 19.2kbps. The GUI sends
the above frame over the serial link and is received by ECM for further processing. The various fields indicated in the above fig.
1 are briefed below:
1.
2.
3.
4.
Start Delimiter: It is single dollar ($) character. It gives the information regarding the start of the frame.
Destination Address: It is a 4 character field and gives information about the address of receiver.
Source Address: It is a 4 character field and gives information about the address of sender.
Reserve Bytes: It is 4 byte field reserved for future requirements. Presently, it is dont care and can have any value from
0000-FFFF in Hex.
5. Frame Type: Depending upon the required function, the field is divided into 14 types and covered in section2.
6. No. of parameters: It is the number of parameters contain in Data field. Depending upon the type of frame and data field
content, presently, it can vary from 0 to 8. Details are covered in section 2.
7. Data Field: It is the whole data packet required to set different references for power supplies. This field consist of various
parameters. Each parameter is 4 characters long and is represented in hexadecimal format.
8. Checksum: This field is used for data correctness. The field sums all the data values in hex format and last 4 characters
are required to be sent. Details are in section 2.
9. End Delimiter: It is single star (*) character. It gives the information regarding the end of the frame.
10.\r\n : It is used at the end of the frame to increase the readability at the hyper-terminal and is also a mandatory field.
Note:
1. Start & End Delimiters are single character only.
Section 2
Command Types: Various command types are required for the functioning of different systems. Every command type has a 32
bit (4 character) code assigned to it. The GUI sends the code in command type field. The table below lists the command type
and corresponding code.
S.No.
Command Type
1.
Cycling
0001
2.
Abort
0002
3.
Switch On
0003
4.
Switch Off
0004
5.
Shutdown
0005
6.
Channel1 Setting
0006
7.
0007
8.
0008
9.
Channel2 Setting
0009
10.
0010
11.
0011
12.
0097
13.
0098
14.
0099
1. Cycling: This command is responsible for setting dipole magnet power supply references for cycling of dipole magnet.
The example includesSD
DA
SA
Reserved
bytes
Comman
d Type
No .of
parameters
Board
addre
ss
0000
xxxx
0001
0008
No.
of
Cycl
es
000
3
Ima
x
Imi
n
Rise_slo
pe
Fall_slo
pe
Top_Fl
at
Time
Bottom_Fl
at Time
F0A
1
088
9
00E0
00CD
0B00
00E0
Final
Curre
nt
Value
6438
Checksu
m
End
Delimit
er
Add all
field
values in
HEX
format
and take
last 4
byte.
Final
Curre
nt
Value
xxxx
Checksum
End
Delimit
er
Add all
field
values in
HEX
format
and take
last 4
byte.
Final
Curre
nt
Value
xxxx
Checksum
End
Delimit
er
Add all
field
values in
HEX
format
and take
last 4
byte.
\r\n
Field values
2. Abort: This command is used to stop the current command execution to its present state.
SD
DA
SA
Reserved
bytes
Comman
d Type
No .of
parameters
Board
addre
ss
0000
xxxx
0002
xxxx
No.
of
Cycl
es
xxxx
Ima
x
Imi
n
Rise_slo
pe
Fall_slo
pe
Top_Fl
at
Time
Bottom_Fl
at Time
xxx
x
xxx
x
xxxx
xxxx
xxxx
xxxx
\r\n
3. Switch On: This command is used to ON the dipole magnet power supply.
SD
DA
SA
Reserve
d bytes
Comman
d Type
No .of
parameters
Board
addre
ss
0000
xxxx
0003
xxxx
No.
of
Cycl
es
xxxx
Ima
x
Imi
n
Rise_slo
pe
Fall_slo
pe
Top_Fl
at
Time
Bottom_Fl
at Time
xxx
x
xxx
x
xxxx
xxxx
xxxx
xxxx
\r\n
4. Switch Off: This command is used to off the dipole magnet power supply.
SD
DA
SA
Reserve
d bytes
Comman
d Type
No .of
parameters
Board
addre
ss
0000
xxxx
0004
xxxx
No.
of
Cycl
es
xxxx
Ima
x
Imi
n
Rise_slo
pe
Fall_slo
pe
Top_Fl
at
Time
Bottom_Fl
at Time
xxx
x
xxx
x
xxxx
xxxx
xxxx
xxxx
Final
Curre
nt
Value
xxxx
Checksum
End
Delimit
er
Add all
field
values in
HEX
format
and take
last 4
byte.
\r\n
5. Shutdown: This command is used to shut down the dipole magnet power supply with gradual decrease in
current.
SD
DA
SA
Reserve
d bytes
Comman
d Type
No .of
parameters
Board
addre
ss
0000
xxxx
0005
xxxx
No.
of
Cycl
es
xxxx
Ima
x
Imi
n
Rise_slo
pe
Fall_slo
pe
Top_Fl
at
Time
Bottom_Fl
at Time
xxx
x
xxx
x
xxxx
xxxx
xxxx
xxxx
Final
Curre
nt
Value
xxxx
Checksu
m
End
Delimit
er
Add all
field
values in
HEX
format
and take
last 4
byte.
\r\n
6. Setting: This command is used to set the dipole magnet power supply to a particular given reference.
SD
DA
Board
addre
ss
SA
0000
Reserve
d bytes
xxxx
Command
Type
0006
No .of
parameters
0008
No. of
Cycles
0000
Imax
setting
Imin
setting
Rise_slope
Slope set
Fall_slope
Slope set
Top_Flat
Time
0000
Bottom_Flat
Time
0000
Final
Current
Value
Checksum
End
Delimiter
setting
Add all
field
values
in HEX
format
and
take last
4 byte.
\r\n
7. Setting Read back: This command ask the TM to provide the 16bit value set on DAC.
SD
DA
SA
Reserve
d bytes
Command
Type
No .of
parameters
Board
addre
ss
0000
xxxx
0007
xxxx
No.
of
Cycl
es
xxxx
Ima
x
Imi
n
Rise_slo
pe
Fall_slo
pe
Top_Fl
at
Time
Bottom_Fl
at Time
xxx
x
xxx
x
xxxx
xxxx
xxxx
xxxx
Final
Curre
nt
Value
xxxx
Checks
um
End
Delimi
ter
Add all
field
values
in HEX
format
and
take
last 4
byte.
Final
Curre
nt
Value
xxxx
Checks
um
End
Delimi
ter
Add all
field
values
in HEX
format
and
take
last 4
byte.
\
r\n
8. Device Read back: This command ask the FM to provide the 12bit value from ADC.
SD
DA
SA
Reserve
d bytes
Command
Type
No .of
parameters
Board
addre
ss
0000
xxxx
0008
xxxx
No.
of
Cycl
es
xxxx
Ima
x
Imi
n
Rise_slo
pe
Fall_slo
pe
Top_Fl
at
Time
Bottom_Fl
at Time
xxx
x
xxx
x
xxxx
xxxx
xxxx
xxxx
9. Azimuth Setting: This command is used to set the dipole magnet power supply to a particular given
reference.
SD
DA
SA
Reserve
d bytes
Command
Type
No .of
parameters
No. of
Cycles
Imax
Imin
Rise_slope
Fall_slope
Top_Flat
Time
Bottom_Flat
Time
Final
Current
Checksum
End
Delimiter
\
r\n
Value
Board
addre
ss
0000
0000
0009
0008
0000
setting
setting
Slope set
Slope set
0000
0000
setting
Add all
field
values in
HEX
format
and take
last 4
byte.
\r\n
10.
Azimuth Setting Read back: This command asks the FM to provide the 16bit value set on DAC for
Azimuth.
SD
DA
SA
Channel
No.
Command
Type
No .of
parameters
Board
addre
ss
0000
xxxx
0010
xxxx
11.
Ima
x
Imi
n
Rise_slo
pe
Fall_slo
pe
Top_Fl
at
Time
Bottom_Fl
at Time
xxx
x
xxx
x
xxxx
xxxx
xxxx
xxxx
Final
Curre
nt
Value
xxxx
Checksu
m
End
Delimi
ter
Add all
field
values in
HEX
format
and take
last 4
byte.
\
r\n
Azimuth Device Read back: This command asks the FM to provide the 12bit value from ADC.
SD
DA
SA
Channel
No.
Command
Type
No .of
parameters
Board
addre
ss
0000
xxxx
0011
xxxx
12.
No.
of
Cycl
es
xxxx
No.
of
Cycl
es
xxxx
Ima
x
Imi
n
Rise_slo
pe
Fall_slo
pe
Top_Fl
at
Time
Bottom_Fl
at Time
xxx
x
xxx
x
xxxx
xxxx
xxxx
xxxx
Final
Curre
nt
Value
xxxx
Checksu
m
End
Delimi
ter
Add all
field
values in
HEX
format
and take
last 4
byte.
\
r\n
Start
Delimiter
$
13.
Source
Address
Board
address
0000
Command
Type
Checksum
End
Delimiter
0097
\r\n
14.
Destination
Address
Destination
Address
Source
Address
Board
address
0000
Command
Type
Checksum
End
Delimiter
0098
\r\n
Destination
Address
Source
Address
Board
address
0000
Command
Type
Checksum
End
Delimiter
0099
\r\n
S
D
DA
SA
Readback
of
CH1/CH2
Settin
g
value
8
Interloc
ks
Remote/lo
cal
On/O
ff
Under
cyclin
g
Under
Settin
g
New
fram
e
00
00
Boar
d
addr
ess
SRC1 /
SRC2
4 char
8 bits
1 bit
1bit
1bit
1bit
1bit
Dat
a
erro
r
1bit
Redunda
nt bits
End
Delimit
er
00(2
bits)
\
r\n
2. Device readback: The setting is a 12 bit value from ADC, therefore, its response value contains 3 characters in
device value field.
S
D
DA
SA
Readback
of
CH1/CH2
Device
value
8
Interloc
k
Remote/lo
cal
On/O
ff
Unde
r
cyclin
g
Under
Settin
g
New
fram
e
Data
error
Redunda
nt bits
End
Delimi
ter
00
00
Boar
d
addr
ess
DRC1 /
DRC2
4 char
8bits
1bit
1bit
1bit
1bit
1bit
1bit
00(2
bits)
\
r\n
$
#
Destination
address
Source
Address
Frame
Type
4 char
4 char
4 char
0000
Board
address
ACKW
Acknowledge
ment
End
Delimiter
4 char
This will contains frame type information in
hex number
FYOK/FNOK#
FYOK( Frame Yes OK): For correct frame received, positive acknowledgement followed by read-back frame will be sent.
FNOK( Frame Not OK): For incorrect frame received, only negative acknowledgement will be sent. No read-back frame will be sent.
DRC1: Device Readback Channel1
SRC2: Setting Readback Channel2
DRC1: Device Readback Channel1
SRC2: Setting Readback Channel2
\
r\n