TTL trigger output

More
09 May 2014 21:55 - 09 May 2014 21:56 #46761 by andypugh
Replied by andypugh on topic TTL trigger output

Does it seem right?


Not quite.
I actually prefer the long-form of the net command, it saves space :-)
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)
Last edit: 09 May 2014 21:56 by andypugh.
The following user(s) said Thank You: gillinderglass

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

More
10 May 2014 01:00 #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

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

More
10 May 2014 05:00 #46779 by andypugh
Replied by andypugh on topic TTL trigger output

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 or Create an account to join the conversation.

Time to create page: 0.120 seconds
Powered by Kunena Forum