Run Rules and Safety
When a dispense pattern stops, what is blocked while the machine is running, and when changed values are used. Check these once before applying the toolkit to a real machine.
STOP finishes the cell · pattern
QMachineStudio's STOP does not stop the motors; it finishes the current step. A dispense pattern is never cut in the middle of dispensing either.
- Array patterns (4.0.27~, head setting Pause between cells, on by default) — while a sequence step runs it with
Run·RunFrom·RunFromCell, the head finishes the current cell (end handling of the last block → valve off → Z to the safe height) and waits. On START it goes on from the next cell. It never stops inside a cell or a line, does not wait after the last cell, and skipped cells are not counted. - While waiting the head stays busy (
IsBusy()true,GetState()"Running",IsPaused()true). The status control adds "paused between cells (STOP)", and saving heads, test runs and other starts are refused. The sequence counts as stopped (it is not inSYS.SequenceModuleCountOnRunning, so the stop-wait dialog of STOP closes). - While waiting,
Abort(), an equipment error, Initialize (module Exit), a script rebuild, program exit or closing the project ends the run at once (result Aborted; the resume information is up to the finished cell). - On START the material (pot life · shot limit) is checked again and the run ends with an error if it is over. The height points of the next cell are measured as usual. Work offset and align keep the values from the start of the run. The time waited is kept in the
PauseMscolumn of the process record. - Runs that never wait —
Runcalled from a manual thread,RunThread, an event function or a monitor module, runs started withStart,RunCell(one cell), and the editor [Test run] · [Dry run]. These runs, and heads with Pause between cells off, draw the whole array and then stop as before.
Immediate stop
Script Abort(), the machine switching to the Error state while running, program exit (Exit), project close, or a motor or driver failure — then the valve turns off first and the path makes an emergency stop. If the machine was already in the Error state when the run started, a later error does not stop it. A stop that comes while moving to a block's start point (safe height → XY → approach height → dispense height) takes effect as soon as that move ends, so the needle goes no lower, and it is checked once more after reaching the dispense height, before the valve opens, so a dot does not open the valve (4.0.24~). However a run ends, the valve is turned off at the end.
Emergency stop
There is no emergency-stop handling specific to dispensing. If the project puts the machine into the Error state on the emergency-stop input (ShowError), the run stops as above.
Caution Check once on the real machine that the valve turns off on emergency stop.
Lock while running
While the machine is running, editing and saving patterns, sets and heads, teaching, moving, jogging, new patterns and test runs are blocked on screens and controls (messages 18010 · 18011). The script SetParam · SaveParams are changes the sequence makes on purpose, so they work even while running.
When values take effect
Saved patterns, sets and calibration, and script corrections (work offset · align · surface Z) are used from the next run. A running pattern finishes with the values it started with.
Moves that go through checks
Travel between elements, Z moves and moves to the purge position are normal motor moves and go through the home, servo, alarm and interlock checks. The dispense path (interpolation) goes directly to the driver and the motor soft limits do not apply to it, so when a pattern starts every position it will move to is checked against the soft limits (10.1 Path range check, 4.0.26~).
Caution Axes whose soft limit is off are not checked, so make sure the pattern stays inside the mechanism.
Material conditions
Real dispensing patterns are refused with material past its pot life or at its shot limit (dry runs still run — 10.3).
Maintenance actions
Needle calibration, height reference, surface measurement and weight calibration take the head and move it. Meanwhile that head's patterns, manual valve and moves are blocked, and they are refused while a head that shares axes is running. On the calibration screen the buttons are disabled while the machine is running. Called from a script they also work while running (maintenance intended by the sequence).
Simultaneous runs
Heads that share axes cannot run at the same time — a start is refused while the other one is running, so run them one after the other in the sequence (chapter 3 Preparation). While a head is running, saving heads (18002), that head's manual valve and switching simulation mode are blocked.
License
If the RunTime key has no code 6, only pattern runs are blocked (chapter 3 Preparation).