- Posts: 282
- Thank you received: 0
Vista CNC pendent install challenges
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!
Please Log in to join the conversation.
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!
Please Log in to join the conversation.
I removed the "and2" since I have "loadrt and2" in my load.hal file but I still have an error
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
Jake wrote: 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
Code:loadrt and2 names=and2.vc
Code: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 to join the conversation.
99 is the second line
Please Log in to join the conversation.
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@!
Please Log in to join the conversation.
Jake wrote: 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 ESTOPCode:#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
Code:# 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.halCode:# 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.halCode:# 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
Code:#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 to join the conversation.
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
Please Log in to join the conversation.
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 to join the conversation.
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
Please Log in to join the conversation.
