Writing comments to MCE from ZPL?

  • 21 April 2021
  • 2 replies

Userlevel 4
Badge +3

I have 81 total configurations for a lens.  Using ZPL, I want to be able to write specific comments into the LTTL and MOFF lines that help me keep track of everything.  How to do that?




Best answer by David.Nguyen 22 April 2021, 11:03

View original

2 replies

Userlevel 6
Badge +2

Hi Mike,

I don't exactly know what you intend to do, but perhaps this macro snippet can help you:

# Index of operand position in the MCE
operand_position = 1
# Configuration number in which the comment is written
configuration = 1
# Insert new MC operand
INSERTMCO operand_position
# Set new operand to MOFF
SETMCOPERAND operand_position, 0, 'MOFF', 0
# Change value of new operand at Config 1 with 'My comment'
SETMCOPERAND operand_position, configuration, 'My comment', 0

The comments in my code should be self-explanatory. However, should you still have questions, feel free to ask them. The main keyword for this task is SETMCOPERAND, you can find its definition in the Help File under: The Programming Tab > About the ZPL > KEYWORDS (about the zpl) > SETMCOPERAND .

I hope this helps.

Take care,


Userlevel 4
Badge +3

Thanks David, I'll give it a try.