QtPlasmaC External Pins
- rodw
- Topic Author
- Away
- Platinum Member
Less
More
- Posts: 10739
- Thank you received: 3543
28 Aug 2022 12:58 #250618
by rodw
QtPlasmaC External Pins was created by rodw
Two extra unlinks required. See attached. need sto be a postgui file now as its referencing some qtplasmac pins.
I thnk I may have moved some load rt commands to another file so you may needs some of theseI think I need to do a bit of cleaning up yet.. I'm not convinved all the toggles etc are required but I'm working on a pendant file first.
The pendant is another level again! 170 lines and counting
I thnk I may have moved some load rt commands to another file so you may needs some of these
loadrt and2 names=pr-and0,pr-and1,pr-and2,pr-and3,pr-and4,and-plus,and-minus,rapid-plus,rapid-minus,rapid-sel
The pendant is another level again! 170 lines and counting
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
29 Aug 2022 09:09 #250677
by phillc54
Replied by phillc54 on topic QtPlasmaC External Pins
Rather than pollute the original topic I started a new one.
This code should be functionally equivalent to yours.
There is one major issue though.
The plasmac component exerts a feed hold while paused due to us needing to use userspace pins for the program state.
This means that step will not work in a combined run/step scenario as that causes step to only be valid while paused.
This code should be functionally equivalent to yours.
Warning: Spoiler!
loadrt and2 names=run_and,step_and
addf run_and servo-thread
addf step_and servo-thread
net pause-resume-btn qtplasmac.ext_pause
net run-step-btn run_and.in0 step_and.in0
net plasmac:program-is-idle run_and.in1
net run_signal run_and.out qtplasmac.ext_run
net plasmac:program-is-paused step_and.in1
net step_signal step_and.out halui.program.step
There is one major issue though.
The plasmac component exerts a feed hold while paused due to us needing to use userspace pins for the program state.
This means that step will not work in a combined run/step scenario as that causes step to only be valid while paused.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.052 seconds