A Transfocator is a tunable X-ray focusing apparatus based on compound refractive lenses. By varying the number of lenses in the beam, the energy focused and the focal length can be varied continuously throughout a large range of energies and distances.
Transfocators are controlled through a Wago PLC’s output module that activates pneumatic actuators. The state is read through Wago PLC’s input module: every lens and pinhole has two limit switches that read IN or OUT state.
The configuration should define in particular the number of lenses and the number of pinholes. Both lenses and pinholes have a binary state in the sense that they can only be inserted or removed.
Example YAML configuration file, automatic layout¶
name: tfmad class: transfocator controller_ip: 184.108.40.206 lenses: 7 pinhole: 2 safety: True
The number of lenses is mandatory. The number of pinholes vary from 0 to 2, consider the following cases:
pinhole: 1we assume that the pinhole is at the beginning
pinholes: 2we assume that pinholes are one at the beginning and one at the end
safety: True a pinhole is forced in whenever a lens is in.
Omitting safety parameters equals to
Alternative YAML configuration file, specifying layout¶
name: tf class: Transfocator controller_ip: wcid232b # beam from the left layout: P L L L L X X X P
layout is a string separated by spaces, describing pinholes (
P) and lenses (
within the transfocator, with incident beam coming from left to right.
X means: empty slot.
read_mode: 0 (default) means first transfocator lens in beam state switch is wired first in Wago
- any other value means the opposite, that the first transfocator state switch is wired last
cmd_mode: 0 (default) means first transfocator lens action switch is wired first in Wago
- any other value means the opposite, that the first transfocator action switch is wired last
We can simulate any Transfocator simply changing the yml parameter
class: Transfocator with