Presets screen
OfficialThe Coordinate / Angle Positioner mode of earlier UPAN as a controller screen. Each preset has a name, a value and a colour, and you edit them on the device itself: hold a button, change it, or take the current position. Starts with saw tilt angles 90°, 0°, ±45° and ±22.5°. A preset can also hang on a button at the machine (UIN1–UIN6), so it works without the phone.
- 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.
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": "presets",
"title": "Presets",
"units": "deg",
"rows": [
[
{
"w": "position",
"size": "xl"
}
],
[
{
"w": "presets",
"id": "main",
"label": "Presets",
"mode": "go",
"columns": 3,
"max": 12
}
],
[
{
"w": "target",
"label": "Angle"
}
],
[
{
"w": "step",
"steps": [
-1,
-0.1,
0.1,
1
]
}
],
[
{
"w": "home"
},
{
"w": "set_zero"
},
{
"w": "status"
}
]
],
"defaults": {
"presets": {
"main": [
{
"name": "90°",
"value": 90,
"color": "green",
"input": 1
},
{
"name": "0°",
"value": 0,
"color": "grey"
},
{
"name": "−45°",
"value": -45,
"color": "red",
"input": 2
},
{
"name": "+45°",
"value": 45,
"color": "orange"
},
{
"name": "+22.5°",
"value": 22.5,
"color": "blue"
},
{
"name": "−22.5°",
"value": -22.5,
"color": "violet"
}
]
}
}
}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": "presets",
"presets": {
"main": [
{
"name": "90°",
"value": 90,
"color": "green",
"input": 1
},
{
"name": "0°",
"value": 0,
"color": "grey"
},
{
"name": "−45°",
"value": -45,
"color": "red",
"input": 2
},
{
"name": "+45°",
"value": 45,
"color": "orange"
},
{
"name": "+22.5°",
"value": 22.5,
"color": "blue"
},
{
"name": "−22.5°",
"value": -22.5,
"color": "violet"
}
]
},
"offsets": {},
"selected": {},
"fields": {}
}The agent opens with this preset's code and your values already in the message: add what you want to change.
Install
Install codeP-6PRS
- On the device's control page: enter P-6PRS.
- Without internet: download the file and drop it on the control page.
- With an agent: ask it to install preset P-6PRS.
Not final: installing by code needs controller firmware that is still in development. The file and the API work today.
Phrases for an agent
Add a preset 30° in blue.Put the 90° preset on the button at UIN1.