- Posts: 19306
- Thank you received: 0
TTL trigger output
12 years 5 months ago #46761
by andypugh
Not quite.
I actually prefer the long-form of the net command, it saves space
Should probably work. (I haven't tested it)
Replied by andypugh on topic TTL trigger output
gillinderglass wrote: Does it seem right?
Not quite.
I actually prefer the long-form of the net command, it saves space
Code:
loadrt oneshot count=2
...
addf oneshot.0 servo-thread
addf oneshot.1 servo-thread
...
net prog-paused halui.program.is-paused => oneshot.0.in
net take-photo oneshot.0.out => parport.0.pin-09-out
setp oneshot.0.width 0.01
net photo-done parport.0.pin-10-in => oneshot.1.in
net restart-prog oneshot.1.out => halui.program.resume
setp oneshot.1.width 0.002
Should probably work. (I haven't tested it)
Please Log in to join the conversation.
- gillinderglass
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
12 years 5 months ago #46771
by gillinderglass
Replied by gillinderglass on topic TTL trigger output
You are fantastic. Thank you. I wouldn't have ever figured this out.
There is just one error. command - (EMC_TASK_PLAN_RESUME) cannot be executed until the machine is out of E-Stop and turned on.
Regards,
Bart
There is just one error. command - (EMC_TASK_PLAN_RESUME) cannot be executed until the machine is out of E-Stop and turned on.
Regards,
Bart
Please Log in to join the conversation.
12 years 5 months ago #46779
by andypugh
Can you work round that? It sounds like the oneshot fires immediately, before the system is turned on.
If it is a problem, then take the output of the resume oneshot through an and2 component with something like amp-enable.
Replied by andypugh on topic TTL trigger output
gillinderglass wrote: There is just one error. command - (EMC_TASK_PLAN_RESUME) cannot be executed until the machine is out of E-Stop and turned on.
Can you work round that? It sounds like the oneshot fires immediately, before the system is turned on.
If it is a problem, then take the output of the resume oneshot through an and2 component with something like amp-enable.
Please Log in to join the conversation.
Time to create page: 0.035 seconds
