The Xentara MeerK40t Driver v1.0
User Manual
Variable Placeholders

MeerK40t allows to change engraved text or QR codes at runtime without editing the .svg file. It uses variables to replace the placeholders.

Managing Variables With Xentara

The MeerK40t-produced .svg file may contain variable names enclosed in curly braces {}. The runtime substitutes these placeholders with values of the corresponding MeerK40t variables. Xentara allows to update these variables in multiple ways:

  • Variable for variable names predefined in model.json.
  • A .csv file with variable names in the first row and values in others. Path to the .csv is set in Define Job
  • JSON map of variable/value paris in Define Job

Each of these actions updates the internal list of the variables, which can be read from Current Variable Values. When the job is started with Start, the current list is sent to MeerK40t runtime, where its used for placeholder substitution.

Variable Naming Rules

There are some rules that apply to the variable names

  • Variable names must be unique
  • The names may only contain lowercase letters, numbers, and underscores (a-z, 0-9, _).
  • The following names are reserved and cannot be used: version, date, time, op_device, op_speed, op_power, op_passes, op_dpi.