Dispenser Toolkit Manual · Chapter 5

Head Calibration

Adjust each head's height and position calibration with the jog after a needle change or when positions drift. The same screen exists in three places.

ScreenWhere to openLevel that can edit
Dispense Heads (studio)[Data Editor Pages → Dispense Heads]. [Head settings...] at the top opens the head setup window.No restriction
Dispense Head Calibration (machine screen)Page name DispenseHeadCalib — a button (Action = ShowPage, PageName = DispenseHeadCalib) or GUI.ShowPage("BasePanel", "DispenseHeadCalib")The page access level (Engineer by default — changed in the Page Level Editor of the user manual)
Design control XDispenseHeadCalib (machine screen, 4.1.32~)In the designer, place DispenseHeadCalib from the Dispense group of the toolbox on a screen (11.1) — set its size and position and put it on one screen with other controls.The control's OperationLevel (Engineer by default)
Dispense Heads — head table (read-only) · calibration form · picture help
Dispense Heads — head table (read-only) · calibration form · picture help

Calibration items

  • Surface Z (ZSurface) · [Read Z] — Z position where the needle tip touches the work surface. Dispense Z = surface Z + DispenseGap (parameter). Set it again after changing the needle — touch the surface with the tip, then press [Read Z]. A machine that measures height can override it per run with the script SetSurfaceZ.
  • Safe Z (ZSafe) · [Read Z] — Absolute Z height used while moving in XY. Choose a height that clears jigs and parts.
  • Needle offset X · Y — Distance (mm) from the reference point to this head's needle. The axes go to needle position − needle offset, so any head draws the same pattern as it is. The reference point is one of the two setups below — the camera center (not 0 even with one head) or the reference head's needle (0 for a single head; with align or needle XY calibration also enter the camera offset in the align settings).
  • Purge X · Y · [Read XY] — Needle position for purging (cleaning shot into the purge cup). [Read XY] puts the present needle position (XY motor position + needle offset) here.
  • Purge time (1000 ms by default) — Valve-on time when the script calls Purge() without a time (0 or less).
  • [Show advanced ▾] — Valve lead (ValveLeadMs, 0 ms by default) — A valve opens and closes a little after the command. While moving, the switch point is moved earlier by 'speed × this time'. Enter the measured delay; 0 if unknown (8.3 Valve sync and accuracy).
  • [Show advanced ▾] — Fiducial tolerance (FiducialTolerance, 0.5 mm by default) — In the script SetFiducial2 (two-mark fiducial correction), if the measured distance between the marks differs from the taught distance by more than this, the run stops with an error (wrong mark or wrong part). It is separate from the limits of the align (chapter 9).

Calibrating and saving

  • Open the jog window with [XY jog] · [Z jog], move the needle, then enter the position with [Read Z] · [Read XY].
  • Saving on the calibration screen overwrites only the calibration boxes. If the head setup changed in the meantime and the number or names of heads differ, it does not save. Saved values are used from the next pattern run, and script corrections and the resume information (GetLastCompleted) are kept after saving. The machine screen page does not ask to save when you move to another page, so press [Save] after editing.
  • While the machine is running, editing, saving and jogging are blocked ('The machine is running — calibration cannot be changed.'). If the login level is too low, the required level is shown.
  • On the studio screen, [Head settings...] asks first when calibration values are unsaved, and reads the head list again when the window closes.
  • Saving on the calibration screen writes only the boxes you changed (4.0.26~). Even if automatic calibration (10.4) changed the surface Z or needle offset after the screen was opened, boxes you did not touch are not set back to the screen values. When the head definition is saved elsewhere, the screen reloads while nothing is being edited.

Note The first argument of GUI.ShowPage that opens machine-screen pages is the Main ViewBase Name in Project Options (BasePanel by default in a new project). → Chapter 11 Machine Screens

Surface Z and dispense Z
Surface Z and dispense Z
Needle offset
Needle offset
Purge position and time
Purge position and time
Fiducial tolerance
Fiducial tolerance

Reference of the needle offset — camera-coordinate setup · reference-head setup

Enter the needle offset for one of two setups. In either setup the align and needle XY calibration are exact — a reference-head setup needs the camera offset in the align device settings (4.0.28~). A machine already in use keeps its setup.

