Compiling RTIA .comp in Pathpilot
- cncnoob1979
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 403
- Thank you received: 75
15 Apr 2016 22:54 - 15 Apr 2016 23:25 #73377
by cncnoob1979
Compiling RTIA .comp in Pathpilot was created by cncnoob1979
Hey!
I have Pathpilot installed and trying to get running.
I've started the Rip environment so I can halcompile --install a few missing modules.
However console is complaining that halcompile is not a command. I have looked to see if I can find halcompile - but no such luck.
So... Where do I need to look for halcompile? I'm guessing it's a path issue if it is installed on the system.
I have the .comp files for the missing modules.
Also: I renamed my 5i25/7i77x2 bit file to the default that pathpilot looks for (in the upgrade folder 1.9.2) (so no edits) to the ini's. I still got a my card flashed - but it is still the same firmware. I have linuxcnc 3.7.4 on a different ssd and confirmed it after a quick panic.
Can someone confirm it will flash the firmware upon executing the setup script? (First run by default) or else the firmware I flashed was older from the 5i25 that was installed.
I downloaded the firmware from Mesa and got the 5i25-7i77x2 bit file.
Can you point me in the right direction?
I'm very close to getting the UI up.
Edit: after seeing this in the docs I guess I need to:
sudo apt-get install linuxcnc-dev
To get the required dev package. Internet is dead with Pathpilot. Guess I'll need to get the deb.
I downloaded the dev but it needs the header files.. I got the dev package from the precise base/386 binary in buildbot. Where do I need to go to get the headers for Pathpilot?
I'm not sure if what I would blindly do --=---- would be compatible with the older linuxcnc install.
I have Pathpilot installed and trying to get running.
I've started the Rip environment so I can halcompile --install a few missing modules.
However console is complaining that halcompile is not a command. I have looked to see if I can find halcompile - but no such luck.
So... Where do I need to look for halcompile? I'm guessing it's a path issue if it is installed on the system.
I have the .comp files for the missing modules.
Also: I renamed my 5i25/7i77x2 bit file to the default that pathpilot looks for (in the upgrade folder 1.9.2) (so no edits) to the ini's. I still got a my card flashed - but it is still the same firmware. I have linuxcnc 3.7.4 on a different ssd and confirmed it after a quick panic.
Can someone confirm it will flash the firmware upon executing the setup script? (First run by default) or else the firmware I flashed was older from the 5i25 that was installed.
I downloaded the firmware from Mesa and got the 5i25-7i77x2 bit file.
Can you point me in the right direction?
I'm very close to getting the UI up.
Edit: after seeing this in the docs I guess I need to:
sudo apt-get install linuxcnc-dev
To get the required dev package. Internet is dead with Pathpilot. Guess I'll need to get the deb.
I downloaded the dev but it needs the header files.. I got the dev package from the precise base/386 binary in buildbot. Where do I need to go to get the headers for Pathpilot?
I'm not sure if what I would blindly do --=---- would be compatible with the older linuxcnc install.
Last edit: 15 Apr 2016 23:25 by cncnoob1979.
Please Log in or Create an account to join the conversation.
16 Apr 2016 12:36 #73400
by cncbasher
Replied by cncbasher on topic Compiling RTIA .comp in Pathpilot
be very careful , and understand the differences between pathpilot and Linuxcnc currently offered .
dependant on what your trying to do the differences can be huge .
Pathpilot is based on Ubuntu 10_04 and with version of Linuxcnc as of 2.6.3 , approximately lets say 18month to 2 years back
and uses the rtai kernel 2.6.32.122-rtai i686 .
Their are 3 bit files used for tormach machines they are :
tormach_lathe.bit
tormach_mill2.bit
tormach_mill3.bit
these are loaded dependant on which tormach machine you select , and can also be selected by the startup scripts amd installed and including the approprate ini files , built from an internal python script , hence my reasoning for editing the python scripts in my tutorial , so it does not overwrite or interfere with any ini files .
if your not using any of the above , i would do as you suggested and rename and copy the bit file you want to use , to all three above names ,
if your 5i25 is not loaded with firmware as supplied new , then on start up it will probably select tormach_mill3.bit , and use it's own inbuilt version of Mesaflash ( tormach_mesaflash ) , and it will program the 5i25 accordingly . it checks for a reply checksum , if thats not found then it goes through the routine to flash the card , again another reason to patch the files .
as Pathpilot is only really meant for tormach machines , some components were removed and some functionality such as Halcompile , not being required etc , removed .
Also Pathpilot uses REDIS server for communications so this is also required in your ini files
along with the estop being renamed or you'll find the GUI reset , limits , spindle encoder test lights , requiring subtile name changes .
you'll need to use a version of halcompile from the same kernel build , and as Linuxcnc now is using Debian 7 & 8
much is now not compatable .
if pathpilot incurrs any errors on startup , it will default into reflashing the bit file & or remaking an ini file from it's inbuilt repairing scripts, to try and repair it's self.
the best way to see what errors you have is to look at the file gcode/logfiles/pathpilotlog.txt
this can also be done over a network which is handy . including a windows machine as the gcode folder is sharable .
let me know by email and i can help with approprate files etc .
using a 5i25 / 7i76 combination works fine , once you have replaced the bit file and don't have your 5i25 flashed with the tormach files .
the easy way to tell is to use dmesg and see that you have the sserial pins and the quad encoder listed
if they are missing chances are it has flashed the tormach versions .
dependant on what your trying to do the differences can be huge .
Pathpilot is based on Ubuntu 10_04 and with version of Linuxcnc as of 2.6.3 , approximately lets say 18month to 2 years back
and uses the rtai kernel 2.6.32.122-rtai i686 .
Their are 3 bit files used for tormach machines they are :
tormach_lathe.bit
tormach_mill2.bit
tormach_mill3.bit
these are loaded dependant on which tormach machine you select , and can also be selected by the startup scripts amd installed and including the approprate ini files , built from an internal python script , hence my reasoning for editing the python scripts in my tutorial , so it does not overwrite or interfere with any ini files .
if your not using any of the above , i would do as you suggested and rename and copy the bit file you want to use , to all three above names ,
if your 5i25 is not loaded with firmware as supplied new , then on start up it will probably select tormach_mill3.bit , and use it's own inbuilt version of Mesaflash ( tormach_mesaflash ) , and it will program the 5i25 accordingly . it checks for a reply checksum , if thats not found then it goes through the routine to flash the card , again another reason to patch the files .
as Pathpilot is only really meant for tormach machines , some components were removed and some functionality such as Halcompile , not being required etc , removed .
Also Pathpilot uses REDIS server for communications so this is also required in your ini files
along with the estop being renamed or you'll find the GUI reset , limits , spindle encoder test lights , requiring subtile name changes .
you'll need to use a version of halcompile from the same kernel build , and as Linuxcnc now is using Debian 7 & 8
much is now not compatable .
if pathpilot incurrs any errors on startup , it will default into reflashing the bit file & or remaking an ini file from it's inbuilt repairing scripts, to try and repair it's self.
the best way to see what errors you have is to look at the file gcode/logfiles/pathpilotlog.txt
this can also be done over a network which is handy . including a windows machine as the gcode folder is sharable .
let me know by email and i can help with approprate files etc .
using a 5i25 / 7i76 combination works fine , once you have replaced the bit file and don't have your 5i25 flashed with the tormach files .
the easy way to tell is to use dmesg and see that you have the sserial pins and the quad encoder listed
if they are missing chances are it has flashed the tormach versions .
Please Log in or Create an account to join the conversation.
- cncnoob1979
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 403
- Thank you received: 75
17 Apr 2016 02:29 - 17 Apr 2016 02:56 #73454
by cncnoob1979
Replied by cncnoob1979 on topic Compiling RTIA .comp in Pathpilot
I have the Pathpilot UI up and running
However... I can not get my 5i25 to communicate. I believe Im missing something for the read thread for the card. I loaded Ubuntu 10.04 and installed linuxcnc 2.50 with the dev packages. I moved all required .ko modules over to my Pathpilot install. Worked like a charm. Thanks for pointing me in the right direction cncbasher!
5i25 INI
5i25 HAL file
However... I can not get my 5i25 to communicate. I believe Im missing something for the read thread for the card. I loaded Ubuntu 10.04 and installed linuxcnc 2.50 with the dev packages. I moved all required .ko modules over to my Pathpilot install. Worked like a charm. Thanks for pointing me in the right direction cncbasher!
5i25 INI
Warning: Spoiler!
#
# This file is machine generated. Do not edit.
# Date generated: 2016-04-15
# Created from files: tormach_mill_base.ini and tormach_1100-3_specific.ini
#
# Model: 1100-3
#
#
# "©2014 Tormach® LLC. All rights reserved."
#
[EMC]
MACHINE = 1100-3
DEBUG = 0
[DISPLAY]
DISPLAY = tormach_mill_ui.py
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.5
INTRO_GRAPHIC = tormach_mill_splash.gif
INTRO_TIME = 2
PROGRAM_PREFIX = ~/gcode/subroutines
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
DEFAULT_LINEAR_VELOCITY = 1.83
DEFAULT_ANGULAR_VELOCITY = 0.6
GEOMETRY = XYZ
[REDIS]
# IMPORTANT: redis-server has a bad side effect where if *any* arguments are provided
# it clears the default save parameters and then *never* saves changes.
# The default save parameters must be restored by including them as args.
# appendServerSaveParams(60*60,1); /* save after 1 hour and 1 change */
# appendServerSaveParams(300,100); /* save after 5 minutes and 100 changes */
# appendServerSaveParams(60,10000); /* save after 1 minute and 10000 changes */
SERVER_ARGS = --dir ~/mill_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
[TASK]
TASK = milltask
CYCLE_TIME = 0.010
[RS274NGC]
PARAMETER_FILE = ~/mill_data/emc.var
RS274NGC_STARTUP_CODE = G8 G17 G20 G90
# set bit 2 to fetch ini file values in g-code, #<_ini[section]name>
FEATURES = 12
SUBROUTINE_PATH = ~/tmc/configs/tormach_mill/nc_subs:~/tmc/subroutines:~/gcode/subroutines
SINGLE_BLOCK_LOCAL_SUB = YES
SINGLE_BLOCK_EXTERNAL_SUB = NO
USER_M_PATH = nc_subs
DEBUG = 0
# REMAPPING
# for tool change commands
REMAP=M6 modalgroup=6 prolog=zbotatc_M6_prolog ngc=m400
REMAP=M7 modalgroup=8 argspec=p py=smart_cool_M7
REMAP=M8 modalgroup=8 argspec=p py=smart_cool_M8
REMAP=M9 modalgroup=8 py=smart_cool_M9
# for various GUI functions
REMAP=M600 modalgroup=10 argspec=PQ ngc=m600
REMAP=g30 modalgroup=1 argspec=xyza py=g300
REMAP=m998 modalgroup=5 argspec=xyza py=m998
REMAP=g50 modalgroup=1 py=g500
REMAP=g84 modalgroup=1 argspec=rpxyza prolog=cycle_prolog epilog=cycle_epilog py=g840
[PYTHON]
TOPLEVEL= python/toplevel.py
PATH_PREPEND= python
LOG_LEVEL=0
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
SERVO_PERIOD = 1000000
[HOSTMOT2]
# **** This is for info only ****
# DRIVER0=hm2_pci
# BOARD0=5i25
# BITFILE0 used by scripts
BITFILE0=mesa/tormach_mill3.bit
[HAL]
HALUI = halui
HALFILE = tormach_mill_5i25.hal
POSTGUI_SHUTTLEXPRESS_HALFILE = millshuttlexpress.hal
POSTGUI_HALFILE = postgui_tormach_mill.hal
[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
DEFAULT_VELOCITY = 1.5
MAX_VELOCITY = 3.0
NO_FORCE_HOMING = 1
POSITION_FILE = ~/mill_data/position.txt
DEFAULT_TOLERANCE = 0.002
DEFAULT_NAIVECAM_TOLERANCE = 0.0
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = ~/mill_data/tool.tbl
[SPINDLE]
LO_RANGE_MIN = 100
LO_RANGE_MAX = 2000
HI_RANGE_MIN = 250
HI_RANGE_MAX = 5140
MIN_MCB_FREQUENCY = 500.0
MAX_MCB_FREQUENCY = 10900.0
# spindle acceleration to control motion.spindle-at-apeed
#
# seconds between spindle start command, contactor closure, and start of acceleration
STARTUP_DELAY = 3.0
# MCB input 5450 Hz -> VFD 60 Hz
# For 1100 S2/S3 VFD reads 140 Hz at max pulse stream from HAL of 10,000 pulses/sec
# At 1.5 sec/100 Hz that works out to 2.1 sec to reach 140 Hz - full speed
# Max speed 5140 RPM in high belt -> 2447.6 RPM/s^2
# Max speed 2000 RPM in low belt -> 952.4 RPM/s^2
# So 2.1 seconds should be enough but in practice 4.5 seconds to 5140 RPM was observed
# For the hispeed spindle, 8.4 seconds total from VFD off to 24000 RPM was observed
SECONDS_TO_MAX_RPM = 5.4
#********************
# Axis X
#********************
[AXIS_0]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.003
MIN_FERROR = 0.003
MAX_VELOCITY = 2.9
MAX_ACCELERATION = 5.0
P = 150
I = 0
D = 0
FF0 = 0
FF1 = 2.72
FF2 = 0.001
BIAS = 0
DEADBAND = 0.000059
MAX_OUTPUT = 10
ENCODER_SCALE = -127000
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -17.755
MAX_LIMIT = 0.04
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0.5
HOME_LATCH_VEL = 0.017
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 1
# jog shuttle ring speed
MAX_JOG_VELOCITY_UPS = 1.8333
MIN_JOG_VELOCITY_UPS = 0.008333
#********************
# Axis Y
#********************
[AXIS_1]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.003
MIN_FERROR = 0.003
MAX_VELOCITY = 2.9
MAX_ACCELERATION = 5.0
P = 150
I = 0
D = 0
FF0 = 0
FF1 = 2.74
FF2 = 0.003
BIAS = 0
DEADBAND = 0.000059
MAX_OUTPUT = 10
ENCODER_SCALE = -127000
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -11.373
MAX_LIMIT = 0.303
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 0.500000
HOME_LATCH_VEL = 0.016667
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 2
# jog shuttle ring speed
MAX_JOG_VELOCITY_UPS = 1.8333
MIN_JOG_VELOCITY_UPS = 0.008333
#********************
# Axis Z
#********************
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.003
MIN_FERROR = 0.003
MAX_VELOCITY = 2.9
MAX_ACCELERATION = 5.0
P = 75
I = 0
D = 0
FF0 = 0
FF1 = 2.72
FF2 = 0
BIAS = 0
DEADBAND = 0.000059
MAX_OUTPUT = 10
ENCODER_SCALE = -127000
OUTPUT_SCALE = 10
OUTPUT_MIN_LIMIT = -10
OUTPUT_MAX_LIMIT = 10
MIN_LIMIT = -4.465
MAX_LIMIT = 0.069
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 0.50000
HOME_LATCH_VEL = 0.016667
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 0
#********************
# Spindle
#********************
[SPINDLE_9]
P = 0
I = 0
D = 0
FF0 = 1
FF1 = 0
FF2 = 0
BIAS = 0
DEADBAND = 0
MAX_OUTPUT = 10
# jog shuttle ring speed
MAX_JOG_VELOCITY_UPS = 1.8333
MIN_JOG_VELOCITY_UPS = 0.008333
#********************
# Handwheel
#********************
[MPG]
HAND_WHEEL_SCALE = 0.00000016
Z_MINUS_LIMIT = 0.000008
5i25 HAL file
Warning: Spoiler!
# Generated by PNCconf at Mon Jan 18 14:56:08 2016
# If you make changes to this file, they will be
# overwritten when you run PNCconf again
loadrt trivkins
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt hostmot2
loadrt hm2_pci config=" num_encoders=5 num_pwmgens=5 num_stepgens=0 sserial_port_0=100xxx"
setp hm2_5i25.0.watchdog.timeout_ns 5000000
loadrt pid names=pid.x,pid.y,pid.z,pid.s
loadrt oneshot names=os1,os2,os3,os4,os5
loadrt not count=4
loadrt conv_float_s32 names=cnvf,cnvr,cnvs
loadrt debounce cfg=2
loadrt and2 count=12
loadrt or2 count=10
loadrt toggle count=1
loadrt toggle2nist count=1
loadrt flipflop names=ff1,ff2
loadrt near count=2
loadrt scale names=scale.sp,scale.jog,scale-fo,scale-ro,scale-so,scale-maxa
loadrt abs names=abs.spindle
loadrt lowpass names=lowpass.spindle
loadrt limit1 count=2
loadrt limit2 count=1
loadrt mux2 count=3
addf hm2_5i25.0.read servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf pid.x.do-pid-calcs servo-thread
addf pid.y.do-pid-calcs servo-thread
addf pid.z.do-pid-calcs servo-thread
addf pid.s.do-pid-calcs servo-thread
addf hm2_5i25.0.write servo-thread
addf os1 servo-thread
addf os2 servo-thread
addf os3 servo-thread
addf os4 servo-thread
addf os5 servo-thread
addf not.0 servo-thread
addf not.1 servo-thread
addf not.2 servo-thread
addf cnvf servo-thread
addf cnvr servo-thread
addf cnvs servo-thread
addf debounce.0 servo-thread
addf and2.0 servo-thread
addf and2.1 servo-thread
addf and2.2 servo-thread
addf and2.3 servo-thread
addf and2.4 servo-thread
addf and2.5 servo-thread
addf and2.6 servo-thread
addf and2.7 servo-thread
addf and2.8 servo-thread
addf and2.9 servo-thread
addf and2.10 servo-thread
addf and2.11 servo-thread
addf or2.0 servo-thread
addf or2.1 servo-thread
addf or2.2 servo-thread
addf or2.3 servo-thread
addf or2.4 servo-thread
addf or2.5 servo-thread
addf or2.6 servo-thread
addf or2.7 servo-thread
addf or2.8 servo-thread
addf or2.9 servo-thread
addf toggle.0 servo-thread
addf toggle2nist.0 servo-thread
addf ff1 servo-thread
addf ff2 servo-thread
addf near.0 servo-thread
addf near.1 servo-thread
addf scale.sp servo-thread
addf scale.jog servo-thread
addf scale-fo servo-thread
addf scale-ro servo-thread
addf scale-so servo-thread
addf scale-maxa servo-thread
addf abs.spindle servo-thread
addf lowpass.spindle servo-thread
addf limit1.0 servo-thread
addf limit1.1 servo-thread
addf limit2.0 servo-thread
addf mux2.0 servo-thread
addf mux2.1 servo-thread
addf mux2.2 servo-thread
######################--- "ESTOP-OUT" ---#################################
# "Estop output logic Enables 10CR DC Interlock relay" ###
##########################################################################
net machine-is-enabled => hm2_5i25.0.7i77.0.0.output-00 <= halui.machine.is-on #CR10 [DC INTERLOCK] OUTPUT-00
net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in
#halui.estop.activate
#halui.estop.is-activated
net load-reset halui.estop.reset
sets load-reset 1
###################################################################
# "Overrides" #
###################################################################
# "Read analog inputs from the override knobs. Full scale will be"#
# "approximately 24v. Scale the input accordingly. 1.0 = 100%" #
# #
# "Scale up the raw values 100x so that when converted to" #
# "integers we have good resolution." #
# "The results will be between 0 and 2400." #
###################################################################
################"--- Feed Override ---"##################
# Convert from float to S32 #
#########################################################
# "Read in analog input and send to halui.feed-override"
# "Enable direct count input"
net scale_ovr => scale-fo.gain scale-ro.gain scale-so.gain
sets scale_ovr 100
#100
net fo-ena halui.feed-override.count-enable halui.feed-override.direct-value
sets fo-ena 1
# "Scale down the value to a percentage"
net scf-scale => halui.feed-override.scale
sets scf-scale 0.000852
#0.000852
net scf-raw scale-fo.in <= hm2_5i25.0.7i77.0.0.analogin0
net scf-raw-adj cnvf.in <= scale-fo.out
net scf-s halui.feed-override.counts <= cnvf.out
################"--- Rapid Override ---"#################
# Convert from float to S32 #
#########################################################
# "Read in analog input and send to halui.rapid-override"
# "Enable direct count input"
#net ro-ena halui.rapid-override.count-enable halui.rapid-override.direct-value
#sets ro-ena 1
# "Scale down the value to a percentage"
#net scr-scale => halui.rapid-override.scale
#sets scr-scale 0.00044
net scr-raw scale-ro.in <= hm2_5i25.0.7i77.0.0.analogin1
net scr-raw-adj cnvr.in <= scale-ro.out
#net scr-s halui.rapid-override.counts <= cnvr.out
###############"--- Spindle Override ---"################
# Convert from float to S32 #
#########################################################
# "Read in analog input and send to halui.spindle-override"
# "Enable direct count input"
#net so-ena halui.spindle-override.count-enable halui.spindle-override.direct-value
#sets so-ena 1
# "Scale down the value to a percentage"
#net scs-scale => halui.spindle-override.scale
#sets scs-scale 0.0005
#0.0005
net scs-raw scale-so.in <= hm2_5i25.0.7i77.0.0.analogin2
net scs-raw-adj cnvs.in <= scale-so.out
#net scs-s halui.spindle-override.counts <= cnvs.out
#########################################################
# "External Pause/Resume Section" [Stop] #
#########################################################
setp debounce.0.delay 20
net pause-resume-btn and2.0.in0 and2.1.in0 <= hm2_5i25.0.7i77.0.0.input-17-not
net pause-on toggle2nist.0.is-on and2.0.in1 and2.3.in1 <= halui.program.is-paused
net run-on and2.1.in1 <= halui.program.is-running
net pause-sig or2.0.in0 <= and2.0.out
net resume-sig or2.0.in1 <= and2.1.out
net toggle-ok toggle.0.in <= or2.0.out
net togglesig toggle2nist.0.in <= toggle.0.out
net toggleon halui.program.pause <= toggle2nist.0.on
net toggleoff halui.program.resume <= toggle2nist.0.off
#########################################################
# "External Run/Step Section" [Start] #
#########################################################
net run-step-btn and2.2.in0 and2.3.in0 <= hm2_5i25.0.7i77.0.0.input-16
net idle-on and2.2.in1 <= halui.program.is-idle
net run-sig halui.mode.auto halui.program.run <= and2.2.out
net step-sig halui.program.step <= and2.3.out
#####################################################################################
# "This is how The External Step/Pause buttons function:" #
#####################################################################################
# "Pressing Run/Step will begin executing a program. #
# Pressing Hold/Resume while a program is running will pause the program. #
# Pressing Run/Step while a program is paused will single step the program. #
# Pressing Hold/Resume while a program is paused will return it to normal run mode."#
#####################################################################################
#######################################################################
# "Manual Panel/Joystick Jog signals" #
#######################################################################
# "JOG X" #
#######################################################################
net jog-x-pos hm2_5i25.0.7i77.0.0.input-06 or2.4.in0
net jog-x-pos-p hm2_5i25.0.7i77.0.0.input-20 or2.4.in1
net or-out0 or2.4.out halui.jog.0.plus
net jog-x-neg hm2_5i25.0.7i77.0.0.input-07 or2.5.in0
net jog-x-neg-p hm2_5i25.0.7i77.0.0.input-21 or2.5.in1
net or-out1 or2.5.out halui.jog.0.minus
#######################################################################
# "JOG Y" #
#######################################################################
net jog-y-pos hm2_5i25.0.7i77.0.0.input-08 or2.6.in0
net jog-y-pos-p hm2_5i25.0.7i77.0.0.input-19 or2.6.in1
net or-out2 or2.6.out halui.jog.1.plus
net jog-y-neg hm2_5i25.0.7i77.0.0.input-09 or2.7.in0
net jog-y-neg-p hm2_5i25.0.7i77.0.0.input-18 or2.7.in1
net or-out3 or2.7.out halui.jog.1.minus
#######################################################################
# "JOG Z" #
#######################################################################
net jog-z-pos hm2_5i25.0.7i77.0.0.input-10 or2.8.in0
net jog-z-pos-p hm2_5i25.0.7i77.0.0.input-22 or2.8.in1
net or-out4 or2.8.out halui.jog.2.plus
net jog-z-neg hm2_5i25.0.7i77.0.0.input-11 or2.9.in0
net jog-z-neg-p hm2_5i25.0.7i77.0.0.input-23 or2.9.in1
net or-out5 or2.9.out halui.jog.2.minus
# "Using or2 with two inputs"
#net signal-a input-a => or2.0.in0
#net signal-b input-b => or2.0.in1
#net or-out or2.0.out => input
# "Joystick switches (currently unused)"
#net jog-continuous <= hm2_5i25.0.7i77.0.0.input-12
#############################################################
# "JOG Rates - Select the limited rate when we jog z minus" #
#############################################################
setp limit1.0.max 20
net jog-speed => limit1.0.in => mux2.0.in0
net jog-speed-lim <= limit1.0.out => mux2.0.in1
net jog-z-neg => mux2.0.sel
net jog-speed-sel <= mux2.0.out => halui.jog-speed
###############################################################
# "Home switch inputs" #
###############################################################
net home-x <= hm2_5i25.0.7i77.0.0.input-13
net home-y <= hm2_5i25.0.7i77.0.0.input-14
net home-z <= hm2_5i25.0.7i77.0.0.input-15
#########################################################
# "X AXIS" #
#########################################################
setp pid.x.Pgain [AXIS_0]P
setp pid.x.Igain [AXIS_0]I
setp pid.x.Dgain [AXIS_0]D
setp pid.x.bias [AXIS_0]BIAS
setp pid.x.FF0 [AXIS_0]FF0
setp pid.x.FF1 [AXIS_0]FF1
setp pid.x.FF2 [AXIS_0]FF2
setp pid.x.deadband [AXIS_0]DEADBAND
setp pid.x.maxoutput [AXIS_0]MAX_OUTPUT
setp pid.x.error-previous-target true
setp pid.x.maxerror .0005
net x-index-enable <=> pid.x.index-enable
net x-enable => pid.x.enable
net x-pos-cmd => pid.x.command
net x-vel-cmd => pid.x.command-deriv
net x-pos-fb => pid.x.feedback
net x-output => pid.x.output
#############################################
# ---"X AXIS PWM Generator signals/setup"---#
#############################################
setp hm2_5i25.0.7i77.0.1.analogout0-scalemax [AXIS_0]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.1.analogout0-minlim [AXIS_0]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.1.analogout0-maxlim [AXIS_0]OUTPUT_MAX_LIMIT
net x-output => hm2_5i25.0.7i77.0.1.analogout0
net x-pos-cmd axis.0.motor-pos-cmd
net x-enable axis.0.amp-enable-out
########################################
# "X AXIS enable _all_ sserial pwmgens"#
########################################
net x-enable hm2_5i25.0.7i77.0.1.analogena
################################################
# ---"X AXIS Encoder feedback signals/setup"---#
################################################
setp hm2_5i25.0.encoder.00.counter-mode 0
setp hm2_5i25.0.encoder.00.filter 1
setp hm2_5i25.0.encoder.00.index-invert 0
setp hm2_5i25.0.encoder.00.index-mask 0
setp hm2_5i25.0.encoder.00.index-mask-invert 0
setp hm2_5i25.0.encoder.00.scale [AXIS_0]ENCODER_SCALE
net x-pos-fb <= hm2_5i25.0.encoder.00.position
net x-vel-fb <= hm2_5i25.0.encoder.00.velocity
net x-pos-fb => axis.0.motor-pos-fb
net x-index-enable axis.0.index-enable <=> hm2_5i25.0.encoder.00.index-enable
net x-pos-rawcounts <= hm2_5i25.0.encoder.00.rawcounts
###################################################
# ---"X AXIS home / limit switch signals"--- #
###################################################
net home-x => axis.0.home-sw-in
net x-neg-limit => axis.0.neg-lim-sw-in
net x-pos-limit => axis.0.pos-lim-sw-in
#########################################################
# "Y AXIS" #
#########################################################
setp pid.y.Pgain [AXIS_1]P
setp pid.y.Igain [AXIS_1]I
setp pid.y.Dgain [AXIS_1]D
setp pid.y.bias [AXIS_1]BIAS
setp pid.y.FF0 [AXIS_1]FF0
setp pid.y.FF1 [AXIS_1]FF1
setp pid.y.FF2 [AXIS_1]FF2
setp pid.y.deadband [AXIS_1]DEADBAND
setp pid.y.maxoutput [AXIS_1]MAX_OUTPUT
setp pid.y.error-previous-target true
setp pid.y.maxerror .0005
net y-index-enable <=> pid.y.index-enable
net y-enable => pid.y.enable
net y-pos-cmd => pid.y.command
net y-vel-cmd => pid.y.command-deriv
net y-pos-fb => pid.y.feedback
net y-output => pid.y.output
#############################################
# ---"Y AXIS PWM Generator signals/setup"---#
#############################################
setp hm2_5i25.0.7i77.0.1.analogout1-scalemax [AXIS_1]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.1.analogout1-minlim [AXIS_1]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.1.analogout1-maxlim [AXIS_1]OUTPUT_MAX_LIMIT
net y-output => hm2_5i25.0.7i77.0.1.analogout1
net y-pos-cmd axis.1.motor-pos-cmd
net y-enable axis.1.amp-enable-out
################################################
# ---"Y AXIS Encoder feedback signals/setup"---#
################################################
setp hm2_5i25.0.encoder.01.counter-mode 0
setp hm2_5i25.0.encoder.01.filter 1
setp hm2_5i25.0.encoder.01.index-invert 0
setp hm2_5i25.0.encoder.01.index-mask 0
setp hm2_5i25.0.encoder.01.index-mask-invert 0
setp hm2_5i25.0.encoder.01.scale [AXIS_1]ENCODER_SCALE
net y-pos-fb <= hm2_5i25.0.encoder.01.position
net y-vel-fb <= hm2_5i25.0.encoder.01.velocity
net y-pos-fb => axis.1.motor-pos-fb
net y-index-enable axis.1.index-enable <=> hm2_5i25.0.encoder.01.index-enable
net y-pos-rawcounts <= hm2_5i25.0.encoder.01.rawcounts
###################################################
# ---"Y AXIS home / limit switch signals"--- #
###################################################
net home-y => axis.1.home-sw-in
net y-neg-limit => axis.1.neg-lim-sw-in
net y-pos-limit => axis.1.pos-lim-sw-in
#########################################################
# "Z AXIS" #
#########################################################
setp pid.z.Pgain [AXIS_2]P
setp pid.z.Igain [AXIS_2]I
setp pid.z.Dgain [AXIS_2]D
setp pid.z.bias [AXIS_2]BIAS
setp pid.z.FF0 [AXIS_2]FF0
setp pid.z.FF1 [AXIS_2]FF1
setp pid.z.FF2 [AXIS_2]FF2
setp pid.z.deadband [AXIS_2]DEADBAND
setp pid.z.maxoutput [AXIS_2]MAX_OUTPUT
setp pid.z.error-previous-target true
setp pid.z.maxerror .0005
net z-index-enable <=> pid.z.index-enable
net z-enable => pid.z.enable
net z-pos-cmd => pid.z.command
net z-vel-cmd => pid.z.command-deriv
net z-pos-fb => pid.z.feedback
net z-output => pid.z.output
#############################################
# ---"Z AXIS PWM Generator signals/setup"---#
#############################################
setp hm2_5i25.0.7i77.0.1.analogout2-scalemax [AXIS_2]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.1.analogout2-minlim [AXIS_2]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.1.analogout2-maxlim [AXIS_2]OUTPUT_MAX_LIMIT
net z-output => hm2_5i25.0.7i77.0.1.analogout2
net z-pos-cmd axis.2.motor-pos-cmd
net z-enable axis.2.amp-enable-out
################################################
# ---"Z AXIS Encoder feedback signals/setup"---#
################################################
setp hm2_5i25.0.encoder.02.counter-mode 0
setp hm2_5i25.0.encoder.02.filter 1
setp hm2_5i25.0.encoder.02.index-invert 0
setp hm2_5i25.0.encoder.02.index-mask 0
setp hm2_5i25.0.encoder.02.index-mask-invert 0
setp hm2_5i25.0.encoder.02.scale [AXIS_2]ENCODER_SCALE
net z-pos-fb <= hm2_5i25.0.encoder.02.position
net z-vel-fb <= hm2_5i25.0.encoder.02.velocity
net z-pos-fb => axis.2.motor-pos-fb
net z-index-enable axis.2.index-enable <=> hm2_5i25.0.encoder.02.index-enable
net z-pos-rawcounts <= hm2_5i25.0.encoder.02.rawcounts
###################################################
# ---"Z AXIS home / limit switch signals"--- #
###################################################
net home-z => axis.2.home-sw-in
net z-neg-limit => axis.2.neg-lim-sw-in
net z-pos-limit => axis.2.pos-lim-sw-in
#########################################################
# "SPINDLE" #
#########################################################
setp pid.s.Pgain [SPINDLE_9]P
setp pid.s.Igain [SPINDLE_9]I
setp pid.s.Dgain [SPINDLE_9]D
setp pid.s.bias [SPINDLE_9]BIAS
setp pid.s.FF0 [SPINDLE_9]FF0
setp pid.s.FF1 [SPINDLE_9]FF1
setp pid.s.FF2 [SPINDLE_9]FF2
setp pid.s.deadband [SPINDLE_9]DEADBAND
setp pid.s.maxoutput [SPINDLE_9]MAX_OUTPUT
setp pid.s.error-previous-target true
setp pid.s.maxerror .0005
net spindle-index-enable <=> pid.s.index-enable
net spindle-enable => pid.s.enable
net spindle-vel-cmd-rpm => pid.s.command
net spindle-vel-fb-rpm => pid.s.feedback
net spindle-output <= pid.s.output
################################################
# ---"NOT LINKED control signals"--- #
################################################
net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps
net spindle-vel-cmd-rps-abs <= motion.spindle-speed-out-rps-abs
net spindle-vel-cmd-rpm <= motion.spindle-speed-out
net spindle-vel-cmd-rpm-abs <= motion.spindle-speed-out-abs
net spindle-brake <= motion.spindle-brake
net spindle-revs => motion.spindle-revs
net spindle-index-enable <=> motion.spindle-index-enable
net spindle-manual-cw halui.spindle.forward
net spindle-manual-ccw halui.spindle.reverse
net spindle-manual-stop halui.spindle.stop
#net joint-select-a halui.joint.0.select
#net x-is-homed halui.joint.0.is-homed
#net jog-x-analog halui.jog.0.analog
#net joint-select-b halui.joint.1.select
#net y-is-homed halui.joint.1.is-homed
#net jog-y-analog halui.jog.1.analog
#net joint-select-c halui.joint.2.select
#net z-is-homed halui.joint.2.is-homed
#net jog-z-analog halui.jog.2.analog
#net jog-selected-pos halui.jog.selected.plus
#net jog-selected-neg halui.jog.selected.minus
#net coolant-mist <= iocontrol.0.coolant-mist
#net coolant-flood <= iocontrol.0.coolant-flood
#net in-position <= motion.in-position
################################################
# ---"IN-USE control signals"--- #
################################################
#net spindle-at-speed => motion.spindle-at-speed
#net spindle-vel-fb-rps => motion.spindle-speed-in
#net spindle-enable <= motion.spindle-on
#net spindle-cw <= motion.spindle-forward
#net spindle-ccw <= motion.spindle-reverse
#sets spindle-at-speed true
#net machine-is-on halui.machine.is-on
#net MDI-mode halui.mode.is-mdi
##############################################################
# "Probe input & output" #
##############################################################
net probe-in <= hm2_5i25.0.7i77.0.0.input-26 => or2.3.in0
net toolset-in <= hm2_5i25.0.7i77.0.0.input-27 => or2.3.in1
net probe-signal <= or2.3.out => motion.probe-input
#"Output a short pulse to the probe LED/Beeper on contact"
setp os5.falling FALSE
setp os5.rising TRUE
newsig os5Time float
net os5Time => os5.width
sets os5Time 0.02
net probe-signal => os5.in
net probe-led <= os5.out => hm2_5i25.0.7i77.0.0.output-10
#net probe-in => motion.probe-input
#########################################################
# "Manual Tool Change" #
#########################################################
#loadusr -W hal_manualtoolchange
#net tool-change-request iocontrol.0.tool-change => hal_manualtoolchange.change
#net tool-change-confirmed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
#net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
#net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
#########################################################
# "SHARED JOGWHEEL MPG" #
#########################################################
net joint-selected-count <= hm2_5i25.0.encoder.03.count
#########################################
######### "for axis x MPG" #########
#########################################
setp axis.0.jog-vel-mode 0
net selected-jog-incr => axis.0.jog-scale
#net jog-ena-x => axis.0.jog-enable
net joint-selected-count => axis.0.jog-counts
#########################################
######### "for axis y MPG" #########
#########################################
setp axis.1.jog-vel-mode 0
net selected-jog-incr => axis.1.jog-scale
#net jog-ena-y => axis.1.jog-enable
net joint-selected-count => axis.1.jog-counts
#########################################
######### "for axis z MPG" #########
#########################################
setp axis.2.jog-vel-mode 0
# "Limit Z motion, should be about 20 FPM"
setp limit1.1.max [MPG]Z_MINUS_LIMIT
net selected-jog-incr => limit1.1.in
net selected-jog-incr-z <= limit1.1.out => axis.2.jog-scale
net jog-ena-z => axis.2.jog-enable
net joint-selected-count => axis.2.jog-counts
# "Scale the jog rate (FPM) to an increment per Handwheel count"
#setp scale.jog.gain [MPG]HAND_WHEEL_SCALE
net jog-speed => scale.jog.in
#########################################################
# "MPG JOG SELECTED AXIS" #
#########################################################
net jog-ena-z hm2_5i25.0.7i77.0.0.input-25 => axis.2.jog-enable
net jog-ena-z-not hm2_5i25.0.7i77.0.0.input-25-not => and2.11.in0
net jog-ena-x hm2_5i25.0.7i77.0.0.input-24 => axis.0.jog-enable
net jog-ena-x-not hm2_5i25.0.7i77.0.0.input-24-not => and2.11.in1
net jog-ena-y and2.11.out => axis.1.jog-enable
sets selected-jog-incr .000001
sets jog-speed 100
Last edit: 17 Apr 2016 02:56 by cncnoob1979.
Please Log in or Create an account to join the conversation.
17 Apr 2016 10:17 #73466
by cncbasher
Replied by cncbasher on topic Compiling RTIA .comp in Pathpilot
you managed ?
not sure what not communicate means , email me exact error
you should have 2 lights on the 7i76 , the fact that pathpilot is not giving you an error , would mean that the cards are communicating
not sure what not communicate means , email me exact error
you should have 2 lights on the 7i76 , the fact that pathpilot is not giving you an error , would mean that the cards are communicating
Please Log in or Create an account to join the conversation.
- cncnoob1979
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 403
- Thank you received: 75
17 Apr 2016 14:05 - 17 Apr 2016 14:09 #73475
by cncnoob1979
Replied by cncnoob1979 on topic Compiling RTIA .comp in Pathpilot
Path Pilot Status Window
Terminal Window
dmesg Cleared before launch
Getting a bit closer now... I have my hardware running with Linuxcnc 2.7.4 just fine so my board is not flashed. Just something I have not caught yet.
Thanks for helping me out! I still have a lot of work left to connect all my signals to pathpilot. So far I just have the UI up, obliviously nothing is working
EDIT:
Just noticed this:
That would explain the read error.. now to figure that out.
Warning: Spoiler!
hm2/hm2_5i25.0: ***Smart Serial Port 0 will be stopped***
hm2/hm2_5i25.0: Smart Serial Comms Error: There have been more than 1 errors in 10 thread executions at least 200 times. See other error messages for details.
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (3) Timeout
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (13) Communication error
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.0 error = (3) Timeout
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.0 error = (13) Communication error
hm2/hm2_5i25.0: Smart Serial Error: port 0 channel 0. You may see this error if the FPGA card read thread is not running. This error message will not repeat.
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (3) Timeout
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (13) Communication error
hm2/hm2_5i25.0: Smart Serial Error: port 0 channel 1. You may see this error if the FPGA card read thread is not running. This error message will not repeat.
Terminal Window
Warning: Spoiler!
operator@tormachpcnc:~$ bash -c "~/operator_login"
pgrep -c -f "tee -a /home/operator/gcode/logfiles/pathpilotlog.txt"
REDIRECTION_RUNNING: 0
/home/operator/operator_login: redirecting stdout/stderr to: /home/operator/gcode/logfiles/pathpilotlog.txt
sourcing /home/operator/tmc/scripts/rip-environment.sh /home/operator/tmc
Setting enviroment to run Tormach LinuxCNC to run-in-place for development
Using command line supplied EMC2_HOME: /home/operator/tmc
EMC2_HOME = /home/operator/tmc, absolute path for /home/operator/tmc
EMC2_HOME: /home/operator/tmc
new PATH: /home/operator/tmc/python:/home/operator/tmc/bin:/home/operator/tmc/scripts:/home/operator/tmc/bin:/home/operator/teamviewer9qs:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
new LD_LIBRARY_PATH: /home/operator/tmc/lib
new PYTHONPATH: /home/operator/tmc/python/scanner:/home/operator/tmc/python:/home/operator/tmc/python/config_picker:/home/operator/tmc/lib/python:/home/operator/tmc/python/scanner2
Temporary directory for linuxcnc: /tmp/linuxcnc
RIP environment setup complete...
setting touchscreen calibration
No calibration file found: /home/operator/gcode/pointercal.xinput
starting log rotator
logrotator.sh 3600 /home/operator/gcode/logfiles/logrotate.conf /home/operator/gcode/logfiles/logrotate.status
LOGROTATOR_PID: 1819
logrotate /home/operator/gcode/logfiles/logrotate.conf -s /home/operator/gcode/logfiles/logrotate.status
gnome-power-manager already running
HAVE_GNOME: 1
INI file: ~/tmc/configs/tormach_mill/tormach_1100-3.ini
/home/operator/tmc/configs/tormach_mill/tormach_1100-3.ini
[HOSTMOT2] BITFILE0 = 'mesa/tormach_mill3.bit'
[HOSTMOT2] BITFILE0 = /home/operator/tmc/mesa/tormach_mill3.bit
lspci -n -d 2718:5125: 04:01.0 1100: 2718:5125 (rev 01)
/home/operator/tmc/bin/mesaflash: root4755
linuxcnc ~/tmc/configs/tormach_mill/tormach_1100-3.ini
Setting enviroment to run Tormach LinuxCNC to run-in-place for development
Using command line supplied EMC2_HOME: /home/operator/tmc
EMC2_HOME = /home/operator/tmc, absolute path for /home/operator/tmc
PATH: /home/operator/tmc/python:/home/operator/tmc/bin:/home/operator/tmc/scripts:/home/operator/tmc/bin:/home/operator/teamviewer9qs:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
This script only needs to be run once per shell session.
prefix: /home/operator/tmc
exec_prefix: /home/operator/tmc
EMC2_BIN_DIR=/home/operator/tmc/bin
EMC2_RTLIB_DIR=/home/operator/tmc/rtlib
INIFILE: ~/tmc/configs/tormach_mill/tormach_1100-3.ini
~/tmc/configs/tormach_mill/tormach_1100-3.ini started with tilde
expanded INIFILE: /home/operator/tmc/configs/tormach_mill/tormach_1100-3.ini
EXTRA_ARGS:
RUN_IN_PLACE=yes
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/operator/tmc/bin
LINUXCNC_RTLIB_DIR=/home/operator/tmc/rtlib
INIVAR=inivar
HALCMD=halcmd
LINUXCNC - 2.6.0~pre
inserted into PYTHONPATH: /home/operator/tmc/configs/tormach_mill/python
Machine configuration directory is '/home/operator/tmc/configs/tormach_mill'
Machine configuration file is 'tormach_1100-3.ini'
INIFILE=/home/operator/tmc/configs/tormach_mill/tormach_1100-3.ini
PARAMETER_FILE=~/mill_data/emc.var
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
TASK=milltask
HALUI=halui
DISPLAY=tormach_mill_ui.py
EMCDISPLAY_FULLPATH: /home/operator/tmc/python/tormach_mill_ui.py
EMCDISPLAY_DIR: /home/operator/tmc/python
inserted into PYTHONPATH: /home/operator/tmc/python
NML_FILE: /home/operator/tmc/configs/common/linuxcnc.nml
User's HOME directory: /home/operator
/home/operator/tmc/scripts/check_mill_tool_table.py: tool file is /home/operator/mill_data/tool.tbl
scanning mill tool table
tool table is already up to date
Can not find -sec REDIS -var DISABLE_SERVER -num 1
DISABLE_SERVER=
Can not find -sec REDIS -var SERVER_PATH -num 1
SERVER_PATH=
SERVER_ARGS=--dir ~/mill_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
REDIS_SERVER_ARGS: --dir ~/mill_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
REDIS_SERVER_ARGS: --dir /home/operator/mill_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
Can not find -sec REDIS -var SERVER_LOG -num 1
SERVER_LOG=
Starting LinuxCNC...
Starting redis server program:
redis server started as: 'redis-server --dir /home/operator/mill_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000', logging to: /dev/null
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
module helper '/home/operator/tmc/bin/linuxcnc_module_helper' found.
Starting LinuxCNC IO program: io
io started
halcmd loadusr io started
Starting HAL User Interface program: halui
halcmd loadusr -Wn halui halui -ini /home/operator/tmc/configs/tormach_mill/tormach_1100-3.ini
Starting TASK program: milltask
task pid=1944
Starting DISPLAY program: /home/operator/tmc/python/tormach_mill_ui.py
hm2/hm2_5i25.0: Smart Serial Error: port 0 channel 1. You may see this error if the FPGA card read thread is not running. This error message will not repeat.
emcTaskInit: using builtin interpreter
1944 emc/rs274ngc/rs274ngc_pre.cc:2726: fopen: |/home/operator/v1.9.2/configs/tormach_mill/nc_subs/m400.ngc| OK
1944 emc/rs274ngc/rs274ngc_pre.cc:2726: fopen: |/home/operator/v1.9.2/configs/tormach_mill/nc_subs/m600.ngc| OK
1944 emc/rs274ngc/rs274ngc_pre.cc:2726: fopen: |/home/operator/v1.9.2/configs/tormach_mill/nc_subs/m400.ngc| OK
1944 emc/rs274ngc/rs274ngc_pre.cc:2726: fopen: |/home/operator/v1.9.2/configs/tormach_mill/nc_subs/m600.ngc| OK
Setting tolerance to 0.000000
Setting tolerance to 0.000000
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (13) Communication error
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (3) Timeout
hm2/hm2_5i25.0: Smart Serial Error: port 0 channel 0. You may see this error if the FPGA card read thread is not running. This error message will not repeat.
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.0 error = (13) Communication error
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.0 error = (3) Timeout
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (13) Communication error
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (3) Timeout
hm2/hm2_5i25.0: Smart Serial Comms Error: There have been more than 1 errors in 10 thread executions at least 200 times. See other error messages for details.
hm2/hm2_5i25.0: ***Smart Serial Port 0 will be stopped***
UI version: v1.9.2
spindle type: 0
caught attempt to change outside restricted directory: /home/operator/gcode
forcing current directory to /media
hm2/hm2_5i25.0: Smart Serial Error: port 0 channel 1. You may see this error if the FPGA card read thread is not running. This error message will not repeat.
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (13) Communication error
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (3) Timeout
hm2/hm2_5i25.0: Smart Serial Error: port 0 channel 0. You may see this error if the FPGA card read thread is not running. This error message will not repeat.
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.0 error = (13) Communication error
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.0 error = (3) Timeout
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (13) Communication error
hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (3) Timeout
hm2/hm2_5i25.0: Smart Serial Comms Error: There have been more than 1 errors in 10 thread executions at least 200 times. See other error messages for details.
hm2/hm2_5i25.0: ***Smart Serial Port 0 will be stopped***
LinuxCNC status.task_mode change was unknown is now MODE_MANUAL
LinuxCNC interp_state change was unknown is now INTERP_IDLE
status.task_state was unknown is now STATE_ESTOP
CPU usage was 0.0, is now 16.0
CPU usage was 16.0, is now 2.0
CPU usage was 2.0, is now 0.0
dmesg Cleared before launch
Warning: Spoiler!
operator@tormachpcnc:~$ dmesg
[ 392.770827] GetDesiredTssiAndCurrentTssi: BBP TSSI INFO is not ready. (BbpR47 = 0x94)
[ 392.770829] RT5390_AsicTxAlcGetAutoAgcOffset: Incorrect desired TSSI or current TSSI
[ 400.822399] GetDesiredTssiAndCurrentTssi: BBP TSSI INFO is not ready. (BbpR47 = 0x94)
[ 400.822402] RT5390_AsicTxAlcGetAutoAgcOffset: Incorrect desired TSSI or current TSSI
[ 404.851499] GetDesiredTssiAndCurrentTssi: BBP TSSI INFO is not ready. (BbpR47 = 0x94)
[ 404.851501] RT5390_AsicTxAlcGetAutoAgcOffset: Incorrect desired TSSI or current TSSI
[ 405.183126] I-pipe: Domain RTAI registered.
[ 405.183129] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 405.183130] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 405.183161] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 405.183162] PIPELINE layers:
[ 405.183163] f8615e20 9ac15d93 RTAI 200
[ 405.183164] c085cb20 0 Linux 100
[ 405.205935] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 405.206025] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 405.206028] RTAI[sched]: hard timer type/freq = APIC/6235530(Hz); default timing: periodic; linear timed lists.
[ 405.206030] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 3291692000 hz.
[ 405.206031] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 405.206063] RTAI[usi]: enabled.
[ 405.235901] RTAI[math]: loaded.
[ 405.297452] hm2: loading Mesa HostMot2 driver version 0.15
[ 405.298789] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 405.298809] hm2_pci 0000:04:01.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 405.298811] hm2_pci: discovered 5i25 at 0000:04:01.0
[ 405.299324] hm2/hm2_5i25.0: Smart Serial Firmware Version 43
[ 405.357565] Board hm2_5i25.0.7i77.0.0 Hardware Mode 0 = standard
[ 405.360621] Board hm2_5i25.0.7i77.0.0 Software Mode 0 = input_output
[ 405.363254] Board hm2_5i25.0.7i77.0.0 Software Mode 1 = io_analog
[ 405.367784] Board hm2_5i25.0.7i77.0.0 Software Mode 2 = io_analog_fieldvoltage
[ 405.373525] Board hm2_5i25.0.7i77.0.0 Software Mode 3 = io_encoder_analog_fieldvoltage
[ 405.495350] Board hm2_5i25.0.7i77.0.1 Hardware Mode 0 = standard
[ 405.498000] Board hm2_5i25.0.7i77.0.1 Software Mode 0 = analogout_enables
[ 405.597794] hm2/hm2_5i25.0: 34 I/O Pins used:
[ 405.597796] hm2/hm2_5i25.0: IO Pin 000 (P3-01): IOPort
[ 405.597797] hm2/hm2_5i25.0: IO Pin 001 (P3-14): IOPort
[ 405.597799] hm2/hm2_5i25.0: IO Pin 002 (P3-02): IOPort
[ 405.597801] hm2/hm2_5i25.0: IO Pin 003 (P3-15): Smart Serial Interface #0, pin TxData1 (Output)
[ 405.597802] hm2/hm2_5i25.0: IO Pin 004 (P3-03): Smart Serial Interface #0, pin RxData1 (Input)
[ 405.597804] hm2/hm2_5i25.0: IO Pin 005 (P3-16): Smart Serial Interface #0, pin TxData0 (Output)
[ 405.597806] hm2/hm2_5i25.0: IO Pin 006 (P3-04): Smart Serial Interface #0, pin RxData0 (Input)
[ 405.597807] hm2/hm2_5i25.0: IO Pin 007 (P3-17): Muxed Encoder Select #0, pin Mux Select 0 (Output)
[ 405.597809] hm2/hm2_5i25.0: IO Pin 008 (P3-05): Muxed Encoder #0, pin Muxed A (Input)
[ 405.597810] hm2/hm2_5i25.0: IO Pin 009 (P3-06): Muxed Encoder #0, pin Muxed B (Input)
[ 405.597812] hm2/hm2_5i25.0: IO Pin 010 (P3-07): Muxed Encoder #0, pin Muxed Index (Input)
[ 405.597813] hm2/hm2_5i25.0: IO Pin 011 (P3-08): Muxed Encoder #1, pin Muxed A (Input)
[ 405.597815] hm2/hm2_5i25.0: IO Pin 012 (P3-09): Muxed Encoder #1, pin Muxed B (Input)
[ 405.597816] hm2/hm2_5i25.0: IO Pin 013 (P3-10): Muxed Encoder #1, pin Muxed Index (Input)
[ 405.597818] hm2/hm2_5i25.0: IO Pin 014 (P3-11): Muxed Encoder #2, pin Muxed A (Input)
[ 405.597819] hm2/hm2_5i25.0: IO Pin 015 (P3-12): Muxed Encoder #2, pin Muxed B (Input)
[ 405.597821] hm2/hm2_5i25.0: IO Pin 016 (P3-13): Muxed Encoder #2, pin Muxed Index (Input)
[ 405.597822] hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort
[ 405.597823] hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort
[ 405.597824] hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort
[ 405.597825] hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
[ 405.597826] hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort
[ 405.597828] hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort
[ 405.597829] hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort
[ 405.597830] hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
[ 405.597831] hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort
[ 405.597832] hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort
[ 405.597833] hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort
[ 405.597834] hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort
[ 405.597835] hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort
[ 405.597836] hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort
[ 405.597837] hm2/hm2_5i25.0: IO Pin 031 (P2-11): IOPort
[ 405.597838] hm2/hm2_5i25.0: IO Pin 032 (P2-12): IOPort
[ 405.597840] hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
[ 405.597865] hm2/hm2_5i25.0: registered
[ 405.597867] hm2_5i25.0: initialized AnyIO board at 0000:04:01.0
[ 405.637195] hm2/hm2_5i25.0: Watchdog has bit! (set the .has-bit pin to False to resume)
[ 405.637197] hm2/hm2_5i25.0: Smart Serial Error: port 0 channel 1. You may see this error if the FPGA card read thread is not running. This error message will not repeat.
[ 405.637198] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (13) Communication error
[ 405.637200] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (3) Timeout
[ 405.638190] hm2/hm2_5i25.0: Smart Serial Error: port 0 channel 0. You may see this error if the FPGA card read thread is not running. This error message will not repeat.
[ 405.638191] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.0 error = (13) Communication error
[ 405.638192] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.0 error = (3) Timeout
[ 405.638193] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (13) Communication error
[ 405.638195] hm2/hm2_5i25.0: Smart serial card hm2_5i25.0.7i77.0.1 error = (3) Timeout
[ 405.659180] hm2/hm2_5i25.0: Smart Serial Comms Error: There have been more than 1 errors in 10 thread executions at least 200 times. See other error messages for details.
[ 405.659182] hm2/hm2_5i25.0: ***Smart Serial Port 0 will be stopped***
[ 421.061512] GetDesiredTssiAndCurrentTssi: BBP TSSI INFO is not ready. (BbpR47 = 0x94)
[ 421.061514] RT5390_AsicTxAlcGetAutoAgcOffset: Incorrect desired TSSI or current TSSI
[ 425.084236] GetDesiredTssiAndCurrentTssi: BBP TSSI INFO is not ready. (BbpR47 = 0x94)
[ 425.084238] RT5390_AsicTxAlcGetAutoAgcOffset: Incorrect desired TSSI or current TSSI
Getting a bit closer now... I have my hardware running with Linuxcnc 2.7.4 just fine so my board is not flashed. Just something I have not caught yet.
Thanks for helping me out! I still have a lot of work left to connect all my signals to pathpilot. So far I just have the UI up, obliviously nothing is working
EDIT:
Just noticed this:
[ 405.637195] hm2/hm2_5i25.0: Watchdog has bit!
That would explain the read error.. now to figure that out.
Last edit: 17 Apr 2016 14:09 by cncnoob1979.
Please Log in or Create an account to join the conversation.
- cncnoob1979
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 403
- Thank you received: 75
18 Apr 2016 22:29 - 18 Apr 2016 22:41 #73571
by cncnoob1979
Replied by cncnoob1979 on topic Compiling RTIA .comp in Pathpilot
I have most of PP working, now Im trying to build this HY_VFD component. These are the errors Im getting.. any suggestions?
Edit: I have linuxcnc 2.5.0 dev with build essential.
I'm thinking I need to put the hy_vfd.c elsewhere or I need to download something else.
I've never attempted this before.
Edit: I have linuxcnc 2.5.0 dev with build essential.
I'm thinking I need to put the hy_vfd.c elsewhere or I need to download something else.
I've never attempted this before.
desktop:~/huanyang-vfd$ sudo comp --install hy_vfd.c
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-2.6.32-122-rtai SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-122-rtai'
CC [M] /tmp/tmpl5K9eQ/hy_vfd.o
/tmp/tmpl5K9eQ/hy_vfd.c:24:2: error: #error This is intended as a userspace component only.
/tmp/tmpl5K9eQ/hy_vfd.c:27:19: error: stdio.h: No such file or directory
/tmp/tmpl5K9eQ/hy_vfd.c:28:20: error: unistd.h: No such file or directory
/tmp/tmpl5K9eQ/hy_vfd.c:29:18: error: time.h: No such file or directory
/tmp/tmpl5K9eQ/hy_vfd.c:30:20: error: string.h: No such file or directory
/tmp/tmpl5K9eQ/hy_vfd.c:31:20: error: stdlib.h: No such file or directory
/tmp/tmpl5K9eQ/hy_vfd.c:32:20: error: signal.h: No such file or directory
/tmp/tmpl5K9eQ/hy_vfd.c:33:19: error: errno.h: No such file or directory
/tmp/tmpl5K9eQ/hy_vfd.c:34:20: error: getopt.h: No such file or directory
/tmp/tmpl5K9eQ/hy_vfd.c:35:18: error: math.h: No such file or directory
In file included from /tmp/tmpl5K9eQ/hy_vfd.c:38:
/home/stacie/huanyang-vfd/hy_comm.h:31:20: error: stdint.h: No such file or directory
/home/stacie/huanyang-vfd/hy_comm.h:32:21: error: termios.h: No such file or directory
/home/stacie/huanyang-vfd/hy_comm.h:33:20: error: limits.h: No such file or directory
In file included from /tmp/tmpl5K9eQ/hy_vfd.c:38:
/home/stacie/huanyang-vfd/hy_comm.h:95: error: ‘PATH_MAX’ undeclared here (not in a function)
/home/stacie/huanyang-vfd/hy_comm.h:101: error: field ‘old_tios’ has incomplete type
/tmp/tmpl5K9eQ/hy_vfd.c:147: error: array type has incomplete element type
/tmp/tmpl5K9eQ/hy_vfd.c: In function ‘usage’:
/tmp/tmpl5K9eQ/hy_vfd.c:190: error: implicit declaration of function ‘printf’
/tmp/tmpl5K9eQ/hy_vfd.c: In function ‘read_setup’:
/tmp/tmpl5K9eQ/hy_vfd.c:467: error: implicit declaration of function ‘fflush’
/tmp/tmpl5K9eQ/hy_vfd.c: In function ‘read_data’:
/tmp/tmpl5K9eQ/hy_vfd.c:513: error: implicit declaration of function ‘fabs’
/tmp/tmpl5K9eQ/hy_vfd.c: In function ‘main’:
/tmp/tmpl5K9eQ/hy_vfd.c:629: error: implicit declaration of function ‘getopt_long’
/tmp/tmpl5K9eQ/hy_vfd.c:632: error: ‘optarg’ undeclared (first use in this function)
/tmp/tmpl5K9eQ/hy_vfd.c:632: error: (Each undeclared identifier is reported only once
/tmp/tmpl5K9eQ/hy_vfd.c:632: error: for each function it appears in.)
/tmp/tmpl5K9eQ/hy_vfd.c:638: error: implicit declaration of function ‘atoi’
/tmp/tmpl5K9eQ/hy_vfd.c:642: error: ‘FILENAME_MAX’ undeclared (first use in this function)
/tmp/tmpl5K9eQ/hy_vfd.c:647: error: implicit declaration of function ‘strdup’
/tmp/tmpl5K9eQ/hy_vfd.c:688: error: implicit declaration of function ‘strtol’
/tmp/tmpl5K9eQ/hy_vfd.c:698: error: implicit declaration of function ‘strtof’
/tmp/tmpl5K9eQ/hy_vfd.c:699: error: ‘UINT16_MAX’ undeclared (first use in this function)
/tmp/tmpl5K9eQ/hy_vfd.c:745: error: implicit declaration of function ‘exit’
/tmp/tmpl5K9eQ/hy_vfd.c:752: error: implicit declaration of function ‘getpid’
/tmp/tmpl5K9eQ/hy_vfd.c:756: error: implicit declaration of function ‘signal’
/tmp/tmpl5K9eQ/hy_vfd.c:923: error: implicit declaration of function ‘usleep’
/tmp/tmpl5K9eQ/hy_vfd.c:934: error: implicit declaration of function ‘fprintf’
/tmp/tmpl5K9eQ/hy_vfd.c:934: error: ‘stderr’ undeclared (first use in this function)
/tmp/tmpl5K9eQ/hy_vfd.c:976: error: implicit declaration of function ‘nanosleep’
make[2]: *** [/tmp/tmpl5K9eQ/hy_vfd.o] Error 1
make[1]: *** [_module_/tmp/tmpl5K9eQ] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-122-rtai'
make: *** [modules] Error
Last edit: 18 Apr 2016 22:41 by cncnoob1979.
Please Log in or Create an account to join the conversation.
19 Apr 2016 00:46 - 19 Apr 2016 00:47 #73575
by PCW
Replied by PCW on topic Compiling RTIA .comp in Pathpilot
Not sure about the other errors, but the first error gives you a clue, so
sudo comp -- install --userspace hy_vfd.c
may get you further
sudo comp -- install --userspace hy_vfd.c
may get you further
Last edit: 19 Apr 2016 00:47 by PCW.
Please Log in or Create an account to join the conversation.
- cncnoob1979
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 403
- Thank you received: 75
19 Apr 2016 00:55 #73576
by cncnoob1979
Replied by cncnoob1979 on topic Compiling RTIA .comp in Pathpilot
Thanks PCW!
I couldn't get it to compile so I went to the cnc zone forums and got the 2.5.0 linuxcnc version. I have it pulling up the uspace component now.
I like the PP interface but with such an old linuxcnc build. It's really rough downgrading.
My linux mint 17.3 with gmoccapy is flawless.
I couldn't get it to compile so I went to the cnc zone forums and got the 2.5.0 linuxcnc version. I have it pulling up the uspace component now.
I like the PP interface but with such an old linuxcnc build. It's really rough downgrading.
My linux mint 17.3 with gmoccapy is flawless.
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.081 seconds