Vista CNC pendent install challenges
09 Feb 2017 23:01 - 10 Feb 2017 20:53 #87725
by Jake
Vista CNC pendent install challenges was created by Jake
I am installing my new pendant, I am getting an error
I for the life of my can not remember how to copy the error message at the moment.
How do I copy it?
Do you have any ideas of where to go from here?
Thanks!
vc-p4s.hal warning has dos style endings
libusbx couldnt open usb device......permission denied
libusbx requires write access to usb device nodes
error could not insert module usr/realtime...............
I for the life of my can not remember how to copy the error message at the moment.
How do I copy it?
Do you have any ideas of where to go from here?
Thanks!
Last edit: 10 Feb 2017 20:53 by Jake.
Please Log in or Create an account to join the conversation.
10 Feb 2017 14:38 #87765
by Jake
Replied by Jake on topic Vista CNC pendent install challenges "couldnt open usb device permission denied"
I have gotten past the permission challenges,
now I have the error of
vc-p4s.hal:2 warning file contains dos style line endings
vc-p4s.hal: exit value: 1
vc-p4s.hal: insmod for and2 failed, returned -1
Any ideas what is wrong with these lines?
Thanks!
now I have the error of
vc-p4s.hal:2 warning file contains dos style line endings
vc-p4s.hal: exit value: 1
vc-p4s.hal: insmod for and2 failed, returned -1
# 0---vc-p4s Control Pendant
loadusr -W vc-p4s
loadrt and2 names=and2.vc
addf and2.vc servo-thread
Any ideas what is wrong with these lines?
Thanks!
Please Log in or Create an account to join the conversation.
10 Feb 2017 21:03 #87778
by Jake
Replied by Jake on topic Vista CNC pendent install challenges "couldnt open usb device permission denied"
I got the DOS endings taken care of, gedit and saving the file correctly took care of that.
I removed the "and2" since I have "loadrt and2" in my load.hal file but I still have an error
I removed the "and2" since I have "loadrt and2" in my load.hal file but I still have an error
loadrt and2 names=and2.vc
loadrt names=and2.vc
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
11 Feb 2017 00:55 #87788
by tommylight
That will not work, you need to have that in a single line, so you can add it to the existing line. That implies that if you already have 1 and2 loaded it automaticly gets the name "and2.0" and that is the name used in the rest of the hal file. Now to add 2 more as you need them it should be like this
Loadrt and2 names=and2.0,and2.1,vc
Also add them to the servo thread, and when connecting other things to them use the "and2.1" and "vc" names
Replied by tommylight on topic Vista CNC pendent install challenges "couldnt open usb device permission denied"
I got the DOS endings taken care of, gedit and saving the file correctly took care of that.
I removed the "and2" since I have "loadrt and2" in my load.hal file but I still have an error
loadrt and2 names=and2.vc
loadrt names=and2.vc
That will not work, you need to have that in a single line, so you can add it to the existing line. That implies that if you already have 1 and2 loaded it automaticly gets the name "and2.0" and that is the name used in the rest of the hal file. Now to add 2 more as you need them it should be like this
Loadrt and2 names=and2.0,and2.1,vc
Also add them to the servo thread, and when connecting other things to them use the "and2.1" and "vc" names
Please Log in or Create an account to join the conversation.
11 Feb 2017 03:59 #87795
by Jake
Replied by Jake on topic Vista CNC pendent install challenges "couldnt open usb device permission denied"
I changed my and2 to the2.2 and took off the .vc through the rest of the hal file. It gets past the first few lines but now I am at an error on line 99 halui.mdi-command-06 does not exist. I have been reading some other pendant threads that have had this problem, but can not seem to find exactly what they did to fix it.
99 is the second line
# 0---vc-p4s Control Pendant HURCO BMC30 02/10/2017
loadusr -W vc-p4s
#loadrt and2 names=and2.2
addf and2.2 servo-thread
net zero-x vc-p4s.zero-x => halui.mdi-command-05
net zero-y vc-p4s.zero-y => halui.mdi-command-06
net zero-z vc-p4s.zero-z => halui.mdi-command-07
99 is the second line
Please Log in or Create an account to join the conversation.
11 Feb 2017 04:26 - 11 Feb 2017 04:31 #87797
by Jake
Replied by Jake on topic Vista CNC pendent install challenges "couldnt open usb device permission denied"
I added a enough lines to MDI_COMMAND in the ini file and that made that happy. Now I have upset my ESTOP logic somewhere, LCNC will open, just cant get it out of ESTOP now.
I guess I need to figure out how to make the pendent estop and my estop happy.
PPMC ESTOP
P4S ESTOP
Any ideas on making them both happy?
Thanks@!
I guess I need to figure out how to make the pendent estop and my estop happy.
PPMC ESTOP
#ESTOP
net ppmcEstop ppmc.0.din.estop.in
net ppmcEstop and2.0.in0
net EstopOkIn estop-latch.0.fault-in
net EstopOkIn and2.0.out
net EstopOkOut ppmc.0.dout.07.out
net EstopOkOut ppmc.0.dout.Estop.out
net EstopOkOut iocontrol.0.emc-enable-in
net EstopOkOut estop-latch.0.ok-out
net EstopOkOut and2.0.in1
net emc-estop-out iocontrol.0.user-enable-out
net emc-estop-out estop-latch.0.ok-in
net emc-estop-reset iocontrol.0.user-request-enable
net emc-estop-reset estop-latch.0.reset
P4S ESTOP
# 13---E-STOP
net estop vc-p4s.estop.activate => halui.estop.activate
net reset vc-p4s.estop.reset => halui.estop.reset
net estop-is-activated halui.estop.is-activated => vc-p4s.estop.is-activated
Any ideas on making them both happy?
Thanks@!
Last edit: 11 Feb 2017 04:31 by Jake.
Please Log in or Create an account to join the conversation.
11 Feb 2017 05:09 #87798
by Jake
Replied by Jake on topic Vista CNC pendent install challenges "couldnt open usb device permission denied"
I added a enough lines to MDI_COMMAND in the ini file and that made that happy. Now I have upset my ESTOP logic somewhere, LCNC will open, just cant get it out of ESTOP now.
I guess I need to figure out how to make the pendent estop and my estop happy.
PPMC ESTOP#ESTOP net ppmcEstop ppmc.0.din.estop.in net ppmcEstop and2.0.in0 net EstopOkIn estop-latch.0.fault-in net EstopOkIn and2.0.out net EstopOkOut ppmc.0.dout.07.out net EstopOkOut ppmc.0.dout.Estop.out net EstopOkOut iocontrol.0.emc-enable-in net EstopOkOut estop-latch.0.ok-out net EstopOkOut and2.0.in1 net emc-estop-out iocontrol.0.user-enable-out net emc-estop-out estop-latch.0.ok-in net emc-estop-reset iocontrol.0.user-request-enable net emc-estop-reset estop-latch.0.reset
P4S ESTOP
# 13---E-STOP net estop vc-p4s.estop.activate => halui.estop.activate net reset vc-p4s.estop.reset => halui.estop.reset net estop-is-activated halui.estop.is-activated => vc-p4s.estop.is-activated
I think something in my and2 has upset it.
out of the pendant.hal# 0---vc-p4s Control Pendant HURCO BMC30 02/10/2017 loadusr -W vc-p4s loadrt and2 names=and2.2 addf and2.2 servo-thread
out of my load.hal# make some signals for the scope for tuning. loadrt ddt count=5 loadrt estop_latch count=1 loadrt and2 count=5 loadrt near count=5 loadrt lowpass count=5 loadrt conv_s32_float count=5 loadrt mult2 count=5 loadrt abs count=5 loadrt lut5 count=2 addf and2.0 servo-thread addf and2.1 servo-thread #addf and2.2 servo-thread addf near.1 servo-thread
out of the io.hal
#ESTOP net ppmcEstop ppmc.0.din.estop.in net ppmcEstop and2.0.in0 net EstopOkIn estop-latch.0.fault-in net EstopOkIn and2.0.out net EstopOkOut ppmc.0.dout.07.out net EstopOkOut ppmc.0.dout.Estop.out net EstopOkOut iocontrol.0.emc-enable-in net EstopOkOut estop-latch.0.ok-out net EstopOkOut and2.0.in1 net emc-estop-out iocontrol.0.user-enable-out net emc-estop-out estop-latch.0.ok-in net emc-estop-reset iocontrol.0.user-request-enable net emc-estop-reset estop-latch.0.reset
Any ideas on making them both happy? LCNC will start, I just cant get it out of estop now. The hardwire estop chain is happy, just not the software one.
Thanks@!
Please Log in or Create an account to join the conversation.
26 Jun 2017 18:11 #94997
by 10K
Replied by 10K on topic Vista CNC pendent install challenges
Sorry no one answered your thread at the beginning of the year!
I'm having the same problem with my VistaCNC pendant. It won't let LinuxCNC run after you hit the power button. It's this line in the INI file that's doing it:
Did you ever figure this out?
I do know the answer to the DOS-style line endings. It's just a warning, but I had the same problem. Install tofrodos
and then run this command
I'm having the same problem with my VistaCNC pendant. It won't let LinuxCNC run after you hit the power button. It's this line in the INI file that's doing it:
net estop vc-p2s.estop.activate => halui.estop.activate
Did you ever figure this out?
I do know the answer to the DOS-style line endings. It's just a warning, but I had the same problem. Install tofrodos
sudo apt-get install tofrodos
and then run this command
fromdos (filename)
Please Log in or Create an account to join the conversation.
27 Jun 2017 15:54 #95057
by Jake
Replied by Jake on topic Vista CNC pendent install challenges
Thanks 10K !
I had figured it out. Since I have Pico PPMC, I moved one of the lines in the estop chain down a line, the PPMC was not happy with it. It wants its Estop line to come before anything else, as its way to pet the watchdog.
I did use the editor in Debian and saved all the files as Linux endings and it solved it also.
I had figured it out. Since I have Pico PPMC, I moved one of the lines in the estop chain down a line, the PPMC was not happy with it. It wants its Estop line to come before anything else, as its way to pet the watchdog.
I did use the editor in Debian and saved all the files as Linux endings and it solved it also.
Please Log in or Create an account to join the conversation.
27 Jun 2017 16:22 #95059
by 10K
Replied by 10K on topic Vista CNC pendent install challenges
Thanks for the reply! Glad you got your system working.
Could you be more specific on the changes you made? Were they to the pendant HAL or your machine HAL file? Which estop command was the problem? I have estop net assignments in both the pendant and machine HAL files.
machine HAL
pendant HAL
Could you be more specific on the changes you made? Were they to the pendant HAL or your machine HAL file? Which estop command was the problem? I have estop net assignments in both the pendant and machine HAL files.
machine HAL
net estop-ext <= hm2_7i92.0.gpio.013.in_not
net estop-out <= iocontrol.0.user-enable-out
net estop-ext => iocontrol.0.emc-enable-in
pendant HAL
net estop vc-p2s.estop.activate => halui.estop.activate
net reset vc-p2s.estop.reset => halui.estop.reset
net estop-is-activated halui.estop.is-activated => vc-p2s.estop.is-activated
Please Log in or Create an account to join the conversation.
Time to create page: 0.091 seconds