Cryomagnetics LM-510 Liquid Cryogen Level Monitor
This repository contains the driver code and "default" Midas frontend for the Cryomagnetics LM-510 Liquid Cryogen Level Monitor.
The manual can be found under the following link: https://cryomagnetics.com/wp-content/uploads/2022/05/LM-510-Rev.-1.2.pdf. A copy of the manual has been placed in this repository.
Requirements
Requires a Midas installation with the environment variable MIDASSYS pointing
to the built Midas artifacts and headers.
Build
Clone this repository, enter the cloned directory, and then build via CMake.
cmake -S "$(pwd)" -B <directory-to-build-in>
cmake --build <directory-to-build-in> --clean-first -- -j8
Including in a larger CMake Project
Default Frontend
To use the default frontend contained within the frontend
directory from within a larger CMake project, you should ensure that the
environment variable MIDASSYS points to your system install and include a
snippet in your CMakeLists.txt similar to the following:
# If the path to the cryomagnetics_lm510 repository is outside of the frontend
# repository, you also need to provide a location for the cryomagnetics_lm510
# artifacts as a second argument to `add_subdirectory`
# e.g. `./device/cryomagnetics_lm510`
add_subdirectory(
<path-to-cryomagnetics_lm510-repository>
)
default_lm510_frontend(
Cryogen_levels_scfe # Target Name
Cryogen_levels # Frontend Name
175 # Event ID
12 # Num Channels In
6 # Num Channels Out
)
Custom Frontend
To use this driver within a custom frontend, ensure the environment
variable MIDASSYS points to your system install. Then include this
repository within the parent CMakeLists.txt and build your target
against the cryomagnetics_lm510 library:
# If the path to the cryomagnetics_lm510 repository is outside of the frontend
# repository, you also need to provide a location for the cryomagnetics_lm510
# artifacts as a second argument to `add_subdirectory`
# e.g. `./device/cryomagnetics_lm510`
add_subdirectory(
<path-to-cryomagnetics_lm510-repository>
)
add_executable(
<custom-frontend-target-name>
:
:
)
target_link_libraries(
<custom-frontend-target-name>
PRIVATE
cryomagnetics_lm510 # The library built by this repository
:
)
Test Frontend
Clone this repository, enter the cloned directory, and then build via CMake
ensuring that the BUILD_TEST_FRONTEND variable is defined.
cmake -S "$(pwd)" -B <directory-to-build-in> -DBUILD_TEST_FRONTEND=ON
cmake --build <directory-to-build-in> --clean-first -- -j8
This will create an executable within the directory
<directory-to-build-in>/Cryogen_levels_scfe which you can run via
<directory-to-build-in>/Cryogen_levels_scfe -e <instrument-name>
Hardware setup and configuration process
The notes below were done by RA36 (last revision on 28.05.2025). These notes were revised by MS36; outdated information was removed.
Initialisation
Do the necessary assembly, calibration and set-up as described in the Operating Instruction Manual.
| Channel | Setting | VMS | VMS | GPD | HAL-9500 | GPS |
|---|---|---|---|---|---|---|
| 1 | TYPE | lHe | lHe | lHe | lHe | lHe |
| H-ALM | 100.0% | 99.9% | 99.9% | NOT USED | — | |
| L-ALM | 8.0% | 20.0% | 10.0% | — | — | |
| HIGH | 90.0% | 100.0% | 98.0% | — | — | |
| LOW | 18.0% | 0.1% | 18.0% | — | — | |
| LNGTH | 34.3 cm | 60.0 cm | 34.0 cm | — | — | |
| UNITS | % | % | % | — | — | |
| BOOST | Smart | Smart | Smart | — | — | |
| MODE | Sample/Hold | Sample/Hold | Sample/Hold | — | — | |
| INTVL | 00:15:00 | 00:25:00 | 00:15:00 | — | — | |
| Lead Res | 0.00 | 0.00 | 0.00 | — | — | |
| Ohms/cm | 2.00 | 4.50 | 2.00 | — | — | |
| CTRL | Auto | Off | Auto | — | — | |
| Timeout | 30m | 4m | 20m | — | — | |
| 2 | TYPE | lN2 | lN2 | lN2 | lN2 | lN2 |
| H-ALM | 100.0% | 99.9% | 99.9% | 82.0% | NOT USED | |
| L-ALM | 9.0% | 10.0% | 5.0% | 30.0% | — | |
| HIGH | 95.0% | 92.0% | 99.9% | 99.9% | — | |
| LOW | 15.0% | 20.0% | 18.0% | 0.1% | — | |
| LNGTH | 56.0 cm | 100.0 cm | 50.0 cm | 50.0 cm | — | |
| UNITS | % | % | % | % | — | |
| BOOST | — | — | — | — | — | |
| MODE | — | — | — | — | — | |
| INTVL | — | — | — | — | — | |
| Gain | 1.00 | 1.10 | 1.00 | 1.00 | — | |
| Offset | 0.00 | 0.00 | 0.00 | 0.00 | — | |
| CTRL | Auto | Auto | Auto | Auto | — | |
| Timeout | 35m | 40m | 25m | 4m | — |
Send a service-now change request to service desk (AIT helpdesk) to order a static IP-Address (specify mac-address and specify IP name PSLMxxx) for each LM-510 to be used and using the LM-510 Front panel menu of each device enter it's IP address 129.129.sss.aaa, Subnet mask 255.255.255.0 and Gateway address 129.129.sss.1. Remember to set the Interface to LAN (Ethernet).Check accessing the HTTP interface. Username is "lm510" and password "cmi".
Channels and meaning of special measured values
- -4 channel is not being used
- -3 error during front-end startup or device is disabled
- -2 channel out of channel range or channel is not handled or error while reading channel
| Channel Name | Mode | Description |
|---|---|---|
| XX_Level | M | lHe or LN2 in specified channel units (usually %) of MEAS? <Chx> query |
| XX_Status | M | <Chx detailed status> of STAT? query |
| Mask: | ||
0x01 — Read in progress |
||
0x02 — Control Refill active |
||
0x04 — Control Timeout occurred |
||
0x08 — Control Refill is inhibited due to Off Mode or Timeout |
||
0x10 — Alarm limit is exceeded |
||
0x20 — Open sensor was detected (? lHe channel, only?) |
||
0x40 — Burnout condition was detected |
||
| XX_Control | MD | Interpreted result of CTRL? <Chx> query |
| NOTE: It is not possible to remotely read the Control set-up! | ||
Only Control action or Control failure in STAT? and Refill Timeout in CTRL? are an indication. |
||
>0 — <Refill time> + 1 [min] since automatic refill started |
||
0 — Automatic and Manual Refill Control are OFF (= currently not filling) |
||
-1 — Timeout of automatic refill → Automatic Refill Control is now OFF and must be reset to Manual or Auto! |
||
| Use Front panel menu or ODB Demand (Deltat or Instrument homepage, see below) to (re)set Control mode to Automatic refill. | ||
| Setting Control by ODB Demand | ||
| Value | Action | ||
0 — Set Control set-up to Off |
||
1 — Set Control set-up to Manual (start filling once) |
||
2 — Set Control set-up to Automatic (start filling when LOW level is reached) |
||
-1 — Command was executed (now waiting for a new command) |
||
NOTE: When Local or Menu Mode is selected on the LM-510 Panel (inMenuMode is 1 and/or isLocal is 1), remote access is limited and the LM-510 may not be remotely set to remote operate mode to change set-up. Even sending *RST or (remote) power cycling will not reset Local Mode. |
||
NOTE: When setting Control Demand after a Refill timed-out, *RST sent to clear the timeout status will reset the LM510 to power-up configuration and stop any refill action. Try to set 0 and then 1 first before setting 2. |
||
| XX_Mode | MD | Sampling mode (lHe level channels, only) |
0 — OFF |
||
1 — Sample/Hold mode |
||
| When the Sample Interval time expired or the Front panel Enter button was pressed, a measurement is performed or MODE 1 command is sent when Mode is Off. | ||
2 — Continuous sampling mode |
||
-4 — When Chx is not a lHe channel |
||
| NOTE: May also be set using Deltat or Instrument homepage. | ||
| XX_Interval | MD | Sample interval [sec] (lHe level channels, only) |
NOTE: Interval 0 is Continuous sampling. |
||
| NOTE: May also be set using Deltat or Instrument homepage. | ||
-4 — When Chx is not a lHe channel |
||
| XX_inMenuMode | M | 1 | 0: 1 = Front panel menu is selected by user |
| XX_isRemote | M | 1 | 0: Remote operation mode is (=1) | is NOT (=0) selected |
| NOTE: The front-end will switch to remote = operate mode when not in LOCAL mode and not in Menu mode. | ||
| XX_isLocal | M | 1 | 0: 1 = Device is in LOCAL mode |
| The Local button was pressed by the user and remote commands and queries requiring operate mode (but not default queries) are blocked until the Local button is pressed again — releasing LOCAL. | ||
| XX_Status (STB) | M | Status Byte (*STB? query) |
| Mask: | ||
0x01 — Ch1 Data Ready |
||
0x02 — Ch1 Control = Refill active |
||
0x04 — Ch2 Data Ready |
||
0x08 — Ch2 Control = Refill active |
||
0x04 — Ch2 Data Ready |
||
0x08 — Ch2 Control = Refill active |
||
[0x10] — MAV Message Available |
||
[0x20] — ESB Extended Status Byte |
||
[0x40] — MSS Master Summary Status |
||
0x80 — Menu selected or in LOCAL mode |
Mode:
- M = Measured value (Periodically updated device reading)
- D = Demand value (last set remotely)
Change channel mode
Check if "isRemote Measured" status of the LM510_x (e.g. Variox_) module is 1. When inMenuMode is 1 and/or isLocal is 1 remote access is limited and the LM510 may not be remotely set to operate mode to change set-up. Go to the device and leave the set-up menu by pressing the Menu or Esc button and when LOCAL is displayed press the LOCAL button until LOCAL is not shown anymore. When the front-end is connected and remote operation mode is set, REMOTE will be displayed on the LM510 display after a few seconds. (Of course you can now also set Automatic Control using the Display Menu.)
For lHe channels make sure sampling Mode is not Off (= 0) else set 1 for Sample/Hold mode or 2 for Continuous mode. To Initiate a measurement when 1 is already set: Set 0 or 2 and then 1 again.
As control mode specify 0 = Off, 1 = Manual or 2 = Automatic To immediately restart filling after a Refill Timeout occured, first set 1 (to initiate manual filling) and when filling started set 2 to switch to Automatic mode.
NOTE: In case of a hardware restart to reset Refill Timeout of a channel make sure to check if the refill of the other channel was interrrupted and should be restarted.