Program the Real Arm · xArm 850 · Page 6 of 6
Run It Yourself
Start on the simulated arm, where nothing can be hurt. Move to the real arm only with approval, and then one step at a time.
Warning
Run anything on the real arm only with the instructor's approval of this program version, the operating checklist done, and a hand within reach of the emergency stop on the control box12.
Install
- Install Python 3.11 or later3.
- Install UFACTORY's Python SDK:
pip install xarm-python-sdk4. - Get the program's folder,
step3/, with its station file and tests3. - Run its tests, which use the simulated arm:
python -m unittest discover -s step3/tests -t .3.
On the Simulated Arm
- One job:
python -m step3.run --no-camera --job variant=black,quantity=353. - Wait for jobs:
python -m step3.run --no-camera --serve, then typestart black 35. - While it runs, try
pto pause,rto resume,status,sto stop, andquit5.
On the Real Arm
- In Studio: no error, Manual Mode off, and the Vacuum Gripper tool preset selected67.
- Give the arm's address in the
XARM_IPenvironment variable or as an argument, never in a file3. - Dry run, which moves nothing:
python -m step3.run --live --no-camera --dry-run3. - Vacuum on and off, with no motion:
python -m step3.tools.vacuum_test --live3. - One cycle, one move per press of Enter:
python -m step3.run --live --no-camera --step --job variant=black,quantity=135. - One full cycle without
--step, then the wait-for-job mode with--serve5.
The program refuses the real arm while a waypoint, the pick area, a stack, the floor, the workspace or a joint range is still a placeholder, and lists what is missing8.
Teaching a Waypoint
- Jog the arm in Studio, or guide it by hand in Manual Mode, then read the pose with
python -m step3.tools.record_waypoint pick --live. The tool reads and never moves the arm3. - Switch Manual Mode off before any run: the program refuses to start in it6.
What the Exit Code Means
0: it ended at READY or the job completed. 2: FAULT. 3: STOPPED. 4: it refused to start5.
Printed from https://www.anotherplace.com/learn/en/xarm-850/program/run. Every line cites its source on that page.