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

More
1 year 10 months ago - 1 year 10 months ago #316842 by meister

And this give me pin 68 on as soon as the power arrives to TN9. I can off/on this pin later through halshow rio.estop.bit. Togle ESTOP or ENABLE or exit LinuxCNC don't change state of this bit!


on_error causes the pin to remain at 0 as long as there is an error
the pin only goes to one if there is no error and the pin in the hal has also been set to one.

subsequent 'invert-modifiers' invert the signal subsequently

ok it's a bit confusing, i'll think about building special plugins for frequently used functions



 
Last edit: 1 year 10 months ago by meister.
The following user(s) said Thank You: Zayoo

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

More
1 year 10 months ago #316843 by meister

Also, in toolchain.py, {cmd_cp} and {cmd_rm} were not evaluating correctly:

fixed in dev branch, thanks

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

More
1 year 10 months ago - 1 year 10 months ago #316845 by Zayoo
Thank you meister.
So if I understand well, I may add this modifier to each pin to control it's state in case of error, estop.

Edit:
I did quick test, yes that's solve my issue. Thank you. 
Only thing hire is missing one good in depth help file! :) 
Last edit: 1 year 10 months ago by Zayoo.

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

More
1 year 10 months ago #316847 by meister
programmer and documentation ... :(
there is still a lot of work to do

BTW: the enable pins of the pwmout / stepdir plugins, automatically have an error stop included

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

More
1 year 10 months ago #316851 by epineh
So I can run gw_sh from anywhere, I also edited my .bashrc to make the PATH permanent.
Here is the terminal text, it is still saying it cant see the gowin path, interesting the first line saying XDG_RUNTIME_DIR is not set, I have no idea what that is but it doesn't sound good...

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
loading config: riocore/configs/TangNano9K/config.json
loading board: /home/gus/riocore/./riocore/boards/TangNano9K/board.json
rm -rf rio.fs rio.json rio_pnr.json rio.tcl abc.history impl
gw_sh rio.tcl
make: gw_sh: No such file or directory
make: *** [Makefile:34: impl/pnr/project.fs] Error 127
loading: riocore/configs/TangNano9K/config.json
loading board setup: TangNano9K
loading toolchain gowin
writing gateware to: Output/TangNano9K/Gateware
!!! gateware changed: needs to be build and flash |||
WARNING: can not found toolchain installation in PATH: gowin (gw_sh)
  example: export PATH=$PATH:/opt/gowin/IDE/bin
writing linuxcnc files to: Output/TangNano9K/LinuxCNC
rm -rf rio.fs rio.json rio_pnr.json rio.tcl abc.history impl
gw_sh rio.tcl
make: gw_sh: No such file or directory
make: *** [Makefile:34: impl/pnr/project.fs] Error 127

 
The following user(s) said Thank You: Ehsan_R

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

More
1 year 10 months ago #316854 by meister
are you using sudo ??? do not !

go into the Gateware folder:
Code:
cd Output/TangNano9K/Gateware

and type make:
Code:
make

then type (to check again):
Code:
gw_sh

I am really at a loss

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

Time to create page: 0.247 seconds
Powered by Kunena Forum