2.4. Building emc2 (realtime)

More
13 Jan 2011 12:17 #6659 by BigJohnT
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
Looks like something is wrong with your tool table.


custom.hal:11: parameter or pin 'stepgen.7.position-scale' not found
In your custom.hal the line that contains stepgen.7.position-scale is causing a problem.

Do you really have 7 step generators?

John

Please Log in or Create an account to join the conversation.

More
13 Jan 2011 19:21 #6665 by garymcrobertpdx
Whats strange is that the hal code and tool table worked when I ran emc2 installed from
the live disk. I will fix the hal code and mess with the tool table file.

stepgen.7 for the moment is used as a fail safe for my high power servo drive board.
The output is connected to a hardware retriggerable one shot with a time constant of
50 us and triggers on rising and falling edges. the output is connected to the drive
enable.

If there is a software failure while the motor is running at speed the drive shuts down
and coasts to a stop. other wise the servo drive would be subjected to very high currents
and bursts into flames.

Please Log in or Create an account to join the conversation.

More
13 Jan 2011 23:25 #6669 by BigJohnT
Just to cut the problem in half, can you run a sim config from the git master. You know by setting the environment in a terminal window and then emc then pick a sim. If that runs ok then something in your config is messed up.

John

Please Log in or Create an account to join the conversation.

More
15 Jan 2011 06:11 #6696 by garymcrobertpdx
Sorry a bit more advanced diagnostic tactic than I am capable of with out more
understanding.

A couple curious clues the tool table file error has disappeared since my last session.
(shut down & startup)

A checked for the hal code problem that that produces the error
"custom.hal:31: parameter or pin 'stepgen.7.position-scale' not found"

There appears to be nothing wrong with this line of hal code but I replaced it with a fresh
line setp stepgen.7.position-scale 1 just in case of something weird I could not see on the
line of text this made no difference same error.

When I launch emc from the emc2-dev it is defiantly using the custom hal file in
/home/me/emc2/configs/my-mill which was created by the config wizard some time ago.
I assume this supposed to happen.

Please Log in or Create an account to join the conversation.

More
15 Jan 2011 07:08 #6699 by andypugh
It will use any (and all) HAL files defined in the INI file of the config you are loading.

Please Log in or Create an account to join the conversation.

More
15 Jan 2011 08:52 #6701 by garymcrobertpdx
I did a major house cleaning removed all the accumulated junk emc2 files and folders
except one configuration.

I opened a terminal cd to emc2-dev and typed emc hit enter and EMC2 loaded and
ran correctly.

I assume I am now in the RIP mode and the code that was compiled in the emc2-dev
dir is running the show now. Is there any simple way to know if this so?

Please Log in or Create an account to join the conversation.

More
15 Jan 2011 13:44 #6705 by BigJohnT
When you open a terminal and type "emc" you get the installed version no matter what directory your in, that is a linux thing. To run a local file you have to type ./myfilename.

To set the environment to the RIP and run the RIP version you do the following in a terminal.

cd emc2-dev
. ./scripts/emc-environment
emc

it should print "EMC2 - 2.5.0~pre" in the terminal window.

if it prints "EMC2 - 2.4.6" your running the installed version.

John

Please Log in or Create an account to join the conversation.

More
15 Jan 2011 21:13 #6718 by garymcrobertpdx
OK The installed emc2 still works correctly, had a go at running the RIP
but something went wrong when I did the right commands to run the RIP
version.

me@CNC:~$ cd emc2-dev
me@CNC:~/emc2-dev$ . ./scripts/emc-environment
me@CNC:~/emc2-dev$ emc
EMC2 - 2.5.0~pre
Machine configuration directory is '/home/me/emc2/configs/my-mill-2'
Machine configuration file is 'my-mill-2.ini'
Starting EMC2...
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10824 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10824 bytes to global memory at offset 0x81f6d38
(See libnml/cms/cms_in.cc line 1386.)

**********************************************************
* Current Directory = /home/me/emc2/configs/my-mill-2
*
**********************************************************
* BufferName = emcStatus
* BufferType = 0
* ProcessName = emc
* Configuration File = emc.nml
* CMS Status = -3 (CMS_INTERNAL_ACCESS_ERROR: An error occured during an internal access function. )
* Recent errors repeated:

PHYSMEM_HANDLE: Can't write 10824 bytes at offset 60 from buffer of size 10208.

CMS:(emcStatus) Error writing 10824 bytes to global memory at offset 0x81f6d38
(See libnml/cms/cm

* BufferLine: B emcStatus SHMEM localhost 10240 0 0 2 16 1002 TCP=5005 xdr
* ProcessLine: P emc emcStatus LOCAL localhost W 0 1.0 0 0
* error_type = 5 (NML_INTERNAL_CMS_ERROR)
************************************************************

libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10824 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10824 bytes to global memory at offset 0x81f6d38
(See libnml/cms/cms_in.cc line 1386.)
libnml/buffer/physmem.cc 143: PHYSMEM_HANDLE: Can't write 10824 bytes at offset 60 from buffer of size 10208.
libnml/cms/cms_in.cc 1383: CMS:(emcStatus) Error writing 10824 bytes to global memory at offset 0x81f6d38
(See libnml/cms/cms_in.cc line 1386.)

--- SEVERAL DOZEN MORE LINES OF THE SAME THEN --

Maximum number of errors to print exceeded!
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
A configuration error is preventing emc2 from starting.
More information may be available when running from a terminal.
Shutting down and cleaning up EMC2...
Cleanup done
EMC terminated with an error. You can find more information in the log:
/home/me/emc_debug.txt
and
/home/me/emc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
me@CNC:~/emc2-dev$

YOW! what a mess of errors. The " configuration error" is this referring to
a problem with the my-mill-2.ini file?

Please Log in or Create an account to join the conversation.

More
16 Jan 2011 00:26 #6720 by BigJohnT
Yea, that is from having NML_FILE = emc.nml like from a 2.3 config in the ini...

wiki.linuxcnc.org/cgi-bin/emcinfo.pl?UPD...ween_2_3_x_and_2_4_x

John
The following user(s) said Thank You: adelabarra

Please Log in or Create an account to join the conversation.

More
16 Jan 2011 05:03 #6722 by garymcrobertpdx
It's Alive! Success EMC 2.5.0 is running!

Many, many thanks John

Please Log in or Create an account to join the conversation.

Time to create page: 0.116 seconds
Powered by Kunena Forum