- Posts: 12160
- Thank you received: 0
QtPlasmaC External Pins
4 years 2 months ago #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 these
I 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
Code:
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 to join the conversation.
4 years 2 months ago #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!
Code:
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.
Please Log in to join the conversation.
Time to create page: 3.820 seconds
