Dispenser Toolkit Manual · Chapter 1

Dispenser Toolkit Overview

The dispenser toolkit is a built-in QMachineStudio feature for machines that dispense material such as adhesive or sealant as lines, dots and circles through a valve and needle mounted on X · Y (· Z) axes. Instead of moving motors and the valve IO one by one in a sequence, you define heads, patterns and parameter sets on screens and run them with one script line (DISPENSE["Head1"].Run("Lid_A")).

This section covers head setup and calibration, patterns, parameter sets, dispense motion, align, process automation, machine screens and scripts, safety rules and troubleshooting, and is based on QMachineStudio 4.0.28.

Dispense Editor — array pattern
Dispense Editor — array pattern

Parts

PartWhat it isWhere it is setSaved in
HeadOne dispensing unit — X · Y · Z motors and a valve (digital output), plus height, needle offset and purge position calibrationHead settings... · head calibration screenProject Dispense\Heads.json
PatternThe dispense path — Start · Pass · Arc · End · Dot · Circle · Height pt elements, arrayDispense Editor [Patterns] tabJob Dispense\Patterns\<pattern>.json
Parameter setA named group of the 25 dispense conditions (speeds, valve timing, Z heights …)Dispense Editor [Parameter Sets] tabJob Dispense\ParamSets.json
AlignFinds marks (1 to 3) or two board edges with a camera and measures the X · Y · angle difference of the partAlign SetupProject Fiducial\Aligns.json · job Fiducial\
Machine screensPattern view · pattern editor · set table · status controls, editor · calibration · teaching pagesToolbox Dispense group · pagesScreen design (.xmd)
ScriptsDISPENSE["head"] · ALIGN["align"]Module scripts.xms

Terms

The dispenser terms used in this manual. Looking first at how pattern · array · cell · block fit together in the diagram below makes the other chapters easier to read.

Pattern · array · cell · block — the pattern taught in cell 1 is repeated in every cell as the array settings say
Pattern · array · cell · block — the pattern taught in cell 1 is repeated in every cell as the array settings say
  • A pattern is the list of elements to dispense on one part (one cell). Elements are taught and edited in cell 1 only.
  • An array is the setting that repeats the pattern in columns × rows, moved by the pitch; it is saved in the pattern file. Without an array there is one cell, cell 1.
  • A cell is one place made by the array. Cells are numbered from 1, row by row; the dispensing order follows the order setting (Z · S) and the skip setting leaves cells out. A script can dispense one cell only (RunCell) or leave out the bad cells of a part during the run only (SetCellSkip). If the machine is stopped while a sequence runs an array pattern, it stops between cells and goes on from the next cell on START (head setting Pause between cells, chapter 13).
  • A block is one go down → dispense → lift inside a cell — one line, one circle or one dot. Every cell gets the pattern's blocks moved by the pitch, and Z stays constant within a block.
  • Work offset and align apply once to the whole array (per cell when the part of each cell moves on its own, like single PCBs on a jig — chapter 9 Cell align, 4.0.28~); height points (10.5 Height measurement) are measured per cell and set the Z of that cell's blocks.
