TTL trigger output

More
12 years 11 months ago #41163 by gillinderglass
TTL trigger output was created by gillinderglass
I would like to start a measuring device with a TTL trigger after a programmed move. Can I do that with an M code?

Thanks
Bart

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

More
12 years 11 months ago #41167 by emcPT
Replied by emcPT on topic TTL trigger output
The M code is a file located in the path defined in the ini.
Inside the M code you can define one or more output pins to turn on/off.
I hope that it is what you wanted.
The following user(s) said Thank You: gillinderglass

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

More
12 years 11 months ago #41174 by ArcEye
Replied by ArcEye on topic TTL trigger output

I would like to start a measuring device with a TTL trigger after a programmed move. Can I do that with an M code?


Depending upon how exactly youre going to trigger it, see the M codes, M62 through to M68

www.linuxcnc.org/docs/html/gcode/m-code.html#sec:M62-M65
www.linuxcnc.org/docs/html/gcode/m-code....ec:M67-Analog-Output
www.linuxcnc.org/docs/html/gcode/m-code....ec:M68-Analog-Output

regards
The following user(s) said Thank You: gillinderglass

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

More
12 years 6 months ago #46170 by gillinderglass
Replied by gillinderglass on topic TTL trigger output
I would like to send and receive TTL signals on my idle A axis.
This is what I think I should do, but I would really appreciate
guidance so I don't burn anything.

In standard_pinout.hal I have
net Astep => parport.0.pin-09-out
net Adir => parport.0.pin-08-out

Can I change that to
net Mstart => parport.0.pin-8-out
net Mdone <= parport.0.pin-9-in

And then in core_stepper.hal There is no mention of the A axis, so add
net Mstart motion.digital-out-00 => parport.0.pin8-out
net Mdone motion.digital-in-00 <= parport.0.pin9-in

And then in my G-Codes
m63 p0
g0 x1
m66 p0 l2 q999
g0 x2

Am I close?

Thank you,
Bart

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

More
12 years 6 months ago #46200 by andypugh
Replied by andypugh on topic TTL trigger output

gillinderglass wrote: Am I close?t

Better, I think you are all the way there.
The following user(s) said Thank You: gillinderglass

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

More
12 years 5 months ago #46694 by gillinderglass
Replied by gillinderglass on topic TTL trigger output
I followed the instructions in 2. Pause & Resume in http:/linuxcnc.org/docs/html/hal/halui_examples.html and got a signal on my output pin! I know that doesn't sound like much, but I put in a lot of time to get there. I don't understand the classic ladder instructions. Could somebody please tell me, in words that an idiot can understand, how to set up an EIC timer?

Thanks,
Bart

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

Time to create page: 0.140 seconds
Powered by Kunena Forum