Skip to Main Content
Cognex 지원 허브
LogoLogo

How to Write Custom Conditions in EasyBuilder to Set the Overall Job Result

Step-by-step instructions for how to configure EasyBuilder Overall Job Result for custom pass logic

2024. 09. 15.

Details

Question

By default in EasyBuilder, when adding tools all are included in a conjunction within the job result (In other words, when one fails, whole Job result fails). How do I write a custom condition, for example when only one or more tools are passes the job passes?

Answer

  1. Open “view advanced Tool settings” of the tools to be ignored in the job result or to be outsourced in an external logic.
  2. Set “Include to Job Pass” to “No”
  3. Alternatively, steps to outsource to an external logic cell (for example Result of Tool1 OR Tool2)
  4. Add a Math Tool
  5. Get the Result of Tool1 in a new Cell (e.g. A1), by clicking the Link Tool Property and choose “Pass” of Tool1
  6. Get the Result of Tool2 in a new Cell (e.g. B1), by clicking the Link Tool Property and choose “Pass” of Tool2Write Or(A0,B0) in a new cell (e.g. C1)
  7. Also possible: Write directly Or(Tool_1.Pass, Tool_2.Pass) into a cell.
  8. Finally, set this cell as the Watch Cell for Job Pass

관련 자원

Loading component...