config help fix

This commit is contained in:
saifullah-N
2022-12-23 00:41:02 +05:30
parent 20360b983b
commit fde5ed3ac7
2 changed files with 78 additions and 33 deletions

View File

@@ -6,8 +6,7 @@
"default": "METRIC"
},
"max-deviation": {
"help":
"Default allowed deviation from programmed path. Also see G64 & G61.",
"help": "Default allowed deviation from programmed path. Also see G64 & G61.",
"type": "float",
"min": 0.05,
"max": 100,
@@ -15,8 +14,7 @@
"default": 0.1
},
"junction-accel": {
"help":
"Higher values will increasing cornering speed but may cause stalls.",
"help": "Higher values will increasing cornering speed but may cause stalls.",
"type": "float",
"min": 10000,
"max": 100000000,
@@ -168,7 +166,13 @@
"homing": {
"homing-mode": {
"type": "enum",
"values": ["manual", "switch-min", "switch-max","stall-min","stall-max"],
"values": [
"manual",
"switch-min",
"switch-max",
"stall-min",
"stall-max"
],
"default": "manual",
"code": "ho"
},
@@ -292,16 +296,30 @@
},
"tool-enable-mode": {
"type": "enum",
"values": ["disabled", "lo-hi", "hi-lo", "tri-lo", "tri-hi", "lo-tri",
"hi-tri"],
"values": [
"disabled",
"lo-hi",
"hi-lo",
"tri-lo",
"tri-hi",
"lo-tri",
"hi-tri"
],
"default": "lo-hi",
"code": "eom",
"pin": 15
},
"tool-direction-mode": {
"type": "enum",
"values": ["disabled", "lo-hi", "hi-lo", "tri-lo", "tri-hi", "lo-tri",
"hi-tri"],
"values": [
"disabled",
"lo-hi",
"hi-lo",
"tri-lo",
"tri-hi",
"lo-tri",
"hi-tri"
],
"default": "lo-hi",
"code": "dom",
"pin": 16
@@ -342,12 +360,19 @@
"values": [
"disabled",
"connect-write",
"max-freq-read", "max-freq-fixed",
"freq-set", "freq-signed-set",
"stop-write", "forward-write", "reverse-write",
"freq-read", "freq-signed-read", "freq-actech-read",
"max-freq-read",
"max-freq-fixed",
"freq-set",
"freq-signed-set",
"stop-write",
"forward-write",
"reverse-write",
"freq-read",
"freq-signed-read",
"freq-actech-read",
"status-read",
"disconnect-write"],
"disconnect-write"
],
"default": "disabled",
"code": "vt"
},
@@ -406,8 +431,7 @@
"default": false
},
"dynamic-power": {
"help":
"Adjust tool power based on velocity and feed rate. Useful for LASERs.",
"help": "Adjust tool power based on velocity and feed rate. Useful for LASERs.",
"type": "bool",
"default": false,
"code": "dp"
@@ -452,24 +476,45 @@
"outputs": {
"load-1": {
"type": "enum",
"values": ["disabled", "lo-hi", "hi-lo", "tri-lo", "tri-hi", "lo-tri",
"hi-tri"],
"values": [
"disabled",
"lo-hi",
"hi-lo",
"tri-lo",
"tri-hi",
"lo-tri",
"hi-tri"
],
"default": "lo-hi",
"code": "1om",
"pin": 2
},
"load-2": {
"type": "enum",
"values": ["disabled", "lo-hi", "hi-lo", "tri-lo", "tri-hi", "lo-tri",
"hi-tri"],
"values": [
"disabled",
"lo-hi",
"hi-lo",
"tri-lo",
"tri-hi",
"lo-tri",
"hi-tri"
],
"default": "lo-hi",
"code": "2om",
"pin": 1
},
"fault": {
"type": "enum",
"values": ["disabled", "lo-hi", "hi-lo", "tri-lo", "tri-hi", "lo-tri",
"hi-tri"],
"values": [
"disabled",
"lo-hi",
"hi-lo",
"tri-lo",
"tri-hi",
"lo-tri",
"hi-tri"
],
"default": "lo-hi",
"code": "fom",
"pin": 21

View File

@@ -70,7 +70,7 @@
}
function getTitle(): string {
const help = !!template.help ? `${template.help}\n` : "";
const help = template.help ? `${template.help}\n` : "";
return `${help}Default: ${template.default} ${template.unit || ""}`;
}