Dispenser Toolkit Manual · Chapter 3

Preparation

Before using the dispenser toolkit, check the license, the motors and valve, and the motion driver. To try it without hardware, use simulation mode.

License

Actual dispense runs (motion and valve) need license code 6 DISPENSE.

License keyPattern run
Master · Developer · trialRuns without the code
RunTimeRuns only when a V2 dongle or file license has code 6 (codes on V1 dongles are not counted)
FreeDoes not run
  • Only pattern runs are blocked. Editing, preview and playback, runs in simulation mode, purge and the manual valve, and starting the machine work regardless of the license.
  • Without the license you get a build warning, 'Run disabled: dispense license (code 6) not found' above the editor, a warning on the status control and a message (18000) when running.
  • If the dongle is lost for a moment, the previous decision is kept during the grace time like the other license items.

Note For license key types and code items see License — Feature Codes; for what happens when the dongle is lost see License — Grace.

Motors and valve

  • X · Y motors — must be different motors on the same driver; the two axes are interpolated together. On Ajin pulse boards both axes must be on the same module, checked at build. WMX3 has no module rule; two motors that point to the same WMX3 axis number are a build error.
  • Z motor — raises and lowers the needle. Leave it empty on a machine without Z (no height moves are made).
  • Valve — the digital output (DO) that opens and closes the dispense valve. Inputs and analog IO cannot be used. If the valve IO has a script check function, that script runs on every valve switch and delays it, so the build warns about it.
  • Motors and IO are chosen by name. Driver, axis number and coordinate system come from the motor settings at build, so changing an axis number in the motor editor does not require changing the head.

Driver

A motion driver that supports path interpolation (IXPathMotion) is required. Currently Ajin pulse (XDriver_Ajin), Ajin EtherCAT (XDriver_AjinEC) and Movensys WMX3 (XDriver_WMX3Win · XDriver_WMX3Rtx, from 4.0.25) support it. Choosing a motor of a driver without support causes a build error.

  • The coordinate system used for interpolation is assigned automatically per driver, from the highest number down, so it does not collide with numbers 0 · 1 that existing scripts use with DRIVER[].SetMotionAxisMap.
  • Heads that share even one X or Y motor use the same coordinate system (build warning) and cannot run at the same time; the same applies to heads that share a Z motor. Starting a head while another one is running is refused without waiting (Run · Start return false with the reason in GetLastError()), so run them one after the other in the sequence.
  • When you update QMachineStudio, update the path interpolation drivers (both Ajin drivers · both WMX3 drivers) from the same release. Older drivers cannot be loaded by a version whose path interpolation interface changed.
  • From 4.0.27 an array pattern stops between cells on STOP. If the machine is stopped while a sequence step runs an array pattern with Run · RunFrom · RunFromCell, it used to draw every cell before stopping; now it finishes the current cell, raises Z and waits, and on START goes on from the next cell (head setting Pause between cells, on by default — chapter 13). Turn it off per head if you need the earlier behavior. Scripts that treat a busy head after STOP as a moving machine (door monitoring, for example) should also check IsPaused().

The WMX3 driver moves with WMX3 path interpolation with look-ahead and differs from Ajin as follows.

  • Use it on machines with the WMX3 3.6 engine installed. AdvancedMotionApi_CLRLib.dll must be in the driver folder (it is in the release). Without it, motors and IO still work and only pattern runs fail.
  • The driver reports a limit of 1000 segments, which is used instead of MaxSegments in the head settings.
  • Segments are counted from 0. Set NodeIndexBase in the head settings to 0 so the valve stays aligned even when the first segment is very short.
  • Corners — with ProfileMode 0 (default) the path keeps its speed through corners like Ajin velocity-specified interpolation (only an exact reversal stops). With 1–3 a corner where the direction turns by more than 1° decelerates to a stop. Points that continue straight, such as those split for valve switching, never stop.
  • BlendRadius joins a corner between two lines with an arc of that radius (not between a line and an arc). When a neighbouring line is short, WMX3 shrinks the arc.
  • Acceleration is one value per line (a chain of segments without a stop) — the fastest segment of the line reaches its speed in the LineAccel time.
  • The path buffer is created per coordinate system on first use, and is reused while the WMX3 engine keeps running even if the program is reopened.

Sensor and scale drivers (process automation, 4.0.26~) — height measurement uses a communication driver that returns the value with GetValue(true) (e.g. the SICK laser LS_Sick_OD2, -1 = failure) or an analog input IO, and weight calibration uses the scale driver SC_Balance (QMS_Driver\SERIAL\XDriver_SCBalance — Mettler Toledo MT-SICS · A&D). The tip sensor of needle Z calibration is a normal digital input.

Simulation mode

  • In simulation mode the driver is not called; the run advances by the path time (constant speed). The valve output is still switched, and the XY of the simulated motors jumps to the end point when a line ends. Acceleration and the trajectory during interpolation are not simulated. It runs without the license.
  • Simulation mode cannot be switched while a head is running a pattern. When switching the mode or saving in the motor editor recreates motors and IO, the head relinks to the new objects before its next action.

Note Where to turn on simulation mode and what it simulates is described in GUI manual — Run Mode.

Subscribe