Understand what an operation needs
Step detection for an operation has two layers, settings that apply to the whole operation and settings for each step. This page goes through what each one does and when you need it.
Operation-level settings (apply to the whole operation)
| Setting | Where | What it does | When to configure |
|---|---|---|---|
| Class table | ③ 模型与类别 (Model & classes) | All parts / states that rules can use | Always required |
| Inference zone | ④ ROI 区域 (ROI zone) | Makes the model look only at the station area | When parts are small or the station takes up only a small part of the frame |
| Detection zones | ④ ROI 区域 (ROI zone) | Zones referenced in rules | When you use a rule that looks at zones; see the note below |
| Material staging areas (pick lights) | ① 基本信息 (Basic info) | One red/green light per area; the area to pick from in the current step lights green | When pick lights are installed on site |
| Wrong-part check · work area | ① 基本信息 (Basic info) | Reports a wrong part when a part that "should not appear in this step" shows up in the work area | When parts are easy to tell apart visually and easy to mix up |
| Per-piece mode | ④ ROI 区域 (ROI zone) | When several workpieces are in one frame, step rules are judged and counted separately for each workpiece | Multi-workpiece line scenarios; see Use per-piece mode |
| Station type | ① 基本信息 (Basic info) | Basic scene / conveyor line scene. In conveyor line scene, a skipped step found at the last step opens no redo dialog; the piece is recorded as failed | When workpieces flow past the station on a conveyor. See Fill in operation basics |
When to draw detection zones: when you use rules that look at zones, such as "Object present / Object absent" with a zone selected, "Object left zone", or "Hand in zone / Hand left zone". For which types look at zones, see See all 23 types.
Step-level settings (each step on its own)
In ⑤ 步骤与检测规则 (Steps & detection rules), each step is one row. Expand it to see the detailed settings:
| Setting | What it does | Notes |
|---|---|---|
| Step name / English name | Step name shown on the workstation | If the English name is blank, the English UI shows the Chinese name; you can use 一键生成英文 (Generate English) |
| Time | Standard time | Optional |
| Teaching clip | The part of the teaching video looped during guidance | Filled in automatically by AI step extraction; you can fine-tune it |
| Pick area | Which staging area this step picks from (its pick light turns green) | Blank = no picking in this step, all lights red |
| Order | What happens when an earlier step was skipped and this step was finished first | See the next section |
| Merge into previous step | Forms a parallel group with the previous step; steps in the group can be done in any order | See "Parallel groups" |
| Notes / English | Points to watch shown to the worker on the workstation step bar | Each line break starts a new item; up to 300 characters per step |
| Detection camera | Which camera judges this step | Only shown when the station has several cameras |
| Stop conveyor on failure | The workstation stops the conveyor automatically when this step is judged abnormal | The conveyor must be enabled on the workstation, and it needs a version released after late November 2026 |
| Repeat count | How many times to do it in the same place | See "Repeat count" below |
| Join loop group | Joins the previous step in a loop group done for a number of rounds | See "Loop groups" below |
| Detection rule | How this step counts as done | See Detection types and Use combined conditions |
Order: Allow catch-up and Strict order
Workers sometimes do steps out of order. For example, step 2 has not been done but step 3 is finished first. This is handled by step 3's "Order" setting:
| Setting | On the workstation | Use for |
|---|---|---|
| 可先做后补 (Allow catch-up) (default) | Step 3 is marked yellow, on hold and the worker is prompted to redo step 2; after the redo, both steps complete together | Steps with no assembly dependency between them (applying a label, adding a manual) |
| 严格顺序 (Strict order) | Step 3 is marked orange, rework: the worker must undo step 3 → do step 2 → redo step 3 | Steps with an assembly dependency (the refill must go in before the barrel) |
- The time from detecting the wrong order to finishing the correction is recorded as the "correction time". It is visible on the workstation run page and the records page.
- If the correction is not finished, the whole piece is recorded as failed.
Parallel groups
When several steps can be done in any order (for example, the screws at four corners):
- Starting from the 2nd step in the group, click 并入上一步 (Merge into previous step) on each step in turn.
- Steps inside the group can be done in any order. The steps after the group start only when all of them are complete.
- Groups themselves are still done in order.
Repeat count
Use it when the same thing must be done several times in one place, for example press 3 times or scan 2 times. Choose it in the "执行次数" (Repeat count) row below the detection rule in the step card. The row only appears when the step has a detection rule.
| Option | Meaning | Doing it too many times |
|---|---|---|
| 不设 (None, default) | Once is enough | — |
| 固定 (Exactly) | Exactly N times | Handled by "做多了" (Too many) |
| 至少 (At least) | Passes once done N times | Ignored ("做多了" shows "不适用" (Not applicable)) |
| 最多 (At most) / 区间 (Range) | Passes after 1 time (for a range, after the minimum) | Over the limit is handled by "做多了" (Too many) |
- Enter 2 to 99. For a range, the minimum is at least 2 and the maximum must be larger than the minimum.
- "做多了" (Too many) has three choices: 只记录 (Record only) / 提示 (Remind) / 判不合格 (Fail) (fails this piece).
- What counts as one time: the step's original completion condition is met once. The condition must break for a while before the next time is counted. That time is "两次之间离开" (Leave between times), 500 ms by default when left empty; "最短间隔" (Minimum interval) is 0 when empty.
- Not done enough times counts as a skipped step; redo continues the count.
- When collapsed, the rule summary shows "需执行 3 次" (Do 3 times), "至少执行 3 次" (At least 3 times), "执行 3~5 次" (3 to 5 times) and so on.
For 4 screws, use Action count, not repeat count
Repeat count is for the same place several times. For one time at each of several places (4 screws), use Action count. Steps that already use action count, same-trip picking or pick-record mode cannot have a repeat count; the dropdown is grayed out with the reason next to it.
Loop groups
Several consecutive steps done in order count as one round, and the whole group is done for a number of rounds. For example, steps A, B and C looped 3 times.
- In the header of the 2nd step of the group, click 并入循环组 (Join loop group) to link it with the previous step; click it on the 3rd step, and so on.
- A group title "循环组 · N 步整组循环" (Loop group · N steps looped together) appears above the first step. Choose the rounds there: 固定 (Exactly) / 至少 (At least) / 最多 (At most) / 区间 (Range); a new group defaults to exactly 2 rounds. Cards in the group have a thick orange left border.
- To take a step out, click 移出循环组 (Leave loop group) on it. If you take out a step from the middle, the steps after it form a separate group.
- Steps in a group must be next to each other, at least 2 of them. For a single step done several times, use "Repeat count" above. A step inside a group can still have its own repeat count.
- Groups cannot be nested. A parallel group must be either entirely inside or entirely outside.
- On the workstation, once the minimum rounds are done, doing the group's first step again starts another round, and doing a step after the group leaves the loop. Too few rounds count as a skipped step; redo continues the count.
- When collapsed, the rule summary shows "循环 3 轮" (Loop 3 rounds), "至少循环 3 轮" (At least 3 rounds), "循环 3~5 轮" (3 to 5 rounds) and so on.
Repeat count and loop groups need a workstation update
Repeat count needs recognition engine 1.6.56 or later, and loop groups need 1.6.57 or later. A station with an older version is blocked when you schedule it: "工位 X 的一体机识别程序版本是 …,低于 …,不支持工序「…」里设的「执行次数」。请先把这台一体机升级到 … 或以上再排产" (The recognition program on station X is version …, lower than …, and does not support the "repeat count" set in operation "…". Update this workstation to … or later before scheduling).
Common judgment parameters
The row at the bottom of each rule:
| Parameter | Meaning | Recommendation |
|---|---|---|
| 置信度 ≥ (Confidence ≥) | How sure the model must be to count as "seeing" this part | Default 0.5; lower to 0.3 when small parts are not recognized, raise it when there are many false recognitions |
| 持续命中 (Hold time) | How long the condition must stay satisfied to pass | Usually a few hundred milliseconds; for instant actions such as pressing a button, enter 0 (one frame is enough) |
| 超时 (Timeout) | How long before an unfinished step reports a timeout | Blank = no timeout |
| 完成时会遮挡前置零件 (Covers earlier parts when done) | Finishing this step covers parts from earlier steps | Must be checked for steps such as closing a box or fitting a cover |
Steps such as closing a box or fitting a cover must have "Covers earlier parts when done" checked
If it is not checked, parts from earlier steps "disappearing" are treated as an abnormal event.
Three ways to write a rule
- Single condition: pick one detection type and fill in the parameters. This is enough for most steps.
- Combined condition: click 组合条件 (Combined condition) at the upper right of the rule to combine several conditions with "All of / Any of / None of / In sequence". Groups can be nested; see Use combined conditions.
- Advanced YAML mode: write the rule text directly. Use it only when R&D has given you a ready-made rule; turning it on overrides the fields in the UI.
If the operation has a teaching video, you can use AI 提取步骤 (AI extract steps) to split the steps automatically and get recommended detection types.
Always review AI-recommended rules step by step
Check each one against the rules in How to choose a type.
Saving, snapshots and validation
- Every 保存草稿 (Save draft) and 保存本工序 (Save this operation) automatically stores a snapshot of the steps and rules. If something breaks, you can restore from a snapshot in the history.
- The 校验清单 (Checklist) on the right lists unfinished items (empty step name, no detection rule, and so on). Click an item to jump to it. The same checks are applied when the draft is submitted for review.
- When the editor finds a combination that can never be satisfied logically (for example, the same part in the same zone is required to be both "present" and "absent"), it shows a warning under the rule. It only warns and does not block saving. See Use combined conditions.
