I saw it mentioned on http://wiki.linuxcnc.org/cgi-bin/wiki.pl?VFD_Modbus
Which just said "I know nothing about Classic Ladder"- basically I don't know anything either. The wj200_vfd.comp path looked shorter. I was not impressed with the way Mach3 ran "brains". That was super-simplistic and all dressed up with a GUI for non-programmers- I'd rather just write code. Danny On 3/6/2016 10:13 AM, Dave Cole wrote: > FYI - You do know that Classic Ladder can write and read from your drive > in a manner similar to the way that Mach3 did, right ? > > Dave > > On 3/6/2016 12:04 AM, dan...@austin.rr.com wrote: >> Oh yeah: >> >> ls -la /home/atxhacker/linuxcnc-2.7.4/bin/ >> >> total 12384 >> drwxr-xr-x 2 atxhacker atxhacker 4096 Mar 5 22:54 . >> drwxr-xr-x 17 atxhacker atxhacker 4096 Feb 8 06:13 .. >> -rwxr-xr-x 1 atxhacker atxhacker 3358 Mar 2 00:11 5axisgui >> -rwxr-xr-x 1 atxhacker atxhacker 128301 Mar 2 00:11 axis >> -rwxr-xr-x 1 atxhacker atxhacker 3204 Mar 2 00:11 axis-remote >> -rwxr-xr-x 1 atxhacker atxhacker 595611 Mar 5 22:47 classicladder >> -rwxr-xr-x 1 atxhacker atxhacker 2659 Mar 2 00:11 debuglevel >> -rwxr-xr-x 1 atxhacker atxhacker 5770 Mar 1 23:58 elbpcom >> -rwxr-xr-x 1 atxhacker atxhacker 34595 Mar 5 22:54 genserkins >> -rwxr-xr-x 1 atxhacker atxhacker 11674 Mar 2 00:11 gladevcp >> -rwxr-xr-x 1 atxhacker atxhacker 202787 Mar 2 00:12 gmoccapy >> -rwxr-xr-x 1 atxhacker atxhacker 1332 Mar 2 00:12 gremlin >> -rwxr-xr-x 1 atxhacker atxhacker 77 Mar 2 00:11 gremlin_view >> -rwxr-xr-x 1 atxhacker atxhacker 31695 Mar 3 21:18 gs2_vfd >> -rwxr-xr-x 1 atxhacker atxhacker 161755 Mar 2 00:12 gscreen >> -rwxr-xr-x 1 atxhacker atxhacker 170370 Mar 5 22:48 halcmd >> -rwxr-xr-x 1 atxhacker atxhacker 54059 Mar 1 23:58 halcompile >> -rwxr-xr-x 1 atxhacker atxhacker 7730 Mar 2 00:11 hal_input >> -rwxr-xr-x 1 atxhacker atxhacker 2465 Mar 2 00:11 hal_manualtoolchange >> -rwxr-xr-x 1 atxhacker atxhacker 74196 Mar 5 22:48 halmeter >> -rwxr-xr-x 1 atxhacker atxhacker 108772 Mar 5 22:48 halrmt >> -rwxr-xr-x 1 atxhacker atxhacker 16451 Mar 3 21:18 halsampler >> -rwxr-xr-x 1 atxhacker atxhacker 313352 Mar 5 22:48 halscope >> -rwxr-xr-x 1 atxhacker atxhacker 78 Mar 2 00:11 halshow >> -rwxr-xr-x 1 atxhacker atxhacker 16662 Mar 3 21:18 halstreamer >> -rwxr-xr-x 1 atxhacker atxhacker 211041 Mar 5 22:48 halui >> -rwxr-xr-x 1 atxhacker atxhacker 13174 Mar 2 00:11 hbmgui >> -rwxr-xr-x 1 atxhacker atxhacker 6313 Mar 2 00:11 hexagui >> -rwxr-xr-x 1 atxhacker atxhacker 47686 Mar 3 21:18 hy_vfd >> -rwxr-xr-x 1 atxhacker atxhacker 26836 Mar 2 00:11 image-to-gcode >> -rwxr-xr-x 1 atxhacker atxhacker 15265 Mar 5 22:47 inivar >> -rwxr-xr-x 1 atxhacker atxhacker 182713 Mar 5 22:54 io >> -rwxr-xr-x 1 atxhacker atxhacker 189240 Mar 5 22:54 iov2 >> -rwxr-xr-x 1 atxhacker atxhacker 200501 Mar 5 22:48 keystick >> -rwxr-xr-x 1 atxhacker atxhacker 2729 Mar 2 00:11 lintini >> -rwxr-xr-x 1 atxhacker atxhacker 259421 Mar 5 22:48 linuxcnclcd >> -rwxr-xr-x 1 atxhacker atxhacker 14654 Mar 5 22:54 linuxcnc_module_helper >> -rwxr-xr-x 1 atxhacker atxhacker 273576 Mar 5 22:48 linuxcncrsh >> -rwxr-xr-x 1 atxhacker atxhacker 137167 Mar 5 22:48 linuxcncsvr >> -rwxr-xr-x 1 atxhacker atxhacker 7535 Mar 2 00:11 linuxcnctop >> -rwxr-xr-x 1 atxhacker atxhacker 4437 Mar 2 00:11 maho600gui >> -rwxr-xr-x 1 atxhacker atxhacker 5032 Mar 2 00:11 max5gui >> -rwxr-xr-x 1 atxhacker atxhacker 62501 Mar 5 22:47 mb2hal >> -rwxr-xr-x 1 atxhacker atxhacker 1596 Mar 2 00:11 mdi >> -rwxr-xr-x 1 atxhacker atxhacker 3780992 Mar 5 22:54 milltask >> -rwxr-xr-x 1 atxhacker atxhacker 35254 Mar 5 22:54 motion-logger >> -rwxr-xr-x 1 atxhacker atxhacker 101 Mar 2 00:11 ngcgui >> -rwsr-x--- 1 root atxhacker 34014 Mar 1 23:58 pci_read >> -rwsr-x--- 1 root atxhacker 33978 Mar 1 23:58 pci_write >> -rwxr-xr-x 1 atxhacker atxhacker 297892 Mar 2 00:11 pncconf >> -rwxr-xr-x 1 atxhacker atxhacker 187 Oct 24 07:52 profile_axis >> -rwxr-xr-x 1 atxhacker atxhacker 5281 Mar 2 00:11 puma560gui >> -rwxr-xr-x 1 atxhacker atxhacker 4606 Mar 2 00:11 pumagui >> -rwxr-xr-x 1 atxhacker atxhacker 65 Mar 2 00:11 pyngcgui >> -rwxr-xr-x 1 atxhacker atxhacker 3148 Mar 2 00:11 pyvcp >> -rwxr-xr-x 1 atxhacker atxhacker 3311487 Mar 5 22:54 rs274 >> -rwsr-x--- 1 root atxhacker 460391 Mar 5 22:47 rtapi_app >> -rwxr-xr-x 1 atxhacker atxhacker 5697 Mar 2 00:11 scaragui >> -rwxr-xr-x 1 atxhacker atxhacker 337341 Mar 5 22:48 schedrmt >> -rwxr-xr-x 1 atxhacker atxhacker 19225 Mar 3 21:18 shuttlexpress >> -rwxr-xr-x 1 atxhacker atxhacker 64769 Mar 2 00:11 stepconf >> -rwxr-xr-x 1 atxhacker atxhacker 2485 Mar 2 00:11 teach-in >> -rwxr-xr-x 1 atxhacker atxhacker 22296 Mar 1 23:57 test_rtapi_vsnprintf >> -rwxr-xr-x 1 atxhacker atxhacker 95 Mar 2 00:11 tooledit >> -rwxr-xr-x 1 atxhacker atxhacker 38457 Mar 2 00:11 touchy >> -rwxr-xr-x 1 atxhacker atxhacker 2042 Mar 2 00:11 tracking-test >> -rwxr-xr-x 1 atxhacker atxhacker 30852 Mar 5 22:48 vfdb_vfd >> -rwxr-xr-x 1 atxhacker atxhacker 35495 Mar 5 22:47 vfs11_vfd >> -rwxr-xr-x 1 atxhacker atxhacker 21570 Mar 5 22:48 wj200_vfd >> -rwxr-xr-x 1 atxhacker atxhacker 21603 Mar 5 22:48 x200_vfd >> -rwxr-xr-x 1 atxhacker atxhacker 47619 Mar 5 22:47 xhc-hb04 >> -rwxr-xr-x 1 atxhacker atxhacker 282573 Mar 5 22:48 xlinuxcnc >> -rwxr-xr-x 1 atxhacker atxhacker 4263 Mar 1 23:29 yapps >> >> >> Danny >> >> ---- dan...@austin.rr.com wrote: >>> I tried the sudo chown. Not sure what you meant by "the one with .git in >>> it", I did it from the directory above the src. >>> >>> I got some errors and redid ./configure --with-realtime=uspace >>> >>> "make" did a lot of stuff, but ended with: >>> Linking python module gcode.so >>> g++ -L/home/atxhacker/linuxcnc-2.7.4/lib >>> -Wl,-rpath,/home/atxhacker/linuxcnc-2.7.4/lib -shared -o >>> ../lib/python/gcode.so objects/emc/rs274ngc/gcodemodule.o >>> ../lib/librs274.so.0 -lstdc++ >>> Linking ../rtlib/abs.so >>> ld: no input files >>> make: *** [../rtlib/abs.so] Error 1 >>> >>> then I did "sudo make setuid" >>> hal/user_comps/vfdb_vfd/Submakefile:11: warning: overriding commands for >>> target `../bin/vfdb_vfd' >>> hal/user_comps/vfdb_vfd/Submakefile:11: warning: ignoring old commands for >>> target `../bin/vfdb_vfd' >>> chown root ../bin/rtapi_app >>> chmod 4750 ../bin/rtapi_app >>> >>> >>> source ../scripts/rip-environment >>> This script only needs to be run once per shell session. >>> >>> type "linuxcnc" , loads, lets me select a HAL file, then: >>> LINUXCNC - 2.7.4 >>> Machine configuration directory is '/home/atxhacker/linuxcnc/configs' >>> Machine configuration file is '7i92_spid.ini' >>> Starting LinuxCNC... >>> inifile: warning: File contains DOS-style line endings. >>> emc/iotask/ioControl.cc 768: can't load tool table. >>> Found file(REL): ./7i92_spid.hal >>> hal_lib: dlopen: /home/atxhacker/linuxcnc-2.7.4/rtlib/hal_lib.so: cannot >>> open shared object file: No such file or directory >>> Note: Using POSIX realtime >>> gantrykins: dlopen: /home/atxhacker/linuxcnc-2.7.4/rtlib/gantrykins.so: >>> cannot open shared object file: No such file or directory >>> ./7i92_spid.hal:31: waitpid failed >>> /home/atxhacker/linuxcnc-2.7.4/bin/rtapi_app gantrykins >>> ./7i92_spid.hal:31: /home/atxhacker/linuxcnc-2.7.4/bin/rtapi_app exited >>> without becoming ready >>> ./7i92_spid.hal:31: insmod for gantrykins failed, returned -1 >>> Shutting down and cleaning up LinuxCNC... >>> hal_lib: dlopen: /home/atxhacker/linuxcnc-2.7.4/rtlib/hal_lib.so: cannot >>> open shared object file: No such file or directory >>> Note: Using POSIX realtime >>> LinuxCNC terminated with an error. You can find more information in the >>> log: >>> /home/atxhacker/linuxcnc_debug.txt >>> and >>> /home/atxhacker/linuxcnc_print.txt >>> as well as in the output of the shell command 'dmesg' and in the terminal >>> >>> >>> Danny >>> >>> ---- Sebastian Kuzminsky <s...@highlab.com> wrote: >>>> On 03/03/2016 09:21 PM, dan...@austin.rr.com wrote: >>>>> No joy. I have the RT-preempt (have a 7i92 ethernet control card, >>>>> does not handle the modbus though). >>>>> >>>>> uname -a Linux localhost 3.2.0-4-rt-686-pae #1 SMP PREEMPT RT Debian >>>>> 3.2.73-2+deb7u2 i686 GNU/Linux >>>> Great, this helps illuminate your situation. >>>> >>>> >>>>> Sudo was required for some of these. Made errors without. >>>>> >>>>> cd src ./configure --with-realtime=uspace ./configure: line 2025: >>>>> config.log: Permission denied ./configure: line 2035: config.log: >>>>> Permission denied >>>> config.log is produced by the configure script. I bet you ran configure >>>> as root earlier and it created config.log owned by root, and now when >>>> you try to run configure as you (non-root) it won't let you overwrite >>>> root's config.log. >>>> >>>> Your options are to either chown all the incorrectly root-owned files to >>>> be owned by you (this would be my preference), or live as root in this >>>> directory from now on. The chown could be done like this (in the root >>>> directory of the git checkout, the one with .git/ in it): >>>> >>>> sudo chown -R $(id -u).$(id -g) . >>>> >>>> >>>>> ok.... well then... sudo ./configure --with-realtime=uspace >>>>> >>>>> sudo make >>>>> sudo make setuid >>>>> source ../scripts/rip-environment >>>>> which x200_vfd >>>>> /home/atxhacker/linuxcnc-2.7.4/bin/x200_vfd >>>> Yay, this is good! >>>> >>>> >>>>> Applications Menu-> Linuxcnc -> select HAL file: >>>>> ./7i92_spid.hal:313: execv(x200_vfd): No such file or directory >>>> Ok, this won't work because the GUI menu runs in a different context >>>> that hasn't seen your "source ../scripts/rip-environment", so it doesn't >>>> know to look in /home/atxhacker/linuxcnc-2.7.4/bin. >>>> >>>> You then tried this, which is the right way to go: >>>> >>>> >>>>> cd ~/linuxcnc-2.7.4/bin >>>>> linuxcnc -> select HAL file: >>>>> ./7i92_spid.hal:31: execv(/home/atxhacker/linuxcnc-2.7.4/bin/rtapi_app): >>>>> Permission denied >>>>> ./7i92_spid.hal:31: waitpid failed >>>>> /home/atxhacker/linuxcnc-2.7.4/bin/rtapi_app gantrykins >>>> You're super close. I bet this is probably fallout from running the >>>> build as root up above. If you do the chown i suggested, then this >>>> should start working. >>>> >>>> If it doesn't, run "ls -la >>>> /home/atxhacker/linuxcnc-2.7.4/bin/" and paste the output into an email >>>> and we'll figure it out. >>>> >>>> >>>>> I did try "sudo linuxcnc", but then my HAL file isn't there, only >>>>> "Sample Configurations". The whole "My Configurations" tab is gone? >>>> Right, because linuxcnc looks for My Configurations in your home >>>> directory, and root has a different home directory than you do. Run as >>>> you, not as root. Linuxcnc has setuid helpers that become root >>>> automatically in the few places where it's needed. >>>> >>>> >>>> -- >>>> Sebastian Kuzminsky >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Emc-users mailing list >>> Emc-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/emc-users >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Emc-users mailing list >> Emc-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users