SetupNeedle offsetPattern coordinatesCamera offset of the align
Camera-coordinate setupFrom the camera center to this head's needle — XY with the camera center on a point − XY with the needle tip on the same point. Not 0 even with one head.Camera coordinates (value = the motor position that puts the camera center on the point). The editor's [Teach] gives this value when the needle tip is put on the point — teaching with the camera on the point is off by the needle offset.0 (default). The dispenser sample uses this setup (needle offset 0 there because it is a simulation — measure it on a real machine, see the sample README).
Reference-head setupFrom the reference head's needle to this head's needle. 0 for a single head or the reference head.Needle coordinates of the reference head (value = the motor position that puts the reference head's needle tip on the point). Press [Teach] with the needle tip on the point.Enter it when the align or needle XY calibration is used — XY with the camera center on a point − XY with the reference head's needle tip on the same point (how to measure below). Leave 0 if neither is used.
  • Align marks, edges and the rotation center are in camera coordinates in either setup (the motor position that puts the mark at the image center, chapter 9). On a reference-head setup the pattern (needle coordinates) and the marks (camera coordinates) differ by the camera offset d, so SetAlign moves the rotation center by d and needle XY calibration sends the camera to the dot + d.
  • Without the camera offset (0) the needle is off by |(k·R(θ) − I)·d| as the part rotates or stretches — with d = 50 mm, about 0.3 mm at 0.35°, about 0.5 mm at 0.6° and about 0.05 mm at +0.1 % uniform scale without rotation (0 with 1 mark, which corrects neither rotation nor scale).
  • How to measure the camera offset (reference-head setup) — ① dispense a dot with the reference head (on the calibration plate, for example) and read the needle position it was dispensed at (the X · Y motor position + needle offset at that time — the motor position itself when the needle offset is 0). ② Center the camera on the dot (live view in the align teach screen) and read the X · Y motor position. ③ Enter ② − ① as camera offset X · Y in the studio [Align Setup] → [Device settings...] (chapter 9, Device settings).
  • Accuracy — ±0.5 mm is enough. A remaining error e only leaves about |θ| · e at the needle for a rotation θ (about 0.003 mm at 0.35° and 0.5 mm).
  • When to measure again — when the camera mount changes (the camera moved), the camera coordinates change. Calibrate the camera and measure the camera offset again for every align that uses that camera (part aligns and the needle calibration align), and teach the align again in every job (with the part where the pattern was taught). With needle XY calibration, then register the XY reference again with the reference needle whose needle offset is right (10.4 — if the calibration align's camera offset was changed, calibration is refused until then).
  • When only the needle is changed, keep the camera offset — the pattern coordinates were fixed by the original reference needle, and the new needle position is taken by the needle offset ([Calibrate XY]). Measuring the camera offset again with the new needle and registering the XY reference again would make the shifted needle the reference, so that difference would never be corrected.
  • What stays in camera coordinates — align measuring and judging and the script ALIGN["…"].Apply do not use the camera offset. To move pattern coordinates with Apply on a reference-head setup, pass pattern coordinates + camera offset and subtract the camera offset from the result. The old 2-point correction SetFiducial2 also uses the given coordinates as they are (no camera offset) — they must be in the same pattern coordinates as the taught fiducials in the pattern file, so on a reference-head setup subtract the camera offset from marks measured with the camera.

Process automation groups (4.0.26~)

Only the features whose devices are set in [Head settings...] appear below the form (the material group is always shown). Set the position boxes with the jog, enter them with [Read XY] · [Read Z] and save. The action buttons move the head with the saved values, so if there are unsaved edits they ask to save first (18020), then ask to run (18017) and run in the background. When finished they show the result (18018 · 18019) and reload the screen. While an action runs, [Abort] appears in the head information line (next to the jog buttons) to stop it at once.

GroupBoxesButtons
Needle Z calibration (tip sensor)Tip sensor X · Y · search start Z[Register Z ref] · [Calibrate Z] — 10.4
Needle XY calibration (dot + camera)Plate X · Y[Register XY ref] · [Calibrate XY] · [Plate cleaned]
Height measurementSensor offset X · Y · measure Z[Register height ref] · [Measure surface] — at the present needle position (10.5)
Weight calibrationScale X · Y · scale Z[Calibrate weight] · [Ratio to 1] — 10.6
MaterialMaterial lot[Replace material] — 10.3

The line under each group shows, every 0.5 s, the reference time · Z difference from the reference needle · dots left on the plate · flow ratio · material lot · minutes since registration · pot life left · shots · last dispense · purge due. See chapter 10 Process Automation for what each feature needs and how it works.

Subscribe