TermMeaningMore
HeadOne dispensing unit — X · Y · Z motors and a valve, plus calibration values such as surface Z, needle offset and purge position. Scripts call it with DISPENSE["head name"].chapter 4 · chapter 5
Needle · valveNeedle = the tip the material comes out of. Valve = the digital output IO that turns dispensing on and off.chapter 4
PatternThe path to dispense on one cell — a list of elements and the array settings. Saved in the job (model) folder.chapter 6
ElementOne row of a pattern — Start · Pass · Arc · End · Dot · Circle · Height pt.6.1
LineElements drawn continuously from a Start point to an End point (Pass and Arc points in between).6.1
BlockOne go down → dispense → lift — one line, one circle or one dot. Each block does approach → dispense → end handling, and Z stays constant within a block.8.1
ArrayThe setting that repeats one pattern in columns × rows (1 to 50 each) moved by pitch X · Y — with the order (Z · S) and the cells to skip.6.3
CellOne place (part) made by the array. Cell 1 is the taught cell; cells are numbered from 1, row by row.6.3
Height pointAn element that does not dispense; the height sensor measures the surface of that cell there. The height points of a cell fit one surface.10.5
Parameter setA named group of the 25 dispense conditions (speeds · valve timing · heights …). Chosen by name in an element's [Set] cell.chapter 7
Default setThe set chosen for the head — used by Start points, Dots and Circles without a set, and for values left empty in a set (other elements in a line take the set of the element before them).7.1
JobThe model data folder. Patterns, parameter sets and align teaching (method and correction included) are saved per job; switching the job reads that job's data.chapter 1
Surface Z ( ZSurface )The Z where the needle tip touches the work surface (top of the part).chapter 5
Safe Z ( ZSafe )The Z used while moving in XY between elements.8.1
Dispense gap ( DispenseGap )The height between the needle tip and the surface while dispensing — dispense height = surface Z + dispense gap.8.1
Needle offsetThe XY distance from the reference point to this head's needle tip — the axes go to needle position − needle offset. The reference point is the camera center (camera-coordinate setup) or the reference head's needle (reference-head setup).chapter 5
Camera offsetAn align device setting — XY with the camera center on a point − XY with the reference head's needle tip on the same point. Entered only on a reference-head setup that uses the align or needle XY calibration; 0 on a camera-coordinate setup (4.0.28~).chapter 5
PurgeOpening the valve at the purge position to throw away hardened or stale material.10.3
Work offsetX · Y · angle added to the whole pattern by the script SetWorkOffset.6.1 · chapter 12
Align · mark · edgeFinding the references of the part (1 to 3 marks, or — when there are no marks — two board edges and their corner) with a camera, measuring the position and angle difference (with uniform scale also an even stretch of the part) and adding it to the pattern. The setting that groups the camera, motors and light is called an align, and what it finds is the method (1 · 2 · 3 marks or edge corner).chapter 9
Cell align · jig alignAn align that measures the single PCB in each jig (pallet) pocket cell by cell and applies it to that cell only (4.0.28~). The jig align measures the jig position from the jig marks and is used to predict where to measure each cell.chapter 9
Reference · reference needleNeedle calibration and height measurement compare against a reference measured once. The needle used when registering it is the reference needle.10.4
Play · dry run · test runPlay = replay the path in the drawing only; dry run = move without turning the valve on; test run = really dispense from the editor.6.4
Simulation modeA mode that imitates motors and IO without a real machine, to try patterns and sequences.chapter 3
Process automationPath range check · process records · material and purge management · needle calibration · height measurement · weight calibration — the machine does the checks and calibrations people used to do.chapter 10

Basic concepts

  • Coordinates — pattern coordinates are machine coordinates (mm) of the needle tip. The XY axes go to 'needle position − needle offset', so another head on the same gantry can use the same pattern as it is. With the camera center as the reference point of the needle offset these coordinates are camera coordinates (the motor position that puts the camera center on the point), with the reference head's needle they are the reference head's needle coordinates — either way, putting the needle tip on the point and pressing [Teach] enters the value of that setup (chapter 5, two setups).
  • Machine constants and model data — heads are mechanical constants of the machine and are saved in the project; patterns and sets differ per model and are saved in the job (model) folder. Switching the job reads that job's patterns and sets.
  • How it moves — the dispense path is driven by the motion driver's continuous interpolation, and QMachineStudio switches the valve while reading the path progress (software sync, 8.3 Valve sync and accuracy).
  • Process automation — path range check, process records, material and purge management, needle calibration, height measurement and weight calibration let the machine do the checks and calibrations people used to do (chapter 10 Process Automation, 4.0.26~).

Caution Calibrate by measurement — the dispenser toolkit is new in 4.0. How late a valve actually opens and closes differs by machine and valve, so the 'valve position error' shown in the editor is a nominal value before measurement. On a new machine, tune the valve lead while checking real results.

Subscribe