AGPS User Manual 0.1
AGPS User Manual 0.1
V 0.1
Changelog
This Gun is heated up by Electron bombardment from an auxiliary electron gun, hence the Auxiliary Gun and its power
supply.
The AGPS regulates the amount of heat at the Main Gun by controlling the amount of electrons that are accelerated
towards it and eventually transferring all kinetic energy they gain while accelerating towards it in an electric field
generated by the High Voltage source of the AGPS, see Figure 1.
Figure 1: Block diagram of the Cathode and Auxiliary Gun in the M22 Microtron.
The 2 power supplies are controlled using the SCE2 to achieve the requires operation by analog and digital signals.
The regulation, control and interfacing is all performed by the SCE2 which can be controlled over USB and/or Ethernet.
3 System Design
The AGPS is made of three parts as discussed earlier, two power supplies provided by TECHNIX from France and the
control electronics that controls all aspects of the afore mentioned power supplies to generate the Auxiliary Gun Current
as required.
These two power supplies are provided with a cable to connect between them shown in the picture below:
Figure 3: TECHNIX Power Supplies Front View
ADD PICTURE
These power supplies can be controlled with an analog interface that utilizes a 10V signal to set and read the current and
voltage settings and measurements in the power supply itself along with some digital I/O for control signals. This interface
is used to interact with the power supplies from the SCE2.
The Control cables connected between the Power Supplies and the SCE2 cannot be swapped, each cable must be
connected to its correct location, otherwise this can risk damage to the system.
3.2.1 Features
The SCE2 system is made up of 3 cards:
The Ethernet stack is FreeRTOS-TCP which makes it easy to integrate into the operating system.
Operation is divided between multiple tasks, each task taking control of a part of the system, with the “Machine” task
being the main task in control of the system.
[A] USB Info 1 System info printed every second on USB serial link
[A] USB CLI 1 Command Line Interface over USB serial link
[A] Log Dump 2 Handles the transfer of the postmortem log over TCP
[A] Machine 4 The Main task responsible for the overall state of the Power Supply
[A] Regulator 7 The regulation loop that controls the driving signal of the power supply
[A] Supervisor 8 Monitoring all values and asserting interlocks and resetting them
[A] LED2 12 Controlling the toggling times of LED1 on the front panel
[A] LED1 12 Controlling the toggling times of LED2on the front panel
Notes:
At power up the system starts at an undefined state, then goes through an automatic reset, if no interlocks are present
the system will be ready to operate.
The loop is built using a simple PI controller as the system has no source of rapid disturbances, the most prominent effect
is thermal which is usually slow and PI control scheme is more than capable of taking control. The system can be seen in
Figure 5 and Figure 6.
Figure 6: Detailed Control Loop
The labels given to the lines in Figure 6 are the register and parameters names that can be read to see the status of the
regulation loop while in operation. Names that end with “_R“ indicate registers and “_P” indicate parameters.
The chosen scheme minimizes wind-up effects, as the output never exceeds the set limits. The scheme also integrates
the limit on rate of change of the Filament Current.
The system integrates two very similar regulation loops with different Kp and Ki values. One is for regulating at Standby
and the other is for regulating in Trig-On mode. This provides the possibility of tuning the system more precisely.
3.2.2.3 Supervisor
The Supervisor task is responsible for monitoring all states and value and making sure the system works in the safest
possible way, measured values are compared against limits to initiate interlocks and inform the system of any possible
problem.
3.2.2.4 Machine
The Machine task is the main task that controls the current state of the system, all commands are sent to the other tasks
from the Machine task.
4 Control Interfaces
The AGPS power supply can be controlled remotely over different interfaces:
USB Serial Port Emulator command console, vie front panel Micro-USB connector.
TCP based command console.
TCP Datastream, this is a binary data transmission protocol, check Interface_Manual.pdf document.
UDP Datastream, same as TCP Datastream, this is faster but less reliable.
All links are available simultaneously but only one interface can have write access on the system, this insures that no
conflicts can happen.
5 Setup
The AGPS system requires to be initially setup to work as intended.
When power is applied on the control part of the system and an Ethernet cable is plugged into the Ethernet port the
system looks for a DHCP server to setup the IP address. If a DHCP server is found the AGPS takes an IP and that becomes
the IP over which the system can be interfaced. This IP can be read using the USB console interface, by sending a carriage
return the screen starts printing statistics, one of which is the IP the system has taken.
All network settings can be configured using the USB console interface, consult with the Interfaces_Manual.pdf document
for more details.
Once the Ethernet is properly setup the controller needs to be reset in order for the settings to take effect.
5.2 Parameter Setup
All parameters need to be setup to work with the system as intended, these parameters are responsible for the protection
of the system as well, so great care must be taken when doing this step.