Browse Source

pwm working now

xhcb04
ton, LinuxCNCMESA 4 years ago
parent
commit
62f81fd954
  1. 23
      custom.hal
  2. 4
      io.hal
  3. 6
      mesa_2019.hal
  4. 15
      mesa_2019.ini
  5. 8
      mesa_2019.pref
  6. 23
      my.halshow

23
custom.hal

@ -1,6 +1,29 @@
# Place any HAL commands in this file that you want to run before the GUI.
# This file will not be written over by the configuration tool.
# Spindle
setp hm2_7i96.0.pwmgen.00.output-type 1
setp hm2_7i96.0.pwmgen.00.scale [SPINDLE]MAX_RPM
setp hm2_7i96.0.pwmgen.pwm_frequency [SPINDLE]PWM_FREQUENCY
net spindle-cmd-rpm => hm2_7i96.0.pwmgen.00.value
net spindle-on <= spindle.0.on => hm2_7i96.0.pwmgen.00.enable
net spindle-on <= spindle.0.on => hm2_7i96.0.ssr.00.out-02
#net spindle-pwm <= hm2_7i96.0.pwmgen.00.pwm
net spindle-cmd-rpm <= spindle.0.speed-out
net spindle-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-cmd-rps <= spindle.0.speed-out-rps
net spindle-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-at-speed => spindle.0.at-speed
# external estop
loadrt estop_latch
addf estop-latch.0 servo-thread
#net estop-loopout iocontrol.0.emc-enable-in <= estop-latch.0.ok-out
#net estop-loopin iocontrol.0.user-enable-out => estop-latch.0.ok-in
net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset
net remote-estop estop-latch.0.fault-in <= hm2_7i96.0.gpio.010.in

4
io.hal

@ -1,4 +1,4 @@
# This file was created with the 7i96 Wizard on Apr 18 2019 14:31:32
# This file was created with the 7i96 Wizard on Apr 19 2019 14:51:58
# If you make changes to this file your screwed
net home-joint-0 joint.0.home-sw-in <= hm2_7i96.0.gpio.000.in
@ -6,3 +6,5 @@ net home-joint-1 joint.1.home-sw-in <= hm2_7i96.0.gpio.001.in
net home-joint-2 joint.2.home-sw-in <= hm2_7i96.0.gpio.002.in
net home-joint-3 joint.3.home-sw-in <= hm2_7i96.0.gpio.003.in
net probe-input motion.probe-input <= hm2_7i96.0.gpio.009.in
net estop-loop hm2_7i96.0.ssr.00.out-01

6
mesa_2019.hal

@ -1,4 +1,4 @@
# This file was created with the 7i96 Wizard on Apr 18 2019 14:31:32
# This file was created with the 7i96 Wizard on Apr 19 2019 14:51:58
# If you make changes to this file DO NOT run the configuration tool again!
# This file will be replaced with a new file if you do!
@ -177,7 +177,3 @@ net estop-loop iocontrol.0.user-enable-out => iocontrol.0.emc-enable-in
# create signals for tool loading loopback
net tool-prep-loop iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
net tool-change-loop iocontrol.0.tool-change => iocontrol.0.tool-changed
# # Load Classicladder without GUI
loadrt classicladder_rt
addf classicladder.0.refresh servo-thread 1

15
mesa_2019.ini

@ -1,4 +1,4 @@
# This file was created with the 7i96 Wizard on Apr 18 2019 14:31:32
# This file was created with the 7i96 Wizard on Apr 19 2019 14:51:58
# Changes to most things are ok and will be read by the wizard
[EMC]
@ -18,12 +18,11 @@ SSERIAL_PORT = 1
DISPLAY = axis
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = COMMANDED
MAX_FEED_OVERRIDE = 1.6000000000000003
MAX_FEED_OVERRIDE = 1.6
CYCLE_TIME = 0.1
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 0
OPEN_FILE = ""
PYVCP = mesa_2019.xml
[KINS]
KINEMATICS = trivkins coordinates=XYYZ kinstype=BOTH
@ -258,14 +257,14 @@ INPUT_JOINT_10 = False
[OUTPUTS]
# DO NOT change the output text
OUTPUT_0 = None
OUTPUT_1 = None
OUTPUT_2 = None
OUTPUT_1 = E-Stop Out
OUTPUT_2 = Spindle On
OUTPUT_3 = None
OUTPUT_4 = None
[OPTIONS]
MANUAL_TOOL_CHANGE = True
HALUI = True
PYVCP = True
GLADEVCP = True
LADDER = True
PYVCP = False
GLADEVCP = False
LADDER = False

8
mesa_2019.pref

@ -2,7 +2,7 @@
blockheight = 0.0
spindle_start_rpm = 300.0
scale_jog_vel = 27.0
scale_spindle_override = 1
scale_spindle_override = 3.0
scale_feed_override = 1
scale_rapid_override = 1
hide_turtle_jog_button = False
@ -37,8 +37,8 @@ show_keyboard_on_offset = False
show_keyboard_on_tooledit = False
show_keyboard_on_edit = False
show_keyboard_on_mdi = False
spindle_bar_min = 0.0
spindle_bar_max = 6000.0
spindle_bar_min = 600.0
spindle_bar_max = 24000.0
x_pos_popup = 45.0
y_pos_popup = 55
width_popup = 250.0
@ -58,7 +58,7 @@ view_tool_path = True
view_dimension = True
gremlin_view = rbt_view_p
run_from_line = no_run
unlock_way = use
unlock_way = no
unlock_code = 123
show_preview_on_offset = False
use_keyboard_shortcuts = False

23
my.halshow

@ -0,0 +1,23 @@
# halshow watchlist created Thu Apr 18 15:03:33 CEST 2019
pin+hm2_7i96.0.gpio.000.in
pin+hm2_7i96.0.gpio.001.in
pin+hm2_7i96.0.gpio.002.in
pin+hm2_7i96.0.gpio.003.in
pin+hm2_7i96.0.gpio.004.in
pin+hm2_7i96.0.gpio.005.in
pin+hm2_7i96.0.gpio.006.in
pin+hm2_7i96.0.gpio.007.in
pin+hm2_7i96.0.gpio.008.in
pin+hm2_7i96.0.gpio.009.in
pin+hm2_7i96.0.gpio.010.in
sig+probe-input
pin+hm2_7i96.0.pwmgen.00.enable
pin+hm2_7i96.0.pwmgen.00.value
pin+hm2_7i96.0.ssr.00.out-00
pin+hm2_7i96.0.ssr.00.out-01
pin+hm2_7i96.0.ssr.00.out-02
pin+hm2_7i96.0.ssr.00.out-04
pin+hm2_7i96.0.ssr.00.out-05
pin+hm2_7i96.0.ssr.00.out-03
sig+estop-loop
Loading…
Cancel
Save