LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

More
2 years 2 months ago #307292 by Cant do this anymore bye all
Sweet will wait for more info.
@Mecanix what's the contents of this file
Code:
~/rio/riocore/bin/activate

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

More
2 years 2 months ago - 2 years 2 months ago #307293 by Mecanix
@meister

Only when you have time (no rush), I'll need your help with a spindle encoder config. I can make the counter work (A & B signals), however I can't figure out how to make the Z index work. I've attached my config for reference, grateful if you could have a look at it and let me know what I'm doing wrong, or what I'm not doing rather.

ps. only guidance I found was in this thread, from old posts. Although all that info seems to have changed since :( And so I've tried everything before begging for your help!


@cornholio
I have no idea. It's a cmd from python-venv (to activate the virtual environment that Rio is isolated into). 
Last edit: 2 years 2 months ago by Mecanix.

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

More
2 years 2 months ago #307294 by meister
if you want to use the spindle in linuxcnc, the correct hal connections must be entered 'net':
Code:
        {             "type": "quadencoderz",             "name": "spindle_encoder",             "pins": {                 "a": {                     "pin": "25",                     "pull": "up"                 },                 "b": {                     "pin": "26",                     "pull": "up"                 },                 "z": {                     "pin": "27",                     "pull": "up"                 }             },             "signals": {                 "indexenable": {                     "net": "spindle.0.index-enable",                     "display": {                         "type": "none"                     }                 },                 "position": {                     "net": "spindle.0.revs",                     "scale": 600,                     "display": {                         "title": "REV"                     }                 },                 "rps": {                     "net": "spindle.0.speed-in",                     "display": {                         "type": "none"                     }                 }             }         }
The following user(s) said Thank You: Mecanix

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

More
2 years 2 months ago - 2 years 2 months ago #307295 by Mecanix

if you want to use the spindle in linuxcnc, the correct hal connections must be entered 'net':
Nice, thanks! Progress ha. But still not getting any index input for some strange reason. The encoder pin pulses HIGH on the oscope on each rev (probed on the FPGA pin), that works fine, but it never shows up in Lcnc. Do I need to debug this from rio.c (hal component?)

Last edit: 2 years 2 months ago by Mecanix.

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

More
2 years 2 months ago #307297 by Mecanix
Wait wait, it see the index pin. I know because if I set the xxx.indexenable to true it trips on a rotation and reset the counter. 
Omg, the learning curve is steep, Olivier. Let me try to figure out how this works... prolly going to take me a day or two lool

The following user(s) said Thank You: tommylight, meister

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

More
2 years 2 months ago #307298 by meister
you can try
PYTHONPATH=. bin/rio-test riocore/configs/MecanixDev/config.json

-> Quadencoderz and set indexenable, then rotate the axis and look if the indexout changed

same you can do in linuxcnc -> Halshow

set rio.spindle_encoder.indexenable to 1 and look at the rio.spindle_encoder.indexout
while rotating
The following user(s) said Thank You: Mecanix

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

Time to create page: 2.505 seconds
Powered by Kunena Forum