Program the Real Arm · xArm 850
Program the Real Arm
This part is for the person who programs the arm. You turn one manufacturing task into a deterministic program, test it step by step, and leave it ready for an agent to call. The program is written in Python on UFACTORY's software development kit, and nothing here runs on the real arm without the instructor's approval.
Warning
Run a new or changed program on the arm only with the instructor's approval, the operating checklist done, and the emergency stop within your reach12.
What the Course Asks
- A deterministic program that makes the machine perform a defined task safely and repeatably. It may take defined inputs and report its status; connecting it to an agent and to MIX comes in the next step3.
- The task is approved by the instructor and described by its objective, inputs and materials, expected output, initial state, sequence, completion criteria, safety conditions and likely errors4.
This Program's Task
For each card of a job, the arm moves home, picks the card with the vacuum gripper, places it on the staging stack for the card's variant, releases it and returns home. When the job is done it waits at home for the next one5.
- Inputs: a job that names the card's variant and how many, and one card at a time pushed into an L-shaped corner stop of tape on the pick surface56.
- Materials: cards in black and other primary colors, all with a metallic gleam. Each color is a variant, and the variant chooses the stack7.
- Output: the job's cards on their stack, the arm at home, a
JOB_COMPLETEevent and the stateREADY89. - Initial state: no controller error, the arm in position mode with Manual Mode off, the controller's tool point and payload as the station file gives them, and a card in the corner stop105.
- Completion: a cycle is complete when the card's release is confirmed and the arm is home; a job, when the completed cycles equal its quantity8.
Without the Camera
Nothing checks the card: the job's variant is trusted and chooses the stack, and every cycle reports that no inspection ran. The camera's check of the card's color and defects is built as an extension of the same program and tested on still images11.
The Safety Requirements
- Get the instructor's approval before running a new or changed program1.
- Review it for unsafe motion, excessive speed, improper power, invalid parameters and collisions1.
- Use simulation, dry runs and reduced speed whenever you can1.
- Confirm the guards, interlocks, emergency stops and safety zones are active. Never bypass a safety function or exceed an approved limit1.
- Keep the emergency stop within reach while you test, and stop at once if the arm does anything unexpected1.
- Back up the approved program before you change it1.
The Pages
- The Logic: the states, one cycle, the faults and safe recovery12.
- The Program: its files, the station file, its inputs and outputs1314.
- Testing and Revisions: the seven-step test process and its logged results15.
- Performance: what is measured over repeated cycles16.
- The Agent Interface: how a future agent could call the program17.
- Run It Yourself: install it, run it on the simulated arm, then on the real one13.
Printed from https://www.anotherplace.com/learn/en/xarm-850/program. Every line cites its source on that page.