-
Notifications
You must be signed in to change notification settings - Fork 2
FZJ_Fermi_chopper
This device has a relatively complex IOC due to some communication issues we have had with the chopper. The following things are non-standard:
- Custom checksum algorithm in stream device. This is specific to this fermi chopper.
-
aSub
record to parse a response string from the hardware. -
aSub
record to decide how to send the speed setpoint to the device -
aSub
record to decide whether a given command is allowed to be sent -
SNL
state machine to ensure that setpoints and their readbacks stay in sync (for both gate width and phase delay) - There is logic in the DB records to prevent sending a speed setpoint that is equal to the current speed setpoint readback.
At 600Hz, the chopper exhibits strange behaviour:
- If the speed setpoint is already 600Hz and a speed setpoint of 600Hz is resent, the chopper gets confused. The phase delay will appear to be zero forever. To get out of this state, need to send a different setpoint, wait for the actual device speed to drop (e.g. to 599Hz), and then 600Hz can be set successfully. This problem is mitigated in the driver by not sending a speed setpoint which is equal to the current speed setpoint readback.
- If the device is at 600Hz and already spinning, sending the "switch drive on and run" command causes the same bug as above. This problem is mitigated in the driver by disallowing the "switch drive on and run" command from being sent if the chopper speed is >595Hz and the setpoint readback is 600Hz and the drive generator is already on.
For more details, see #2741
The delay setpoint can be wrong if the high byte and low byte of the setpoint are received in the wrong order. The observed behaviour in this state is that the setpoint readback will appear to be correct, but the actual delay will home in on a different (incorrect) value. Resending the delay setpoint in the correct order fixes this state.
This problem is mitigated in the driver by having a state machine which keeps the actual delay and the delay setpoint in sync.
For more details, see #2628
Occasionally the device will get confused and reset its gate width to a semi-random value. Resending the gate width causes it to pick up the correct value again.
This problem is mitigated in the driver by having a state machine which keeps the gate width and gate width readback in sync.
Firstly, check in the "advanced" tab of the OPI - any of the following will cause the device to spin down:
- Interlock open (the scientists know how to reset this)
- Crate or electronics temperatures too hot (above 45C)
- A few other (less common) conditions indicated by red interlock LEDs on the OPI
In addition to the above, there are safety checks in the IOC which will cause the IOC to request a spin down:
- If the electronics temperatures or motor temperatures go above 45 Celsius.
- If the auto zero voltages are out of range (absolute value higher than 3 volts)
- If the actual chopper speed is above 606Hz
- If the magnetic bearing is off while the chopper is at speed
- This was seen on MAPS:
- Cannot communicate using VISA under EPICS
- If chopper crate and instrument PC are power cycled, may need to run labview driver once before epics can talk. We are still not sure why this is.
On MAPS, the crate's communications layer can fail, causing the device to ignore the standard polling command (#0000000$
). To recover from this state, send the shortened command 0$
repeatedly until you get a response. The IOC should automatically do this whenever it detects no response to the standard command.