Re: emc




Charles

Wow! Another running system.  

1. What are the specifics of the PC you have it loaded on?
2. What EMC download did you or your brother use.
3. What realtime file (presume rtlinux-2.0) did you download?

 (other comments mixed in)

On Mon, 28 Aug 2000, Charles Hopkins wrote:
> Ok fellows,  I have linux 6.1 with EMC installed.  My brother set the box up
> and I can use the demo in X.

What demo.  What does it look like.

> Which environment should I be in?  When I try to start TkEmc, I need to know
> what program to run it with.  I don't want to mess this up before I get
> started.
> 
> I know this is very elementary, but is there some start up procedures posted
> somewhere?
> 
> I have the system booted as root.
> 
> I can see the emc/programs directory from my network.  I can't transfer a
> file to that directory because permission is denied.  Where do I fix this
> problem?

I don't have RH 6.1 so I can't tell you specifics but I'd start with a
terminal within the x-windows program.  The icon might look like a monitor
or it might say xterm or ?term under a menu somewhere.  When you get the
terminal up,  change directory to the one immediately above (before or to
the left of) emc.  I'll use the structure on my machine, you may have to
modify commands for yours.

[root-at-localhost ray]# cd /usr/local/nist 
[root-at-localhost nistbintest]#  ls -l (i is lowercase L)

[root-at-localhost nistbintest]# ls -l
total 4720
-r-xr-xr-x   1 root     root          682 Jun  7 14:13 clean*
-r-xr-xr-x   1 root     root          906 Jun  7 14:13 compile*
-rw-rw-rw-   1 root     root       142780 Jun 15 14:59 compile.txt
-rw-rw-rw-   1 root     root       151516 Jun 16 11:19 compile1.txt
-rw-rw-rw-   1 root     root       151516 Jun 16 12:56 compile2.txt
drwxrwxrwx  10 ray      operator     4096 Aug 17 11:34 emc/
-r--r--r--   1 root     root          537 Jun  7 14:13 emc.exc
-r--r--r--   1 root     root          649 Jun  7 14:13 emc.inc
-rw-r--r--   1 root     root      1329588 Jun 16 15:41 emc.tgz
-r--r--r--   1 root     root          153 Jun  7 14:13 floppy.inc
-r-xr-xr-x   1 root     root         3203 Jun  7 14:13 install*
-r-xr-xr-x   1 root     root         1256 Jun  7 14:13 packup*
-r-xr-xr-x   1 root     root         2034 Jun  7 14:13 putback*
-rw-r--r--   1 root     root        17111 Jun 16 15:36 ray22fix.tgz
drwxr-xr-x   4 root     root         4096 Jun 15 12:20 rcslib/
...
[root-at-localhost nistbintest]#

I shortened this return to save space but the left column shows the
permissions for each file and directory below nist.  The next column shows
the number of links to a file or directory.  The next column shows who
owns the file or directory and the next the group of users or processes
that have access to it.

If these two columns are not root, they should be for now.  You can make
them root with the chown and chgrp commands.  (chown - change owner. chgrp
- change group.)  

root-at-localhost nistbintest]# chown -R root *
root-at-localhost nistbintest]# chgrp -R root *

That should clear up the file copy problem.  If it does, then 

