Solved

Using target values from Merit function in ZPL Macro

  • 28 January 2022
  • 2 replies
  • 402 views

Badge

Is it possilbe to use target values from a merit function in a zpl macro.

For example, there are some defined constraints in the optical path length (OPTH) for e.g. 5 different ray deflections (different Hx or Hy) of an imaging system. Can I use these fixed values in the ZPL macro for further optimization?

icon

Best answer by David.Nguyen 31 January 2022, 11:00

View original

2 replies

Badge

DearDavid,

thanks for your answer. That helps a lot.

Best regards

Ralf

 

 

Userlevel 7
Badge +2

Hi Ralf,

 

I’m not sure what you mean when you say use. I’m assuming you want to change the target value of an operand within your ZPL macro. You can do this with the SETOPERAND keyword:

 

SETOPERAND row, col, value
 

You need to give it the operand row number, the col is 8 for the target value, and value is the new target. Here’s an example for you:

 

 

Let me know if that’s what you were looking for. Take care,


David

Reply