vcp { main-window { title = "Halui & halvcp Testing" box { layout = vertical box { layout = horizontal box { layout = vertical box { layout = horizontal box { layout = vertical title = "machine" box { layout = horizontal box { layout = vertical button { halpin = button.machine-on label {text = "On"} } button { halpin = button.machine-off label {text = "Off"} } } LED { size = 15 halpin = led.machine.on on-color = "#00F" off-color = "#006" } } } label { text = " "} box { layout = vertical title = "Estop" box { layout = horizontal box { layout = vertical button { halpin = button.estop-activate label {text = "Act"} } button { halpin = button.estop-reset label {text = "Reset"} } } LED { size = 15 halpin = led.estop.is-activated on-color = "#F00" off-color = "#0F0" } } } label { text = " "} } } # mode switching box { layout = horizontal title = "Mode" box { layout = vertical button { halpin = button.mode.manual label {text = "Man"} } LED { size = 15 halpin = led.mode.is-manual on-color = "#00F" off-color = "#006" } } box { layout = vertical button { halpin = button.mode.auto label {text = "Auto"} } LED { size = 15 halpin = led.mode.is-auto on-color = "#00F" off-color = "#006" } } box { layout = vertical button { halpin = button.mode.mdi label {text = "MDI"} } LED { size = 15 halpin = led.mode.is-mdi on-color = "#00F" off-color = "#006" } } }#end of mode box label { text = " "} button { halpin = button.abort label {text = " Abort "} } } box { layout = horizontal box { layout = vertical title = "Program" button { halpin = button.program-run label { text = "run" } } button { halpin = button.program-pause label { text = "pause" } } button { halpin = button.program-resume label { text = "resume" } } button { halpin = button.program-step label { text = "step" } } } label { text = " "} # this box holds stuff for the spindle box { layout = vertical title = "IO" box { layout = vertical box { layout = horizontal title = "spindle" box { layout = vertical button { halpin = button.spindle-start label { text = "start" } } button { halpin = button.spindle-stop label { text = "stop" } } } LED { halpin = led.spindle-is-on on-color = "#00F" off-color = "#006" } label { text = " "} box { layout = vertical button { halpin = button.spindle-forward label { text = "forward" } } LED { halpin = led.spindle-runs-forward on-color = "#0F0" off-color = "#020" } } label { text = " "} box { layout = vertical button { halpin = button.spindle-reverse label { text = "reverse" } } LED { halpin = led.spindle-runs-backward on-color = "#0F0" off-color = "#020" } } label { text = " "} button { halpin = button.spindle-increase label { text = "spd +" } } label { text = " "} button { halpin = button.spindle-decrease label { text = "spd -" } } } # spindle box box { layout = horizontal box { layout = horizontal title = "mist" box { layout = "vertical" button { halpin = button.mist-on label { text = "On" } } button { halpin = button.mist-off label { text = "Off" } } } LED { size = 10 halpin = led.mist-is-on on-color = "#0F0" off-color = "#020" } }#mist box label { text = " "} box { layout = horizontal title = "lube" box { layout = "vertical" button { halpin = button.lube-on label { text = "On" } } button { halpin = button.lube-off label { text = "Off" } } } LED { size = 10 halpin = led.lube-is-on on-color = "#0F0" off-color = "#020" } }#lube box label { text = " "} box { layout = horizontal title = "flood" box { layout = "vertical" button { halpin = button.flood-on label { text = "On" } } button { halpin = button.flood-off label { text = "Off" } } } LED { size = 10 halpin = led.flood-is-on on-color = "#0F0" off-color = "#020" } }#flood box label { text = " "} box { layout = horizontal title = "probe" box { layout = "vertical" button { halpin = button.probe label { text = "touched" } } } }#probe button }#misc io (mist, lube, flood) }# io box } } box { layout = horizontal # box for axes box { layout = vertical title = "joint 0" button { halpin = button.joint.0.home label { text = "home" } } LED { halpin = led.joint.0.is-homed on-color = "#0F0" off-color = "#002" } box { layout = horizontal LED { size = 10 halpin = led.joint.0.min-hard on-color = "#F00" off-color = "#0F0" } LED { size = 10 halpin = led.joint.0.min-soft on-color = "#FF0" off-color = "#0F0" } LED { size = 10 halpin = led.joint.0.has-fault on-color = "#F00" off-color = "#100" } LED { size = 10 halpin = led.joint.0.max-soft on-color = "#FF0" off-color = "#0F0" } LED { size = 10 halpin = led.joint.0.max-hard on-color = "#F00" off-color = "#0F0" } } box { layout = horizontal button { halpin = button.joint.0.plus label { text = "+" } } label { text = " " } button { halpin = button.joint.0.minus label { text = "-" } } } } box { layout = vertical title = "joint 1" button { halpin = button.joint.1.home label { text = "home" } } LED { halpin = led.joint.1.is-homed on-color = "#0F0" off-color = "#002" } box { layout = horizontal LED { size = 10 halpin = led.joint.1.min-hard on-color = "#F00" off-color = "#0F0" } LED { size = 10 halpin = led.joint.1.min-soft on-color = "#FF0" off-color = "#0F0" } LED { size = 10 halpin = led.joint.1.has-fault on-color = "#F00" off-color = "#100" } LED { size = 10 halpin = led.joint.1.max-soft on-color = "#FF0" off-color = "#0F0" } LED { size = 10 halpin = led.joint.1.max-hard on-color = "#F00" off-color = "#0F0" } } box { layout = horizontal button { halpin = button.joint.1.plus label { text = "+" } } label { text = " " } button { halpin = button.joint.1.minus label { text = "-" } } } } box { layout = vertical title = "joint 2" button { halpin = button.joint.2.home label { text = "home" } } LED { halpin = led.joint.2.is-homed on-color = "#0F0" off-color = "#002" } box { layout = horizontal LED { size = 10 halpin = led.joint.2.min-hard on-color = "#F00" off-color = "#0F0" } LED { size = 10 halpin = led.joint.2.min-soft on-color = "#FF0" off-color = "#0F0" } LED { size = 10 halpin = led.joint.2.has-fault on-color = "#F00" off-color = "#100" } LED { size = 10 halpin = led.joint.2.max-soft on-color = "#FF0" off-color = "#0F0" } LED { size = 10 halpin = led.joint.2.max-hard on-color = "#F00" off-color = "#0F0" } } box { layout = horizontal button { halpin = button.joint.2.plus label { text = "+" } } label { text = " " } button { halpin = button.joint.2.minus label { text = "-" } } } } box { layout = vertical title = "feed override" button { halpin = button.fo.increase label { text = "+" } } button { halpin = button.fo.decrease label { text = "-" } } } box { layout = vertical title = "spindle override" button { halpin = button.so.increase label { text = "+" } } button { halpin = button.so.decrease label { text = "-" } } } box { layout = vertical title = "optional stop" box { layout = horizontal button { halpin = button.os.on label { text = "on" } } button { halpin = button.os.off label { text = "off" } } } LED { size = 6 halpin = led.os.is-on on-color = "#0F0" off-color = "#020" } } box { layout = vertical title = "MDI commands" button { halpin = button.quillup label { text = "Quill Up" } } button { halpin = button.referencepos label { text = "Reference Pos" } } } } } } # main-window }