Software-controlled laser marking