Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enabled HDMI #2

Open
wants to merge 32 commits into
base: Duane's
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
61302cd
Changed Pocket NC homing settings for BBC51041
matthewhertel Feb 11, 2015
3a80332
Updating Matts config for RevC boards
matthewhertel Feb 1, 2015
758b756
update Matts config files for RevC
matthewhertel Mar 3, 2015
5cfea16
update Matts configs to RevC
matthewhertel Mar 3, 2015
d0a924a
Merge branch 'Michelle-Hertel' of https://github.com/PocketNC/Setting…
matthewhertel Mar 3, 2015
a46d873
Update PocketNC.hal
matthewhertel Mar 10, 2015
9728620
Update PocketNC.hal
matthewhertel Mar 10, 2015
d000df8
Update PocketNC.hal
matthewhertel Mar 11, 2015
160be3c
Beta 2.0 settings
matthewhertel Mar 27, 2015
c2729c9
comment out estop
matthewhertel Mar 27, 2015
30ec36a
changing estop comments
matthewhertel Mar 30, 2015
157ad38
Updated .ini file
matthewhertel Mar 30, 2015
d3102da
Updated .ini file
matthewhertel Mar 30, 2015
c14637d
Updated .hal file
matthewhertel Mar 30, 2015
959a0ed
Update PocketNC.ini
matthewhertel Jun 2, 2015
2a3503f
Update PocketNC.ini
matthewhertel Jun 2, 2015
71c41d3
Update PocketNC.ini
matthewhertel Jun 2, 2015
e6c973b
Update PocketNC.hal
matthewhertel Jun 2, 2015
b80153e
Update PocketNC.hal
matthewhertel Jun 2, 2015
0d5b2b0
Changed Home distances and Motor polarity
matthewhertel Jul 15, 2015
fd028bc
Update README
pocketncmichelle Jul 15, 2015
4b3097c
Merge pull request #9 from pocketncmichelle/patch-1
matthewhertel Jul 15, 2015
97d5467
Added pause button
dewy721 Jul 18, 2015
f3cf4c4
Merge pull request #11 from dewy721/Duane
matthewhertel Jul 22, 2015
e656144
Merge remote-tracking branch 'origin/Duane' into BBEY1307-With-Pause-…
matthewhertel Jul 27, 2015
1ac74b7
Merge pull request #12 from PocketNC/BBEY1307-With-Pause-Button
matthewhertel Aug 19, 2015
8c7f89c
Re-enabled HDMI support
dewy721 Aug 20, 2015
8977b1b
Probably best to ignore .ini file.
dewy721 Aug 20, 2015
4cfecc2
git forced
dewy721 Aug 20, 2015
72364a2
Merge pull request #13 from PocketNC/Duane
matthewhertel Aug 21, 2015
0167923
Merge pull request #14 from PocketNC/BBEY1307
matthewhertel Aug 21, 2015
845959b
Merge pull request #16 from PocketNC/TBD-Duane--HDMI
matthewhertel Aug 21, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 50 additions & 27 deletions PocketNC.hal
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,46 @@
# HAL file for BeagleBone PocketNC cape with 5 steppers
#
# Derived from example hm2-stepper config
#
# ########################################

# Launch the setup script to make sure hardware setup looks good
loadusr -w ./setup.bridge.sh


# ###################################
# Core EMC/HAL Loads
# ###################################

# kinematics
loadrt trivkins
loadrt tp

# motion controller, get name and thread periods from ini file
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES tp=tp kins=trivkins


# load low-level drivers
#loadrt hal_bb_gpio output_pins=107,126,217,218,224,226 input_pins=108,110,114,117,118
#loadrt hal_bb_gpio output_pins=107,126,211,212,218,224,226 input_pins=108,109,110,114,117,118,218,222
loadrt hal_bb_gpio output_pins=117,211,212,218,224,226 input_pins=118,107,108,109,110,114,119,126,213,216,217,222,241,242,225,231
loadrt [PRUCONF](DRIVER) prucode=$(HAL_RTMOD_DIR)/[PRUCONF](PRUBIN) [PRUCONF](CONFIG)
loadrt hal_bb_gpio output_pins=117,211,212,218,224,226 input_pins=118,108,109,110,114,119,126,213,216,217,222,241,242,225,231
loadrt [PRUCONF](DRIVER) prucode=/usr/lib/linuxcnc/xenomai/pru_generic.bin [PRUCONF](CONFIG)
loadrt pid num_chan=2
loadrt limit1 count=3

# Spindle math
loadrt scale names=spindleScale

# Some 'glue' logic
#loadrt toggle names=pwrToggle,eStpToggle
#loadrt not names=pwrNot,eStpNot
loadrt sum2 names=spindleMath
loadrt toggle count=8
loadrt not count=8
loadrt and2 count=3
loadrt or2 count=1
loadrt toggle2nist count=1

# Python user-mode HAL module to read ADC value and generate a thermostat output for PWM
# t = Thermistor table (only epcos_B57560G1104 or 1 supported for now)
# a = analog input channel
loadusr -Wn Therm /home/machinekit/machinekit-dev/configs/ARM/BeagleBone/BeBoPr-Bridge/ReadTemp.py -n Therm --num_chan 2 -t 1 1 -a 4 5
loadusr -Wn Therm /home/machinekit/linuxcnc/configs/ARM.BeagleBone.PocketNC/ReadTemp.py -n Therm --num_chan 2 -t 1 1 -a 4 5

