quadencoder
usable as position feedback for closed-loop configuration or as variable input to control LinuxCNC overwrites
{
"type": "quadencoder",
"pins": {
"a": {
"pin": "0"
},
"b": {
"pin": "1"
}
}
}
FPGA-pins
- direction: input
- pull: up
- direction: input
- pull: up
user-options
encoder type
- type: int
- min: 0
- max: 4
- default: 2
name of this plugin instance
- type: str
- default: None
signals/pins in LinuxCNC
position feedback in steps
- type: float
- direction: input
calculates revolutions per second
- type: float
- direction: input
calculates revolutions per minute
- type: float
- direction: input
transport layer
- size: 32 bit
- direction: input
{
"type": "quadencoder",
"quad_type": 2,
"name": "",
"pins": {
"a": {
"pin": "0",
"modifiers": [
{
"type": "debounce"
}
]
},
"b": {
"pin": "1",
"modifiers": [
{
"type": "debounce"
},
{
"type": "invert"
}
]
}
},
"signals": {
"position": {
"net": "xxx.yyy.zzz",
"function": "rio.xxx",
"scale": 100.0,
"offset": 0.0,
"display": {
"title": "position",
"section": "inputs",
"type": "meter"
}
},
"rps": {
"net": "xxx.yyy.zzz",
"function": "rio.xxx",
"scale": 100.0,
"offset": 0.0,
"display": {
"title": "rps",
"section": "inputs",
"type": "meter"
}
},
"rpm": {
"net": "xxx.yyy.zzz",
"function": "rio.xxx",
"scale": 100.0,
"offset": 0.0,
"display": {
"title": "rpm",
"section": "inputs",
"type": "meter"
}
}
}
}
