Skip to main content
Solved

How to make a calculation in component editor ?

  • June 23, 2021
  • 3 replies
  • 167 views

In component editor I can make a Pick up from other cell.

How to make a calculation ?

Dont only to choose but calculate the value from some cells data.

Best answer by David.Nguyen

In fact, have a look at this example I made for you (you can download, and open the ZAR archive and the ZPL Macro will be installed for you automatically).

I made a ZPL Macro Solve, which returns the sum of the Y, and Z position into a cell (in this case Tilt About X).

I let you go through the article I talked about before, and read the Help File for the relevant parts of the code.

Take care,

David

3 replies

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1159 replies
  • June 23, 2021

Hi Arkadiy,

I'm assuming you're talking about the Non-Sequential Component Editor. In which case, the feature you're looking for is a ZPL Macro Solve. So, instead of Pickup, you need to specify a ZPL Macro filename, and the calculations will be in that macro. Have a look at this article.

Let me know if this works for you.

Take care,

David


David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1159 replies
  • Answer
  • June 23, 2021

In fact, have a look at this example I made for you (you can download, and open the ZAR archive and the ZPL Macro will be installed for you automatically).

I made a ZPL Macro Solve, which returns the sum of the Y, and Z position into a cell (in this case Tilt About X).

I let you go through the article I talked about before, and read the Help File for the relevant parts of the code.

Take care,

David


  • Author
  • Visible
  • 15 replies
  • July 15, 2021

Hi David,

Thanks a lot of for your answer.

Thats really what I was looking.

Regards,

Arkadiy