Raspberry Pi 4 mmap

More
30 Oct 2019 01:35 #149093 by andypugh
Replied by andypugh on topic Raspberry Pi 4
Can you show the output from running linuxcnc from the command line?

I suspect that there is a library missing that PyVCP needs.

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

More
30 Oct 2019 01:56 #149095 by jtheath
Replied by jtheath on topic Raspberry Pi 4
Here you go. First with ini DEBUG=0 then DEBUG=7 on 2nd. In both cases I powered up then attempted to jog.

File Attachment:

File Name: console.txt
File Size:8 KB
Attachments:

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

More
30 Oct 2019 02:11 #149097 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4
I did, did a rebuild, can't see any diff.
kernel and debs of linuxcnc are available at the link in my sig, add
lathe-stf/linuxcnc4rpi4 to the address above. Kernel is huge, already built, just install it. debs are of 2.9.0-pre0 about a week older than master.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <geneslinuxbox.net:6309/gene>

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

More
30 Oct 2019 10:28 #149141 by andypugh
Replied by andypugh on topic Raspberry Pi 4

Here you go. First with ini DEBUG=0 then DEBUG=7 on 2nd. In both cases I powered up then attempted to jog.

File Attachment:

File Name: console.txt
File Size:8 KB


There is nothing there suggesting a problem with PyVCP.
I my have misunderstood the original problem description. I thought you were saying that the PyVCP panel didn't load, not that it didn't do its job.

I suspect that the problem is due to the joints-axes changes, you now need to set up external jog buttons to jog joints in joint mode and axes in world mode.

If I am correct then I would expect the PyVCP jogging to work after the machine is homed. Can you test that?

Can you attach your PyVCP HAL file so that we can check (and correct) it?

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

More
30 Oct 2019 13:01 #149161 by jtheath
Replied by jtheath on topic Raspberry Pi 4
Hello Andy,

You are correct. The PyVCP jog works after homing. The machine is screw-driven and normally doesn't rack so homing is not usually required.

My PyVCP hal entries (custom_postgui.hal) are the vanilla ones found in the documentation:
net remote-rapid-home halui.mdi-command-00 <= pyvcp.rapid-home
net remote-rapid-z-zero halui.mdi-command-01 <= pyvcp.rapid-z-zero
net remote-o100 halui.mdi-command-02 <= pyvcp.o100
net remote-move-clear halui.mdi-command-03 <= pyvcp.move-clear
net remote-zero-x halui.mdi-command-04 <= pyvcp.zero-x
net remote-zero-y halui.mdi-command-05 <= pyvcp.zero-y
net remote-zero-z halui.mdi-command-06 <= pyvcp.zero-z

# connect the X PyVCP buttons
net my-jogxminus halui.axis.x.minus <= pyvcp.x-minus
net my-jogxplus halui.axis.x.plus <= pyvcp.x-plus
# connect the Y PyVCP buttons
net my-jogyminus halui.axis.y.minus <= pyvcp.y-minus
net my-jogyplus halui.axis.y.plus <= pyvcp.y-plus
# connect the Z PyVCP buttons
net my-jogzminus halui.axis.z.minus <= pyvcp.z-minus
net my-jogzplus halui.axis.z.plus <= pyvcp.z-plus
# connect the PyVCP jog speed slider
net my-jogspeed halui.axis.jog-speed <= pyvcp.jog-speed-f

How do I map the jog control buttons to get behavior identical to the Axis keyboard operations, {up, down, left, right, PgUp, PgDn}?

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

More
30 Oct 2019 13:14 #149162 by andypugh
Replied by andypugh on topic Raspberry Pi 4

# connect the X PyVCP buttons
net my-jogxminus halui.axis.x.minus <= pyvcp.x-minus
net my-jogxplus halui.axis.x.plus <= pyvcp.x-plus

How do I map the jog control buttons to get behavior identical to the Axis keyboard operations, {up, down, left, right, PgUp, PgDn}?


You need to add a some more halui pins to each axis above.

linuxcnc.org/docs/2.8/html/man/man1/halui.1.html

For X:
net my-jogxminus halui.axis.x.minus halui.joint.0.minus <= pyvcp.x-minus
net my-jogxplus halui.axis.x.plus halui.joint.0.plus <= pyvcp.x-plus

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

More
30 Oct 2019 14:01 #149172 by jtheath
Replied by jtheath on topic Raspberry Pi 4
Thank you. I can do that.

Since I am running a dual X gantry should the X jog hit two joints simultaneously?

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

More
30 Oct 2019 16:15 #149183 by andypugh
Replied by andypugh on topic Raspberry Pi 4

Since I am running a dual X gantry should the X jog hit two joints simultaneously?


Yes, that would probably be best.

Though if there are home switches it might be better to actually completely disable un-homed jogging.

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

More
05 Nov 2019 03:48 #149574 by RyanG
Replied by RyanG on topic Raspberry Pi 4

drive.google.com/open?id=1JbPiXr_i8be1GWVPG8PJmr7NlOo6WpKD

give it a try now.
password is cnc

i had to ctrl-alt-f1 at the login prompt in order to run raspi-config to expand the filesystem, after that it worked great.

if you run the test configuration, it'll use the gpio header

xdir=3, xstep=5, ydir=7, ystep=11, zdir=13, zstep=15


Did you etch the image to the SD card or copy the image to it? If you etched it which etcher did you use?

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

More
05 Nov 2019 04:16 #149576 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4
For those of you who would like to grab my kernel and debs from my web site, I've had to sht the server down until I can figure out how to lock the search bots out, they aren't just indexing the site, several of them have downloaded the entire site repeatedly, leaving no upload bandwidth for people who could use the code. This has been going on for about 2 weeks and I'm shall we say, tired of it..

I'll be 3 or so days in the shop, getting a new aortic valve installed, and will see about some sort of blacklist when I get back home. Apache2 is not well equipt if they ignore your robots.txt.

nginx seems to have better facilities, but doesn't just work out of the box, and will not let me dl any of its docs, so the initial setup is hidden from me..

Thanks all

Gene Heskett

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <geneslinuxbox.net:6309/gene>

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

Time to create page: 0.192 seconds
Powered by Kunena Forum