source | generated | |||
---|---|---|---|---|
config.json | rio.hal | rio.ini | custom_postgui.hal | rio-gui.xml |
{
"type": "joint_stepper",
"scale": -200,
"max_acceleration": 100,
"cl": false,
"pins": {
"step": "79",
"dir": "77"
}
}, |
|
[JOINT_0]
TYPE = LINEAR
MIN_LIMIT = -1300
MAX_LIMIT = 1300
MAX_VELOCITY = 40
MAX_ACCELERATION = 100
STEPGEN_MAXACCEL = 4000.0
SCALE = -200
FERROR = 1.0
MIN_FERROR = 0.5
#HOME_SEARCH_VEL = -10.0
#HOME_LATCH_VEL = -3.0
#HOME_FINAL_VEL = 5.0
#HOME_IGNORE_LIMITS = YES
#HOME_USE_INDEX = NO
#HOME_OFFSET = 0.0
#HOME = 0.0
#HOME_SEQUENCE = 1 |
source | generated | |||
---|---|---|---|---|
config.json | rio.hal | rio.ini | custom_postgui.hal | rio-gui.xml |
{
"type": "din_bit",
"name": "home-x",
"net": "joint.0.home-sw-in",
"invert": false,
"pullup": true,
"pin": "26"
}, |
|
this also activates the homing setup in the ini file for this axis
HOME_SEARCH_VEL = -10.0
HOME_LATCH_VEL = -3.0
HOME_FINAL_VEL = 5.0
HOME_IGNORE_LIMITS = YES
HOME_USE_INDEX = NO
HOME_OFFSET = 0.0
HOME = 0.0
HOME_SEQUENCE = 1 |
|
<hbox>
<relief>RAISED</relief>
<bd>2</bd>
<led>
<halpin>"home-x"</halpin>
<size>16</size>
<on_color>"green"</on_color>
<off_color>"black"</off_color>
</led>
<label>
<text>"home-x"</text>
</label>
</hbox> |
source | generated | |||
---|---|---|---|---|
config.json | rio.hal | rio.ini | custom_postgui.hal | rio-gui.xml |
{
"name": "spindle-enable",
"net": "spindle.0.on",
"invert": true,
"pin": "56",
"type": "dout_bit"
}, |
|
|
<hbox>
<relief>RAISED</relief>
<bd>2</bd>
<label>
<text>"spindle-speed"</text>
</label>
<number>
<halpin>"spindle-speed"</halpin>
<font>("Helvetica",18)</font>
<format>"05.2f"</format>
</number>
</hbox> |
normaly you can only link one pin to one signal, but you can add a hal-component like the OR2 (logical OR)
source | generated | |||
---|---|---|---|---|
config.json | rio.hal | rio.ini | custom_postgui.hal | rio-gui.xml |
{
"type": "din_bit",
"name": "tool-probe",
"net": "OR2:motion.probe-input",
"invert": true,
"pullup": true,
"pin": "29"
},
{
"type": "din_bit",
"name": "touch-probe",
"net": "OR2:motion.probe-input",
"debounce": true,
"invert": true,
"pullup": true,
"pin": "53"
}, |
|
|
<hbox>
<relief>RAISED</relief>
<bd>2</bd>
<led>
<halpin>"tool-probe"</halpin>
<size>16</size>
<on_color>"green"</on_color>
<off_color>"black"</off_color>
</led>
<label>
<text>"tool-probe"</text>
</label>
</hbox>
<hbox>
<relief>RAISED</relief>
<bd>2</bd>
<led>
<halpin>"touch-probe"</halpin>
<size>16</size>
<on_color>"green"</on_color>
<off_color>"black"</off_color>
</led>
<label>
<text>"touch-probe"</text>
</label>
</hbox> |
if only a 'name' is configured and no 'net', the pin will linked in the custom_postgui.hal to a gui widget
source | generated | |||
---|---|---|---|---|
config.json | rio.hal | rio.ini | custom_postgui.hal | rio-gui.xml |
{
"type": "vout_pwm",
"name": "pwm1",
"min": "0",
"max": "10000",
"invert": true,
"pins": {
"pwm": "76"
}
}, |
|
<hbox>
<relief>RAISED</relief>
<bd>2</bd>
<scale>
<halpin>"pwm1"</halpin>
<resolution>0.1</resolution>
<orient>HORIZONTAL</orient>
<initval>0</initval>
<min_>0</min_>
<max_>100</max_>
<param_pin>1</param_pin>
</scale>
<label>
<text>"pwm1 (vout_pwm)"</text>
</label>
</hbox> |
you can add display option to configure the generated widget
source | generated | |||
---|---|---|---|---|
config.json | rio.hal | rio.ini | custom_postgui.hal | rio-gui.xml |
{
"name": "flow",
"type": "vin_frequency",
"scale": 33.0,
"display": {
"type": "meter",
"text": "Water",
"subtext": "ml/h",
"min": 0,
"max": 200,
"threshold": 90,
"region": [
[90, 200, "green"],
[70, 90, "yellow"],
[0, 70, "red"]
]
},
"debounce": true,
"pin": "30",
"pullup": true,
"freq_min": 2
}, |
setp rio.flow-scale 33.0
net flow rio.flow pyvcp.flow |
<hbox>
<relief>RAISED</relief>
<bd>2</bd>
<meter>
<halpin>"flow"</halpin>
<text>"Water"</text>
<subtext>"ml/h"</subtext>
<size>150</size>
<min_>0</min_>
<max_>200</max_>
<region1>(90,200,"green")</region1>
<region2>(70,90,"yellow")</region2>
<region3>(0,70,"red")</region3>
</meter>
</hbox> |