Linking QR code to a Text Object

Hi There,

I wonder if someone could please help me, or point me in the right direction.

I am currently evaluating the Lightburn software for a potential project, so I currently do not have a laser or the Lightburn software.

I have done some searching on-line and it seems to say that I can link a QR code to a text object, so that I can just enter text into the text object and then the QR code that is etched is automatically changed based upon the contents of the text field / object.

I have watched a few youtube videos and they all show using a csv file and a variable text field / object, as opposed to using a text field. The lightburn online documentation mentions using the object name in the raw contents tab of the QR code properties but I just do not understand the software enough to be able to be confident that it will do what I want.

One search found the following :-
2. Use Variable Text (if needed):
• To make the Data Matrix display different content based on a variable, you can use variable text.
• Set up a variable text field in LightBurn.
• In the Bar Code Properties, use the variable text field as the “Raw Content”.
• When you run your job, the Data Matrix will change its content based on the variable text’s value.

The thing that I do not understand from the above is how I can set the raw content of the QR code to be the variable text field, as lightburn does not seem to give the fields a name / identifier

Any advise / pointers would be much appreciated.
Thus to sum up I want to be able to enter a part number into a text field and then the QR code need to change based upon the text field each time a burn is carried out.

Thanks & Best Regards

Andy

In the create QR Code dialog. Set your variable the nchoose Merge/CSV from the Drop down.

1 Like

Many thanks for the reply Tim, it is much appreciated :grinning_face:

I did see this on a youtube video and maybe it is me just not understanding things correctly, as I assumed the this then required you to point to a .csv file to get the text for the QR code from, which is not what I want.

Sorry to be a pain, but I can not see how, in the example above, that setting the raw text to %0 will etch the QR code with data from a text object that is also required to be printed / etched onto the part.

Are you implying that the data to be etched needs to be store din a CSV file and not in a text variable within the project?

Thanks Again,
Andy

Correct, put the text in a CSV file and it can increment with each iteration. The “%0” is the variable placeholder. The same placeholder can be used in the QR Code and also etched onto the part. Read up on variable text here.

This video of mine may help you understand as well.

If you’re just looking to do sequential numbering check this video.

1 Like

Indeed, this does not work. They way you would do that is that you would also fill that text object from the CSV file. So the text field also just contains %0 and both are set through the file.
You can’t read the text contents of a text object and use this as a variable for another object, I think.

I think you can have both:

  • A text block containing a field from the CSV file
  • A QR code generated from the same text field

Create the text block using Variable Text formatting, apply ordinary text formatting as needed, then position it where it’s needed.

Set up the QR code using the CSV selection @thelmuth showed with the same variable field as in the text block.

Admittedly, a few test runs on cardboard to work out the details would be a Good Idea™. :grin:

Many thanks for the replies guys - it is much appreciated.

I was hoping to get away with using a .csv file, but it is not really a problem to use it, f it gets the required result.

Thanks Again

Andy

If you just want the numbers to increment sequentially you can use the Serial Number function described in the second video I posted.

Hi Tim,

Yes, I did see that, but unfortunately the part numbers that need to be burnt into the QR codes are not sequential in number.

Thanks again for your help :slight_smile:

Andy

1 Like