Use combined conditions
When one rule is not enough, combine several detection conditions with "All of / Any of / None of / In sequence". Groups can be nested level after level.
When one rule is not enough, click 组合条件 (Combined condition) at the upper right of the detection rule.
Four ways to combine
| Combination | Meaning | Example |
|---|---|---|
| 全部满足 (All of) | All conditions are true at the same time | All 4 screws are present and were actually driven 4 times |
| 任一满足 (Any of) | Any one condition being true is enough | The product goes into box A or box B |
| 都不满足 (None of) (negation) | Passes only when none of the conditions below is true | There is no scrap in the frame; the lid has not been opened |
| 依次满足 (In sequence) | Stages completed one after another, in order | First grip the refill, then insert it into the barrel |
Condition groups can be nested
Inside a group you can use + 添加条件 (+ Add condition) and + 添加子组 (+ Add subgroup). Subgroups can contain further subgroups, with no limit on depth. For example:
All of
├─ Object present: product @ assembly position
├─ Any of
│ ├─ Inside container: manual → outer box
│ └─ Object present: e-manual card
└─ None of
└─ Object present: scrap- Each condition and subgroup has ↑ (↑) / ↓ (↓) on the right to change the order, plus 删除 (Remove).
- Every detection type can be picked at any level.
Hold time and timeout
- Combined hold time: once all conditions are satisfied at the same time, how long they must stay satisfied to pass. Child conditions are not timed separately.
- Group hold time: a subgroup can also have its own duration. For example, "None of [Object present: scrap]" must hold for 2 seconds.
- Timeout and 完成时会遮挡前置零件 (Covers earlier parts when done) are set on the rule as a whole.
Two options for In sequence
- 跟踪同一零件 (Track the same part): the whole sequence must involve the same part.
- For example, "first grip the refill, then insert it into the barrel": with this checked, gripping refill no. 1 and inserting refill no. 2 does not count.
- The choices come from the target classes of the stages.
- 两段最长间隔 (Max gap between stages): if no progress is made between two adjacent stages for longer than this, the sequence restarts from stage 1. Blank = no limit.
Judge the whole frame
Only appears when the operation has Per-piece mode turned on.
- In per-piece mode, rules are judged "per workpiece" by default.
- Conditions with 按整个画面判 (Judge the whole frame) checked look at the whole frame instead.
- Use it for conditions that do not belong to any one workpiece, such as "the worker's hand has left the work area" or "there is no foreign object in the frame".
Contradiction warnings
When the editor finds a combination that can never be satisfied logically, it lists it in yellow under the rule, for example:
- The same part in the same zone is required to be both "present" and "left";
- The same part in the same scope (the same zone, or the whole frame for both) is required to be both "present" and "absent", or it is required to be "present" while the same "present" condition is also placed under "None of";
- The lower limit of a length ratio, distance or angle is greater than the upper limit;
- The pass class and the abnormal class of an Exclusive state check are the same class;
- Two adjacent stages in In sequence are exactly the same.
Contradiction warnings only warn and do not block saving
When you see one, first confirm this is really what you intend. Do not just save and move on.
