Program the Real Arm · xArm 850 · Page 3 of 6
Testing and Revisions
Test in order, from no motion to the full sequence, and write down every failure and what you changed. Faults that could damage the arm, the tool or a card are tried only on the simulated arm.
The Seven Steps
| Course Step | How This Program Is Tested |
|---|---|
| Review the logic | Every state, step and fault code checked against the code; speeds, bounds and waypoints reviewed for unsafe motion and collisions123 |
| Simulate or dry-run | The whole program on the simulated arm; then --dry-run on the real arm, which connects and reads but moves nothing14 |
| Individual steps at reduced speed | --step: one move per press of Enter14 |
| Verify inputs, outputs, positions and parameters | vacuum_test with no motion; each waypoint reached in step mode; Manual Mode left on must give NOT_READY145 |
| The complete sequence | One full cycle, a controlled pause and resume, a controlled stop, then two jobs in the wait-for-job mode167 |
| Record errors and revisions | One row per failure, with its cause, the change and the commit that made it1 |
| Repeat for consistency | A job of several cycles, with the cycle times recorded18 |
Warning
Do not create a fault on the real arm to test the program. Faults that could damage equipment, materials or people are tested only on the simulated arm1.
Logged Results
Only results logged from a run or from the program's tests appear below. A test with no logged result is not listed.
| # | Test | On What | Result | Date |
|---|---|---|---|---|
| T8 | A no-camera job of three cycles | Fake arm | Pass (199 tests) | 2026-11-19 |
| T9 | Wait-for-job mode: two jobs with READY between; START_JOB while running refused; pause and stop mid-job; only STATUS and SHUTDOWN after FAULT or STOP; SHUTDOWN while moving | Fake arm | Pass (199 tests) | 2026-11-19 |
| # | Test | On What | Result | Date |
|---|---|---|---|---|
| V1 | Vision on drawn images (each color, rotated, at the edges, two cards, fold, tear, mark, depth) | Lab unit tests | Pass (part of the 199) | 2026-11-19 |
| Date | What Failed | Cause | Commit |
|---|---|---|---|
| 2026-11-12 | The arm module's tests printed SDK_VERSION: 1.18.4 on standard output. On the arm it would have been the first line of the event stream, which must hold only JSON events | The SDK prints its version when it is imported (xarm/x3/base.py, line 55) | 67133ee |
| 2026-11-12 | run.py --job variant=green,quantity=1 (no such variant) ended in FAULT CAMERA_ERROR, exit 2, not a refusal | The stand-in inspection for the variant was looked up before the job was checked | 67133ee |
| 2026-11-12 | First run with package 03's vision on saved images: a two-card result was reported as NO_PART. The program logic says two cards is QC_REJECT | The program read present: false as "no card", whatever the reasons | 9b3f864 |
| 2026-11-12 | Writing the second lab visit's commands showed --live could never start | It refused every placeholder in the waypoints, pick, stacks and bounds, including program choices (the speed caps, the move timeout, the 1 mm press) that no visit makes taught or measured | a69647f |
| 2026-11-19 | Not a failure in a run: the camera works only on its 1 m cable, which would hang in the arm's way while it moves; longer cables will not arrive in time | Hardware: no long camera cable | 130b203 |
| 2026-11-19 | Loading the xArm 6's file showed that, run on the xArm 6 without --station, the program would send it the 850's waypoints | Nothing compared the controller's model with the station file; the tool point and payload checks pass on both arms (same preset) | b8cc423 |
| 2026-11-19 | The xArm 6's tool point and payload are assumptions (its five-cup tool is not documented), but --live did not list them | Only waypoints, pick area, stacks and bounds blocked --live | b8cc423 |
| 2026-11-19 | Pointed at the xArm 6's file, 77 of the suite's tests failed | The tests assumed the 850's stacks, joint ranges and positions, and a scan waypoint in every file | fba734e, e9c8f77 |
Printed from https://www.anotherplace.com/learn/en/xarm-850/program/testing. Every line cites its source on that page.