# ################################################
# THREADS
Expand All @@ -65,14 +65,36 @@ addf spindleScale servo-thread
#addf pwrNot servo-thread
#addf eStpToggle servo-thread
#addf eStpNot servo-thread

## Add a functions for E-stop button
addf toggle.0 servo-thread

## Add a functions for Machine power button
addf toggle.1 servo-thread

## Add a functions for Start/Run button
addf toggle.2 servo-thread

## Add a functions for Pause button
addf toggle.3 servo-thread
addf and2.0 servo-thread
addf and2.1 servo-thread
addf and2.2 servo-thread
addf or2.0 servo-thread
addf toggle2nist.0 servo-thread

## Add a functions for (un-declared) button
addf toggle.4 servo-thread

## Add a functions for (un-declared) button
addf toggle.5 servo-thread

## Add a functions for (un-declared) button
addf toggle.6 servo-thread

## Add a functions for (un-declared) button
addf toggle.7 servo-thread

addf not.0 servo-thread
addf not.1 servo-thread
addf not.2 servo-thread
Expand Down Expand Up @@ -344,9 +366,9 @@ setp bb_gpio.p9.in-16.invert 1


# A Axis Index
net Aindex <= bb_gpio.p9.in-42
net Aindex => axis.3.index-enable
setp bb_gpio.p9.in-42.
#net Aindex <= bb_gpio.p9.in-42
#net Aindex => axis.3.index-enable
#setp bb_gpio.p9.in-42.


# B axis
Expand All @@ -357,9 +379,10 @@ setp bb_gpio.p8.in-19.invert 1
### Control Panel Buttons ###
# eStop
net estop-loop iocontrol.0.user-enable-out => iocontrol.0.emc-enable-in
net eStopToggle toggle.0.in <= bb_gpio.p8.in-07
#net eStopToggle toggle.0.in <= bb_gpio.p8.in-07
setp toggle.0.debounce 2
setp bb_gpio.p8.in-07.invert 1
#setp bb_gpio.p8.in-07.invert 1
#setp bb_gpio.p8.in-07.invert 1
net eStopOn toggle.0.out => halui.estop.activate => not.0.in
net eStopOff not.0.out => halui.estop.reset
net eStopDriversEnable halui.estop.is-activated => bb_gpio.p9.out-26
Expand All @@ -370,15 +393,11 @@ setp toggle.1.debounce 2
setp bb_gpio.p8.in-26.invert 0
net powerOn toggle.1.out => halui.machine.on => not.1.in
net powerOff not.1.out => halui.machine.off


#net driversEnable halui.machine.is-on => not.2.in
#net driversEnableInvert not.2.out => bb_gpio.p9.out-26
net driversEnable halui.machine.is-on => bb_gpio.p9.out-12


# Program start/run
net progStart halui.program.run <= bb_gpio.p9.in-22
#net progStart halui.program.run <= bb_gpio.p9.in-22
#setp toggle.1.debounce 2
#setp bb_gpio.p8.in-26.invert 0
#net powerOn toggle.2.out => halui.machine.on => not.2.in
Expand All @@ -392,14 +411,21 @@ net progStart halui.program.run <= bb_gpio.p9.in-22
#net powerOff not.1.out => halui.machine.off

# Program pause
net progPause halui.program.pause <= bb_gpio.p9.in-17
#setp toggle.1.debounce 2
#setp bb_gpio.p9.in-17.invert 0
#net powerOn toggle.1.out => halui.machine.on => not.1.in
#net powerOff not.1.out => halui.machine.off
setp bb_gpio.p9.in-22.invert 1
net progPauseButton and2.2.in0 <= bb_gpio.p9.in-22
net pauseOnCheck halui.program.is-running => or2.0.in0
net pauseOffCheck halui.program.is-paused => or2.0.in1 toggle2nist.0.is-on
net pauseSane and2.2.in1 <= or2.0.out
net progPause toggle.3.in <= and2.2.out
net togglesig toggle.3.out => and2.0.in0
net isPauseValid not.3.out => and2.0.in1
net pauseIsIndeedValid and2.0.out => toggle2nist.0.in
net toggleon toggle2nist.0.on => halui.program.pause
net toggleoff toggle2nist.0.off => halui.program.resume


# Program stop
net programStop halui.program.stop <= bb_gpio.p9.in-41
#net programStop halui.program.stop <= bb_gpio.p9.in-41
#setp toggle.1.debounce 2
#setp bb_gpio.p8.in-26.invert 0
#net powerOn toggle.1.out => halui.machine.on => not.1.in
Expand Down Expand Up @@ -434,9 +460,6 @@ setp spindleScale.offset .8
setp limit1.2.min 0
setp limit1.2.max 100




net spindleSpeedDummy motion.spindle-speed-out
#net spindleSpeed motion.spindle-speed-out-abs => spindleScale.in
net spindleSpeed motion.spindle-speed-out-abs => spindleMath.in1
Expand Down
Loading