Distance screen

Official

The Distance mode of earlier UPAN: distance, pause, how many times and direction. The screen turns these four fields into the same short program every time and the device checks it like any other. It is a form, not a program editor: anything longer is written by an agent.

Hardware
UPAN Core · 1 axis
Contains
Controller screen, Phrases for an agent
Version
0.1.0
Minimum firmware
not released yet

Controller screen

How the controller draws this screen on a phone, next to the machine it drives. Tap the presets and the buttons: the machine moves at the speed of a demo machine. The gear in the top bar opens the settings.

Distance
Position, mm0.00
Distance, mm100
Pause, ms500
Times1
Direction→
Parts done0
Ready
Linear axis0.00

Demo machines with their own limits. Your machine checks against its own; the screen only changes what you see, the device checks every move.

Layout (upan.layout/1)

{
  "format": "upan.layout/1",
  "name": "distance",
  "title": "Distance",
  "units": "mm",
  "rows": [
    [
      {
        "w": "position",
        "size": "xl"
      }
    ],
    [
      {
        "w": "cycle",
        "id": "feed",
        "fields": [
          "distance",
          "delay_ms",
          "count",
          "direction"
        ]
      }
    ],
    [
      {
        "w": "counter",
        "source": "program_done"
      }
    ],
    [
      {
        "w": "home"
      },
      {
        "w": "set_zero"
      },
      {
        "w": "status"
      }
    ]
  ],
  "defaults": {
    "fields": {
      "feed": {
        "distance": 100,
        "delay_ms": 500,
        "count": 1,
        "direction": 1
      }
    }
  }
}

Layout data (upan.layout-data/1)

The file also carries the layout data the device starts with: presets, offsets and form values.

{
  "format": "upan.layout-data/1",
  "layout": "distance",
  "presets": {},
  "offsets": {},
  "selected": {},
  "fields": {
    "feed": {
      "distance": 100,
      "delay_ms": 500,
      "count": 1,
      "direction": 1
    }
  }
}

The agent opens with this preset's code and your values already in the message: add what you want to change.

Install

Install codeP-3DST

  1. On the device's control page: enter P-3DST.
  2. Without internet: download the file and drop it on the control page.
  3. With an agent: ask it to install preset P-3DST.

Not final: installing by code needs controller firmware that is still in development. The file and the API work today.

Phrases for an agent

  • Feed 100 mm ten times with half a second between.