Run/Step Hold/Resume Buttons
- Benb
-
- Offline
- Premium Member
-
Less
More
- Posts: 143
- Thank you received: 53
18 Oct 2024 19:17 #312542
by Benb
Replied by Benb on topic Run/Step Hold/Resume Buttons
Something important I forgot to mention in my previous message regarding converting block diagram to hal netlist.
Let'e take toggle2nist component, the way you extract the information from the symbol is as follows.
From bottom left is the name of the component toggl2nist.0 and you add the pin name in, we end up with toggl2nist.0.in same for the rest of the pins of this component ie toggl2nist.0.is-on toggl2nist.0.on toggl2nist.0.off
For the complete hal file we end up with this:
Let'e take toggle2nist component, the way you extract the information from the symbol is as follows.
From bottom left is the name of the component toggl2nist.0 and you add the pin name in, we end up with toggl2nist.0.in same for the rest of the pins of this component ie toggl2nist.0.is-on toggl2nist.0.on toggl2nist.0.off
For the complete hal file we end up with this:
Attachments:
Please Log in or Create an account to join the conversation.
- vre
- Away
- Platinum Member
-
Less
More
- Posts: 655
- Thank you received: 17
08 May 2025 14:58 - 08 May 2025 15:04 #327997
by vre
Replied by vre on topic Run/Step Hold/Resume Buttons
This config if you push start and it is in manual mode changes to auto automatically and runs the code.
How to do it not change to auto automatically?
I have changed this
to this
but continues to run the program even it is in manual mode.
Also this must uncommented or not ?
How to do it not change to auto automatically?
I have changed this
net run-sig halui.mode.auto halui.program.run <= and2.2.out
to this
net run-sig halui.program.run <= and2.2.out
but continues to run the program even it is in manual mode.
Also this must uncommented or not ?
# net pause.on and 2.3.in1 <= halui.program.is-paused
Last edit: 08 May 2025 15:04 by vre.
Please Log in or Create an account to join the conversation.
Time to create page: 0.275 seconds