Discussion:
[Emc-users] Simulations In Master?
Todd Zuercher
2017-06-01 19:22:50 UTC
Permalink
I was trying to convert one of my machine configs to test with Master. Testing in a VM.

I've ran into a couple of snags though. The machine uses 3 parallel ports, two of them in X-mode, and one as Out.
When I try to run the config I get:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: No such device
And if I try to convert the config to use sim_parport, I get:
./Dig1.hal:73: Pin 'parport.0.pin-01-in-not' does not exist

So apparently my VM won't start a config with 3 parallel ports (it will start the demos with only 1).
And sim_parport doesn't work with X-mode parallel port configurations.

Any suggestions?
--
========================================

Todd Zuercher
mailto:***@embarqmail.com

========================================
andy pugh
2017-06-01 19:56:07 UTC
Permalink
On 1 June 2017 at 20:22, Todd Zuercher
Post by Todd Zuercher
Any suggestions?
It's a very simple comp.
https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/components/sim_parport.comp
So adding the extra pins needed should be trivial.

(I can't help feeling that it could be an awful lot shorter too, using the
pin in bit pin_##_in [15] format and just living with there being some
pins that don't actually exist)
--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916
Sebastian Kuzminsky
2017-06-01 20:30:44 UTC
Permalink
Post by Todd Zuercher
I was trying to convert one of my machine configs to test with Master. Testing in a VM.
I've ran into a couple of snags though. The machine uses 3 parallel ports, two of them in X-mode, and one as Out.
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: No such device
Do you have three parallel ports enabled on your VM? Does the linux
parport driver see them?
--
Sebastian Kuzminsky
Todd Zuercher
2017-06-01 20:34:57 UTC
Permalink
Thanks Andy, I made a new component (sim_parport2) and that seemed to work. Perhaps someone should put a revised version of sim_parport in the main release.

----- Original Message -----
From: "andy pugh" <***@gmail.com>
To: "Enhanced Machine Controller (EMC)" <emc-***@lists.sourceforge.net>
Sent: Thursday, June 1, 2017 3:56:07 PM
Subject: Re: [Emc-users] Simulations In Master?

On 1 June 2017 at 20:22, Todd Zuercher
Post by Todd Zuercher
Any suggestions?
It's a very simple comp.
https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/components/sim_parport.comp
So adding the extra pins needed should be trivial.

(I can't help feeling that it could be an awful lot shorter too, using the
pin in bit pin_##_in [15] format and just living with there being some
pins that don't actually exist)
--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
Todd Zuercher
2017-06-01 21:07:32 UTC
Permalink
I'm not sure that there are any. I'll have to check what does and doesn't show. I do know that the normal example configs with 1 port run fine in the VM (VirtualBox).


----- Original Message -----
From: "Sebastian Kuzminsky" <***@highlab.com>
To: "Enhanced Machine Controller (EMC)" <emc-***@lists.sourceforge.net>
Sent: Thursday, June 1, 2017 4:30:44 PM
Subject: Re: [Emc-users] Simulations In Master?
Post by Todd Zuercher
I was trying to convert one of my machine configs to test with Master. Testing in a VM.
I've ran into a couple of snags though. The machine uses 3 parallel ports, two of them in X-mode, and one as Out.
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/hal_parport.ko: No such device
Do you have three parallel ports enabled on your VM? Does the linux
parport driver see them?
--
Sebastian Kuzminsky

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
Todd Zuercher
2017-06-01 21:24:07 UTC
Permalink
Perhaps a spoke too soon about it all working.

Linuxcnc started with my config using the new sim_parport but I'm running into a few bugs.
I don't know if the problem is my config, or a bug in Master.

The config is a 4 axis XYZW config, with only XYZW and joints 0,1,2,3 defined. (I really like the way the JA configuration works by the way, much nicer than before.)

The problems, when I first start the machine If I try to jog the W nothing happens, and this is printed to in the terminal window.

Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1437, in __call__
return self.func(*args)
File "/usr/bin/axis", line 2498, in jog_minus
speed = get_jog_speed(a)
File "/usr/bin/axis", line 1733, in get_jog_speed
if joint_type[a] == 'LINEAR':
IndexError: list index out of range

If I then try to issue an MDI command to move the W (which doesn't work since I didn't bother trying to make the sim config home-able)
then I can jog the W axis fine (no messages in the terminal window either).

Then after a bit the whole VM seems to freeze up. I haven't been able to track down any clues about the freeze up yet.
Todd Zuercher
2017-06-02 19:15:41 UTC
Permalink
Ok, I set up simulated home switches, It will home all of the axis without setting any alarms, and after homing I can jog the W axis. But I still can't jog the W when I first open Linuxcnc using the on screen jog buttons. But I can jog it before homing using the [ ] keys on the keyboard. If I jog using those keys I notice that the radio check button for the W axis turns off when I do it (no displayed axis selection buttons are chosen). After homing, jogging is back to normal. I can jog W with the on screen buttons, and keyboard [ ] and the W-axis select radio button is selected. I'm not sure what the problem is there. It seems like an Axis bug to me, left over from the pre-JA method of tying joint_3 to rotary axis A.

How would one report this bug?

As to the freeze ups, after a software update this morning it has not done it today.



----- Original Message -----
From: "Todd Zuercher" <***@embarqmail.com>
To: "Enhanced Machine Controller (EMC)" <emc-***@lists.sourceforge.net>
Sent: Thursday, June 1, 2017 5:24:07 PM
Subject: Re: [Emc-users] Simulations In Master?

Perhaps a spoke too soon about it all working.

Linuxcnc started with my config using the new sim_parport but I'm running into a few bugs.
I don't know if the problem is my config, or a bug in Master.

The config is a 4 axis XYZW config, with only XYZW and joints 0,1,2,3 defined. (I really like the way the JA configuration works by the way, much nicer than before.)

The problems, when I first start the machine If I try to jog the W nothing happens, and this is printed to in the terminal window.

Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1437, in __call__
return self.func(*args)
File "/usr/bin/axis", line 2498, in jog_minus
speed = get_jog_speed(a)
File "/usr/bin/axis", line 1733, in get_jog_speed
if joint_type[a] == 'LINEAR':
IndexError: list index out of range

If I then try to issue an MDI command to move the W (which doesn't work since I didn't bother trying to make the sim config home-able)
then I can jog the W axis fine (no messages in the terminal window either).

Then after a bit the whole VM seems to freeze up. I haven't been able to track down any clues about the freeze up yet.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Continue reading on narkive:
Loading...