File size: 27,414 Bytes
3b67020
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
{
 "class": "solid_prep",
 "adapter": "chemlab.compile.classes.solid_prep:SolidPrepAdapter",
 "about": "Solid sample preparation: method, intensity, set-temp, program, start (job), pause, stop, rearm, result, and for the manual press pump, valve, leadscrew and the guards; status. Ranges, enums and units come from each contract; method templates are the contracts' reference arguments.",
 "membership": {
  "decided": "2026-10-22",
  "primary": ["retsch_pm100", "retsch_as200", "retsch_pt100", "specac_atlasmanual", "malvern_leneo"],
  "secondary": {},
  "excluded": {
   "ika_t25": "the disperser homogenises a liquid suspension (wet dispersion); its verbs (speed, start/stop) are the agitation class's, which owns it as primary; a solid_prep secondary would add no verb it lacks there."
  }
 },
 "members": {
  "retsch_pm100": {
   "role": "primary",
   "verbs": {
    "method": {"cap": "method.configure",
               "keys": {"speed": {"arg": "speed_rad_s", "kind": "rotation"}, "time": {"arg": "duration_s", "kind": "duration"},
                        "interval": {"arg": "interval_s", "kind": "duration"}, "pause": {"arg": "pause_s", "kind": "duration"},
                        "reverse": {"arg": "reverse"}, "direction": {"arg": "direction"}}},
    "intensity": {"cap": "milling.set_speed", "arg": "speed_rad_s", "kind": "rotation"},
    "program": {"cap": "program.select", "arg": "slot"},
    "start": {"cap": "acquisition.start", "delay_cap": "acquisition.start_in", "delay_arg": "delay_s"},
    "stop": {"cap": "acquisition.stop"},
    "rearm": {"cap": "cycle.rearm"},
    "result": {"cap": "milling.measure", "show": {"phase": "phase", "mode": "mode", "speed": ["speed_rad_s", "rotation"], "grinding time": ["active_s", "duration"],
                                                  "elapsed": ["wall_s", "duration"], "remaining": ["remaining_s", "duration"], "fault": "fault"}}
   },
   "slots": {"power": "power.enabled", "phase": "cycle.phase"},
   "status": [["power", "power.enabled", "bool"], ["lid", "lid.angle_rad", "angle"], ["jar clamped", "mount.clamped", "bool"], ["balanced", "mount.balanced", "bool"],
              ["cycle", "cycle.phase"], ["mode", "cycle.mode"], ["speed", "milling.speed_rad_s", "rotation"], ["set speed", "milling.target_rad_s", "rotation"],
              ["grinding time", "cycle.active_s", "duration"], ["program", "program.selected"], ["fault", "fault.code"]],
   "requires": {
    "method": [{"slot": "cycle.phase", "not": ["running"], "code": "BUSY", "message": "{inst} is grinding.", "fix": "wait for the job, or stop it."},
               {"slot": "cycle.active_s", "max": 0, "code": "CYCLE_FINISHED", "message": "{inst} still holds the last cycle ({value} s ground); a new method is set after re-arming.",
                "fix": "`chemlab run {inst} rearm`, then set the method."}],
    "intensity": [{"slot": "cycle.phase", "not": ["running"], "code": "BUSY", "message": "{inst} is grinding.", "fix": "wait for the job, or stop it."},
                  {"slot": "cycle.active_s", "max": 0, "code": "CYCLE_FINISHED", "message": "{inst} still holds the last cycle; the speed is set after re-arming.",
                   "fix": "`chemlab run {inst} rearm`, then set the speed."}],
    "start": [{"slot": "power.enabled", "value": true, "code": "POWER_OFF", "message": "{inst} is switched off.", "fix": "switch it on: `chemlab run {inst} power on`."},
              {"slot": "lid.target_rad", "max": 1e-8, "code": "LID_OPEN", "message": "the lid of {inst} is open.", "fix": "close it: `chemlab run {inst} close lid`."},
              {"slot": "lid.angle_rad", "max": 1e-8, "code": "LID_MOVING", "message": "the lid of {inst} is still closing ({value} rad).", "fix": "wait a few seconds (`chemlab wait 5`) and start again."},
              {"slot": "sample.configured", "value": true, "code": "NO_SAMPLE", "message": "no grinding jar with sample is in {inst}.", "fix": "ask the lab operator to load the jar."},
              {"slot": "mount.clamped", "value": true, "code": "JAR_NOT_CLAMPED", "message": "the grinding jar in {inst} is not clamped.", "fix": "ask the lab operator to clamp it."},
              {"slot": "mount.balanced", "value": true, "code": "NOT_BALANCED", "message": "the counterweight of {inst} is not set for the jar.", "fix": "ask the lab operator to balance it."},
              {"slot": "method.configured", "value": true, "code": "NO_METHOD", "message": "{inst} has no grinding parameters set.", "fix": "`chemlab run {inst} method speed=300rpm time=5min`."},
              {"slot": "cycle.phase", "not": ["succeeded", "failed"], "code": "CYCLE_FINISHED", "message": "the last cycle of {inst} has ended ({value}).", "fix": "`chemlab run {inst} rearm`, then start."},
              {"slot": "cycle.phase", "not": ["running"], "code": "BUSY", "message": "{inst} is already grinding.", "fix": "wait for the job, or stop it."}],
    "rearm": [{"slot": "cycle.phase", "not": ["idle", "running"], "code": "NOTHING_TO_REARM", "message": "{inst} has no finished or stopped cycle ({value}).", "fix": "nothing to do."}],
    "program": [{"slot": "cycle.phase", "not": ["running"], "code": "BUSY", "message": "{inst} is grinding.", "fix": "wait for the job, or stop it."}]
   },
   "unsupported": {
    "set-temp": "the mill has no heating or cooling (the jar warms by grinding)",
    "pause": "the PM 100 has Start and Stop only; a stopped cycle resumes with `start`",
    "feeder": "no vibratory feeder (the jar is filled by hand)",
    "pump": "not a press", "valve": "not a press", "leadscrew": "not a press"
   },
   "alternatives": {"pause": "stop it (`chemlab run INST stop`) and resume with `chemlab run INST start` (the remaining time is kept)."},
   "path": "acquisition", "path_exceptions": ["milling.measure"],
   "params": {"run_word": "grinding cycle", "stop_ok_slot": "cycle.start_in_s", "running_phases": ["running"], "done_phases": ["succeeded"], "failed_phases": ["failed", "cancelled"]},
   "notes": {"start": ["--delay T uses the start-delay function of the mill (acquisition.start_in)"],
             "intensity": ["the mill speed (milling.set_speed) before the cycle starts"]}
  },
  "retsch_as200": {
   "role": "primary",
   "verbs": {
    "method": {"cap": "method.configure",
               "keys": {"amplitude": {"arg": "total_lift_m", "kind": "length"}, "time": {"arg": "duration_s", "kind": "duration"},
                        "interval-on": {"arg": "interval_enabled"}, "interval": {"arg": "interval_drive_s", "kind": "duration"}}},
    "intensity": {"cap": "sieving.set_lift", "arg": "total_lift_m", "kind": "length"},
    "program": {"cap": "program.select", "arg": "slot"},
    "start": {"cap": "acquisition.start"},
    "pause": {"on_cap": "acquisition.pause", "off_cap": "acquisition.resume"},
    "stop": {"cap": "acquisition.stop"},
    "rearm": {"cap": "cycle.rearm"},
    "result": {"cap": "sieving.measure", "show": {"phase": "phase", "mode": "mode", "elapsed": ["elapsed_s", "duration"], "driven": ["driven_s", "duration"],
                                                  "remaining": ["remaining_s", "duration"], "amplitude": ["indicated_total_lift_m", "length"],
                                                  "acceleration (m/s2)": "indicated_acceleration_m_s2"}}
   },
   "slots": {"power": "power.enabled", "phase": "cycle.phase"},
   "status": [["power", "power.enabled", "bool"], ["cover lift", "cover.lift_m", "length"], ["stack clamped", "mount.clamped", "bool"], ["cycle", "cycle.phase"],
              ["mode", "cycle.mode"], ["amplitude", "sieving.indicated_total_lift_m", "length"], ["set amplitude", "sieving.target_total_lift_m", "length"],
              ["elapsed", "cycle.elapsed_s", "duration"], ["remaining", "cycle.remaining_s", "duration"], ["program", "program.selected"], ["fault", "fault.code"]],
   "requires": {
    "method": [{"slot": "cycle.elapsed_s", "max": 0, "code": "CYCLE_FINISHED", "message": "{inst} still holds the last sieving ({value} s); a new method is set after re-arming.",
                "fix": "`chemlab run {inst} rearm`, then set the method."}],
    "start": [{"slot": "power.enabled", "value": true, "code": "POWER_OFF", "message": "{inst} is switched off.", "fix": "switch it on: `chemlab run {inst} power on`."},
              {"slot": "sample.configured", "value": true, "code": "NO_SAMPLE", "message": "no sieve stack with sample is on {inst}.", "fix": "ask the lab operator to load it."},
              {"slot": "cover.target_m", "max": 1e-9, "code": "COVER_OPEN", "message": "the clamping cover of {inst} is not down.", "fix": "close it: `chemlab run {inst} close cover`; the operator then clamps the stack."},
              {"slot": "cover.lift_m", "max": 1e-9, "code": "COVER_MOVING", "message": "the cover of {inst} is still coming down ({value} m).", "fix": "wait a few seconds (`chemlab wait 5`) and start again."},
              {"slot": "mount.clamped", "value": true, "code": "STACK_NOT_CLAMPED", "message": "the sieve stack on {inst} is not clamped.", "fix": "ask the lab operator to clamp it."},
              {"slot": "method.configured", "value": true, "code": "NO_METHOD", "message": "{inst} has no sieving parameters set.", "fix": "`chemlab run {inst} method amplitude=1.2mm time=5min`."},
              {"slot": "cycle.phase", "value": "idle", "code": "CYCLE_FINISHED", "message": "the last sieving of {inst} has ended ({value}).", "fix": "`chemlab run {inst} rearm`, then start."}],
    "pause": [{"slot": "cycle.phase", "value": "running", "code": "NOT_RUNNING", "message": "{inst} is not sieving.", "fix": "start it first."}],
    "resume": [{"slot": "cycle.mode", "value": "paused", "code": "NOT_PAUSED", "message": "{inst} is not paused ({value}).", "fix": "nothing to resume."}],
    "rearm": [{"slot": "cycle.phase", "not": ["idle", "running"], "code": "NOTHING_TO_REARM", "message": "{inst} has no finished or stopped cycle ({value}).", "fix": "nothing to do."}],
    "program": [{"slot": "cycle.phase", "not": ["running"], "code": "BUSY", "message": "{inst} is sieving.", "fix": "wait for the job, or stop it."}]
   },
   "unsupported": {
    "set-temp": "the sieve shaker has no heating",
    "feeder": "no vibratory feeder (the top sieve is filled by hand)",
    "pump": "not a press", "valve": "not a press", "leadscrew": "not a press"
   },
   "path": "acquisition", "path_exceptions": ["sieving.measure"],
   "params": {"run_word": "sieving", "running_phases": ["running"], "done_phases": ["succeeded"], "failed_phases": ["failed", "cancelled"]},
   "notes": {"method": ["time= in whole minutes (the AS 200 counts minutes); amplitude= is the total lift (peak to peak), 0.2 to 3 mm"],
             "intensity": ["the sieving amplitude (sieving.set_lift), also while sieving"]}
  },
  "retsch_pt100": {
   "role": "primary",
   "verbs": {
    "method": {"cap": "method.configure", "keys": {"time": {"arg": "duration_s", "kind": "duration"}, "intensity": {"arg": "intensity"}},
               "also": [{"cap": "hopper.set_gap", "keys": {"gap": {"arg": "gap_m", "kind": "length"}}}]},
    "intensity": {"cap": "feeder.set_intensity", "arg": "intensity"},
    "start": {"cap": "acquisition.start"},
    "pause": {"on_cap": "acquisition.pause", "off_cap": "acquisition.resume"},
    "stop": {"cap": "acquisition.stop"},
    "feeder": {"cap": "feeder.set_power", "arg": "enabled"},
    "result": {"cap": "dividing.measure", "show": {"phase": "phase", "mode": "mode", "elapsed": ["elapsed_s", "duration"], "remaining": ["remaining_s", "duration"],
                                                   "rotor": ["rotation_rad_s", "rotation"], "feeder intensity": "intensity", "feeding": "feeder_running"}}
   },
   "slots": {"power": "power.enabled", "phase": "cycle.phase", "feeder": "feeder.powered"},
   "status": [["power", "power.enabled", "bool"], ["bottles", "mount.ready", "bool"], ["feeder on", "feeder.powered", "bool"], ["feeding", "feeder.running", "bool"],
              ["intensity", "feeder.intensity"], ["hopper gap", "hopper.gap_m", "length"], ["cycle", "cycle.phase"], ["mode", "cycle.mode"],
              ["rotor", "rotor.speed_rad_s", "rotation"], ["elapsed", "cycle.elapsed_s", "duration"], ["remaining", "cycle.remaining_s", "duration"]],
   "requires": {
    "method": [{"slot": "cycle.elapsed_s", "max": 0, "code": "CYCLE_DONE", "message": "{inst} has already divided this sample ({value} s); the method is set before the run.",
                "fix": "ask the lab operator for the next sample."}],
    "intensity": [{"slot": "method.configured", "value": true, "code": "NO_METHOD", "message": "{inst} has no method yet.", "fix": "`chemlab run {inst} method time=1min intensity=60`."}],
    "start": [{"slot": "power.enabled", "value": true, "code": "POWER_OFF", "message": "{inst} is switched off.", "fix": "switch it on: `chemlab run {inst} power on`."},
              {"slot": "method.configured", "value": true, "code": "NO_METHOD", "message": "{inst} has no run time and feeder intensity set.", "fix": "`chemlab run {inst} method time=1min intensity=60`."},
              {"slot": "sample.configured", "value": true, "code": "NO_SAMPLE", "message": "the hopper of {inst} is empty.", "fix": "ask the lab operator to fill it."},
              {"slot": "mount.ready", "value": true, "code": "BOTTLES_MISSING", "message": "not all sample bottles are attached to {inst}.", "fix": "ask the lab operator to attach them."},
              {"slot": "feeder.powered", "value": true, "code": "FEEDER_OFF", "message": "the vibratory feeder of {inst} is switched off.", "fix": "switch it on: `chemlab run {inst} feeder on`."},
              {"slot": "hopper.gap_m", "equals_slot": "hopper.target_gap_m", "code": "GAP_MOVING", "message": "the hopper gap of {inst} is still moving ({value} m).", "fix": "wait a moment (`chemlab wait 3`) and start again."},
              {"slot": "cycle.phase", "value": "idle", "code": "CYCLE_DONE", "message": "{inst} has already run on this sample ({value}).", "fix": "ask the lab operator for the next sample."}],
    "pause": [{"slot": "cycle.mode", "value": "dividing", "code": "NOT_RUNNING", "message": "{inst} is not dividing ({value}).", "fix": "start it first."}],
    "resume": [{"slot": "cycle.mode", "value": "paused", "code": "NOT_PAUSED", "message": "{inst} is not paused ({value}).", "fix": "nothing to resume."}]
   },
   "unsupported": {
    "set-temp": "the divider has no heating",
    "program": "the PT 100 has no program memory (time and feed intensity only)",
    "rearm": "one run per loaded sample: the operator empties the bottles and refills the hopper for the next one",
    "pump": "not a press", "valve": "not a press", "leadscrew": "not a press"
   },
   "path": "acquisition", "path_exceptions": ["dividing.measure"],
   "params": {"run_word": "division", "running_phases": ["running"], "done_phases": ["succeeded"], "failed_phases": ["failed", "cancelled"]},
   "notes": {"method": ["time= takes the PT 100 timer steps (1, 3, 5, 10, 20, 30 ... min); gap= sets the hopper gap (at least 3 x the largest grain)"],
             "intensity": ["the DR 100 feeder intensity, 0..99"]}
  },
  "specac_atlasmanual": {
   "role": "primary",
   "verbs": {
    "method": {"cap": "method.configure", "keys": {"load": {"arg": "target_load_N", "kind": "force"}, "hold": {"arg": "hold_s", "kind": "duration"},
                                                   "tolerance": {"arg": "tolerance_fraction"}},
               "also": [{"cap": "relief.set_limit", "keys": {"limit": {"arg": "load_N", "kind": "force"}}}]},
    "start": {"cap": "acquisition.start"},
    "stop": {"cap": "acquisition.stop"},
    "result": {"cap": "press.measure", "show": {"phase": "phase", "stage": "stage", "load": ["indicated_load_N", "force"], "held": ["hold_elapsed_s", "duration"]}},
    "pump": {"cap": "pump.stroke"},
    "valve": {"cap": "valve.set_open", "arg": "open", "slot": "valve.angle_rad", "opened": 6.283185307179586, "closed": 0.0,
              "release_slot": "load.indicated_n", "released_below": 10},
    "leadscrew": {"cap": "screw.set_position", "arg": "position_m", "slot": "screw.position_m"},
    "open": {"parts": {"guard": {"cap": "guard.set_raised", "arg": "raised", "args": {"side": "front"}, "open": true, "close": false,
                                 "slot": "guard_front.lift_m", "open_at": 0.18, "close_at": 0.0},
                       "rear-guard": {"cap": "guard.set_raised", "arg": "raised", "args": {"side": "rear"}, "open": true, "close": false,
                                      "slot": "guard_rear.lift_m", "open_at": 0.18, "close_at": 0.0}}}
   },
   "slots": {"phase": "cycle.phase", "load": "load.indicated_n", "active": "pump.active", "limit": "relief.limit_n"},
   "status": [["load", "load.indicated_n", "force"], ["limit", "relief.limit_n", "force"], ["cycle", "cycle.phase"], ["stage", "cycle.stage"],
              ["held", "cycle.hold_s", "duration"], ["front guard", "guard_front.lift_m", "length"], ["rear guard", "guard_rear.lift_m", "length"],
              ["valve", "valve.angle_rad", "angle"], ["leadscrew", "screw.position_m", "length"], ["ram", "ram.lift_m", "length"], ["die", "die.configured", "bool"],
              ["sample", "sample.configured", "bool"]],
   "requires": {
    "pump": [{"slot": "die.configured", "value": true, "code": "NO_DIE", "message": "no die is in {inst}.", "fix": "ask the lab operator to put the die in."},
             {"slot": "sample.configured", "value": true, "code": "NO_SAMPLE", "message": "the die in {inst} is empty.", "fix": "ask the lab operator to fill it."},
             {"slot": "method.configured", "value": true, "code": "NO_METHOD", "message": "{inst} has no target load set.", "fix": "`chemlab run {inst} method load=68kN hold=2min`."},
             {"slot": "guard_front.lift_m", "max": 1e-9, "code": "GUARD_OPEN", "message": "the front guard of {inst} is not down ({value} m).", "fix": "`chemlab run {inst} close guard`."},
             {"slot": "guard_rear.lift_m", "max": 1e-9, "code": "GUARD_OPEN", "message": "the rear guard of {inst} is not down ({value} m).", "fix": "`chemlab run {inst} close rear-guard`."},
             {"slot": "valve.angle_rad", "max": 1e-9, "code": "VALVE_OPEN", "message": "the release valve of {inst} is open, so the pump cannot build pressure.", "fix": "`chemlab run {inst} valve close`."},
             {"slot": "cycle.phase", "not": ["succeeded", "failed", "cancelled"], "code": "CYCLE_DONE", "message": "the press cycle of {inst} has ended ({value}).", "fix": "release the load (`chemlab run {inst} valve open`)."}],
    "start": [{"slot": "die.configured", "value": true, "code": "NO_DIE", "message": "no die is in {inst}.", "fix": "ask the lab operator to put the die in."},
              {"slot": "sample.configured", "value": true, "code": "NO_SAMPLE", "message": "the die in {inst} is empty.", "fix": "ask the lab operator to fill it."},
              {"slot": "method.configured", "value": true, "code": "NO_METHOD", "message": "{inst} has no target load set.", "fix": "`chemlab run {inst} method load=68kN hold=2min`."},
              {"slot": "guard_front.lift_m", "max": 1e-9, "code": "GUARD_OPEN", "message": "the front guard of {inst} is not down ({value} m).", "fix": "`chemlab run {inst} close guard`."},
              {"slot": "guard_rear.lift_m", "max": 1e-9, "code": "GUARD_OPEN", "message": "the rear guard of {inst} is not down ({value} m).", "fix": "`chemlab run {inst} close rear-guard`."},
              {"slot": "valve.angle_rad", "max": 1e-9, "code": "VALVE_OPEN", "message": "the release valve of {inst} is open.", "fix": "`chemlab run {inst} valve close`."},
              {"slot": "cycle.phase", "value": "idle", "code": "CYCLE_DONE", "message": "{inst} has already pressed this sample ({value}).", "fix": "release the load and ask the operator for the next die fill."}],
    "open:guard": [{"slot": "load.indicated_n", "max": 10, "code": "UNDER_LOAD", "message": "{inst} is under load ({value} N); the guard stays down.", "fix": "release it: `chemlab run {inst} valve open`."},
                   {"slot": "cycle.phase", "not": ["running"], "code": "CYCLE_RUNNING", "message": "a press cycle of {inst} is running; the guard stays down.", "fix": "release the load (`valve open`) and stop it (`chemlab run {inst} stop`) first."}],
    "open:rear-guard": [{"slot": "load.indicated_n", "max": 10, "code": "UNDER_LOAD", "message": "{inst} is under load ({value} N); the guard stays down.", "fix": "release it: `chemlab run {inst} valve open`."},
                        {"slot": "cycle.phase", "not": ["running"], "code": "CYCLE_RUNNING", "message": "a press cycle of {inst} is running; the guard stays down.", "fix": "release the load (`valve open`) and stop it (`chemlab run {inst} stop`) first."}],
    "leadscrew": [{"slot": "cycle.phase", "not": ["running"], "code": "CYCLE_RUNNING", "message": "a press cycle of {inst} is running; the leadscrew is set before `start`.",
                   "fix": "release the load (`valve open`), `stop`, and set the leadscrew before the next cycle."},
                  {"slot": "load.indicated_n", "max": 10, "code": "UNDER_LOAD", "message": "{inst} is under load ({value} N).", "fix": "release it: `chemlab run {inst} valve open`."},
                  {"slot": "ram.lift_m", "max": 1e-6, "code": "RAM_UP", "message": "the ram of {inst} is not down.", "fix": "open the valve and let it return (`chemlab run {inst} valve open`)."}]
   },
   "codes": {"PRECONDITION_FAILED": {"code": "NOT_READY", "message": "{inst} refused ({cap}); a check the class could not see failed (load above the relief limit, the die stack does not fit, or the pump still moving).",
                                     "fix": "check `chemlab run {inst} status` (limit >= method load; leadscrew position)."}},
   "unsupported": {
    "intensity": "a manual press has no speed or amplitude: the load is pumped up to the method load (`pump --to LOAD`)",
    "set-temp": "the Atlas Manual press has no heated platens here",
    "program": "a manual press has no program memory",
    "pause": "the hold cannot be paused; release the load with `valve open`",
    "rearm": "one press cycle per die fill: the operator ejects the pellet and refills the die",
    "feeder": "no feeder"
   },
   "path": "acquisition", "path_exceptions": ["press.measure"],
   "params": {"run_word": "press cycle", "running_phases": ["running"], "done_phases": ["succeeded"], "failed_phases": ["failed", "cancelled"]},
   "notes": {"start": ["start begins the observed press cycle; the load is then pumped by hand (`pump --to LOAD --hold`) and held for the method hold time"],
             "pump": ["each stroke takes about 0.8 s; --hold keeps topping the load up while the compacting powder relaxes, until the cycle is complete"],
             "method": ["limit= sets the relief-valve load limit (relief.set_limit); it must be at least the target load"]}
  },
  "malvern_leneo": {
   "role": "primary",
   "verbs": {
    "method": {"cap": "method.configure",
               "keys": {"segments": {"arg": "segments", "syntax": "segments"}, "rocking": {"arg": "rocking_rad", "kind": "angle"},
                        "rocking-freq": {"arg": "rocking_Hz", "kind": "frequency"}, "pour": {"arg": "pour_mode"}, "air": {"arg": "cooling_air_fraction"},
                        "cooling": {"arg": "minimum_cooling_s", "kind": "duration"}, "output": {"arg": "output"}, "stirring": {"arg": "stirring_fraction"}}},
    "set-temp": {"cap": "thermal.set_temperature", "arg": "temperature_K"},
    "program": {"cap": "program.load", "arg": "name"},
    "start": {"cap": "acquisition.start"},
    "stop": {"cap": "acquisition.stop"},
    "result": {"cap": "fusion.measure", "show": {"phase": "phase", "stage": "stage", "elapsed": ["elapsed_s", "duration"],
                                                 "chamber": ["chamber_temperature_K", "temperature"], "target": ["target_temperature_K", "temperature"]}}
   },
   "slots": {"power": "power.enabled", "phase": "cycle.phase", "temp": "panel.temperature_c"},
   "status": [["power", "power.enabled", "bool"], ["door", "door.angle_rad", "angle"], ["sample", "sample.configured", "bool"], ["cycle", "cycle.phase"],
              ["stage", "cycle.stage"], ["chamber", "panel.temperature_c", "temperature"], ["set point", "thermal.target_k", "temperature"],
              ["elapsed", "cycle.elapsed_s", "duration"], ["program", "program.current"], ["access", "access.level"]],
   "requires": {
    "method": [{"slot": "cycle.phase", "value": "idle", "code": "BUSY", "message": "{inst} is in a fusion cycle ({value}); the method is set before the start.", "fix": "wait for the job."}],
    "set-temp": [{"slot": "power.enabled", "value": true, "code": "POWER_OFF", "message": "{inst} is switched off.", "fix": "switch it on: `chemlab run {inst} power on`."}],
    "program": [{"slot": "cycle.phase", "value": "idle", "code": "BUSY", "message": "{inst} is in a fusion cycle ({value}).", "fix": "wait for the job."}],
    "start": [{"slot": "power.enabled", "value": true, "code": "POWER_OFF", "message": "{inst} is switched off.", "fix": "switch it on: `chemlab run {inst} power on`."},
              {"slot": "sample.configured", "value": true, "code": "NO_SAMPLE", "message": "no crucible with sample and flux is in {inst}.", "fix": "ask the lab operator to load it."},
              {"slot": "method.configured", "value": true, "code": "NO_METHOD", "message": "{inst} has no fusion method set.",
               "fix": "`chemlab run {inst} method segments=10min@1065C,9min@1065C` (or load a program)."},
              {"slot": "door.open_target", "value": false, "code": "DOOR_OPEN", "message": "the door of {inst} is open.", "fix": "close it: `chemlab run {inst} close door`."},
              {"slot": "door.angle_rad", "max": 1e-9, "code": "DOOR_MOVING", "message": "the door of {inst} is still closing ({value} rad).", "fix": "wait a few seconds (`chemlab wait 5`) and start again."},
              {"slot": "cycle.phase", "value": "idle", "code": "CYCLE_DONE", "message": "{inst} has already fused this sample ({value}).", "fix": "ask the lab operator to take the bead out and load the next crucible."}]
   },
   "unsupported": {
    "intensity": "the rocking of the crucible is part of the fusion method (`method rocking=10deg rocking-freq=0.3Hz`)",
    "pause": "a fusion cycle cannot be paused (the melt would set in the crucible)",
    "rearm": "one fusion cycle per loaded crucible: the operator takes the bead out and loads the next one",
    "feeder": "no feeder (crucibles are loaded by hand)",
    "pump": "not a press", "valve": "not a press", "leadscrew": "not a press"
   },
   "alternatives": {"intensity": "set the rocking in the method: `chemlab run malvern_leneo method rocking=10deg rocking-freq=0.3Hz`."},
   "path": "acquisition", "path_exceptions": ["fusion.measure"],
   "params": {"run_word": "fusion cycle", "tolerance_k": 5.0, "running_phases": ["running"], "done_phases": ["succeeded"], "failed_phases": ["failed", "cancelled"],
              "job_max_s": 7200},
   "notes": {"set-temp": ["the furnace idle / preheat set point; the fusion cycle itself follows the method segments"],
             "method": ["segments=TIME@TEMP,... is the heating programme (each segment ends at TEMP after TIME); the four pouring profiles come from the template"]}
  }
 }
}