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

More
1 year 3 months ago #331850 by meister
in dev branch and untested (only via testbench):

github.com/multigcs/riocore/blob/dev/rio...s/interval/README.md

little config example 10 seconds on / interval 20 minutes default
Code:
        {             "type": "interval",             "pins": {                 "out": {                     "pin": "PIN:69"                 }             },             "uid": "interval0",             "signals": {                 "enable": {                     "display": {                         "title": "Pump-Active",                         "section": "status"                     },                     "net": "halui.machine.is-on"                 },                 "ontime": {                     "display": {                         "title": "Pump-OnTime (s)",                         "initval": 10.0,                         "min": 5.0,                         "max": 20.0,                         "section": "status"                     }                 },                 "interval": {                     "display": {                         "title": "Pump-Interval (s)",                         "initval": 1200.0,                         "min": 600.0,                         "max": 1800.0,                         "section": "status"                     }                 }             }         }

looks like this:
 

and the onTime can be adjust between 5 and 20 seconds / interval between 600 and 1800 seconds (10 - 30 minutes)

 
The following user(s) said Thank You: epineh

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

More
1 year 3 months ago #331851 by meister
a little tip on what you can do with the wled's to display the status:
Code:
        {             "type": "wled",             "pins": {                 "data": {                     "pin": "WLED:DATA"                 }             },             "signals": {                 "0_green": {                     "net": "(!halui.mode.is-auto and !axisui.error) or halui.program.is-paused"                 },                 "0_red": {                     "net": "axisui.error"                 },                 "0_blue": {                     "net": "halui.mode.is-auto"                 }             },             "uid": "wled0"         },

 

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

More
1 year 3 months ago #331853 by epineh
Thanks for that, nice touch having the interval/on times adjustable from the status page, very handy.

The WLED should be great for general status conditions and minor warnings at a glance, looking forward to adding some bling to my machines.

Cheers.
Russell.
The following user(s) said Thank You: meister

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

More
1 year 3 months ago #331889 by meister
i playing around with node-graph editor:

 
 

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

More
1 year 3 months ago #331929 by kzali
Thats really neat is it part of the dev branch?
The following user(s) said Thank You: meister

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

More
1 year 3 months ago #331930 by meister
thanks, but still a lot of work to do (At the moment it is still a proof of concept):

 

here is the latest source file:

  www.multixmedia.org/testme-graph.py

# python3 testme-graph.py riocore/configs/Tangbob/config.json
 
The following user(s) said Thank You: kzali

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

Time to create page: 0.654 seconds
Powered by Kunena Forum