[root-at-localhost nistbintest]# cd emc
[root-at-localhost emc]# ls -l
total 292
-rw-r--r--   1 root     root         4926 Jun 14 14:37 README
-rw-r--r--   1 root     root         1065 Jun 14 14:37 TkEmc
-rw-r--r--   1 root     root        25892 Jun 14 14:37 XEmc
-rw-r--r--   1 root     root        27421 Jun 14 14:37 YEmc
drwxr-xr-x   2 root     root         4096 Aug 16 08:43 doc/
-rw-r--r--   1 root     root         8398 Aug 16 08:44 emc.ini
-rw-r--r--   1 root     root            0 Aug 28 08:44 emc.log
-rw-r--r--   1 root     root         3543 Aug 16 08:44 emc.nml
-rwxr-xr-x   1 root     root        16618 Aug 16 08:44 emc.run*
-rw-r--r--   1 root     root          108 Aug 16 08:44 emc.tbl
-rw-r--r--   1 root     root         1358 Aug 28 08:46 emc.var
-rw-r--r--   1 root     root         8398 Aug  7 17:19 generic.ini
-rw-r--r--   1 root     root         3543 Jun 14 14:37 generic.nml
-rwxr-xr-x   1 root     root        16618 Aug  7 11:28 generic.run*
-rw-r--r--   1 root     root          108 Jun 14 14:37 generic.tbl
-rw-r--r--   1 root     root         1358 Jun 14 14:37 generic.var
-rwxr-xr-x   1 root     root         2131 Jun 14 14:37 install_rtlinux_base*
drwxr-xr-x   4 root     root         4096 Aug 28 08:44 plat/
drwxr-xr-x   2 root     root         4096 Aug 28 11:32 programs/
-rw-r--r--   1 root     root         8394 Aug 25 15:44 sim.ini
-rw-r--r--   1 root     root         8394 Aug 25 15:44 sim.ini.bak
-rw-r--r--   1 root     root         8392 Aug 25 15:28 sim.ini~
-rw-r--r--   1 root     root         3543 Aug 25 15:15 sim.nml
-rwxr-xr-x   1 root     root        16618 Aug 25 15:16 sim.run*
-rw-r--r--   1 root     root          108 Aug 25 15:15 sim.tbl
-rw-r--r--   1 root     root         1358 Aug 25 15:44 sim.var
drwxr-xr-x   3 root     root         4096 Aug 10 13:19 tcl/
[root-at-localhost emc]#                                                 

There are sets of files that you can run. Generic.* is one such set. 
These are the default set from which the others are built.  I do not
recommend running default.  You may need them when you screw up your run
set so bad that you want to start over.  Some install scripts will copy
generic to emc.* files and this is the set that many users start with. 
the sim.* set will start up the simulated motors and such.

To run emc be sure that you are in the emc directory.  You can check
this with the pwd command. (print working directory)

[root-at-localhost emc]# pwd
/usr/local/nistbintest/emc
[root-at-localhost emc]#          

Okay.  This tells me that I am in an emc directory.  (I've got several) 
Now enter the command for the set you want to start up.  This is the
emc.run, sim.run, etc preceded by a ./ which tells linux to look for that
executable file in the current directory.  I get the following reported in
the terminal window.  Your's may be different 'cause I've edited my sim
files some.

[root-at-localhost emc]# ./sim.run
Current platform is linux_2_2_14
Current real-time platform is rtlinux_2_2
inivar = plat/linux_2_2_14/bin/inivar
INIFILE = sim.ini
starting emc...
/sbin/insmod -f /lib/modules/2.2.14-rtl2.2/misc/rtl_time.o
/sbin/insmod -f /lib/modules/2.2.14-rtl2.2/misc/rtl_sched.o
/sbin/insmod -f /lib/modules/2.2.14-rtl2.2/misc/rtl_posixio.o
/sbin/insmod -f /lib/modules/2.2.14-rtl2.2/misc/rtl_fifo.o
starting EMC MOTION PROGRAM -- emcmotsim...done
starting EMC IO PROGRAM --  simio...done
starting EMC TASK PROGRAM -- minimilltask...done
running EMC DISPLAY PROGRAM -- tkemc...
[root-at-localhost emc]#                 

After a few seconds, I get a window with tkemc showing.  And I am
running the EMC simulator.  

If you want to edit emc.ini to begin to set up your own system
you can read my description of a stepper mill ini file at:

http://www.linuxcnc.org/handbook/part2/softsetup/inifile/rhemcini.htm

The handbook:

http://www.linuxcnc.org/handbook

Will help in some areas but right now it's an embrio of good things to
come. 

> Who is willing to walk me through this ...

Happy to.  We may want to take it off list and then make a handbook page
of the process.

Ray




Date Index | Thread Index | Back to archive index | Back to Mailing List Page

Problems or questions? Contact