On 3/21/2015 7:27 PM, Chris Morley wrote: > >> From: viesturs.la...@gmail.com >> Date: Sat, 21 Mar 2015 21:45:22 +0200 >> To: emc-users@lists.sourceforge.net >> Subject: Re: [Emc-users] Simple, adjustable timer >> >> 2015-03-21 21:11 GMT+02:00 Dave Cole <linuxcncro...@gmail.com>: >>> I'd run the input to a unused Mesa 24 volt input and put some logic into >>> Classic Ladder for a couple of timers to condition the input with time >>> on and time off delays so you don't short cycle the grit loader. Or >>> just tie it in via hal if no timers are required. >> Yes, I already have it hooked to gpio pin, currently the hopper is >> switched on/off by a checkbutton on pyvcp panel. >> I thought about using classicladder and few timers there, but the >> thing is that this solution is not easy to adjust for operator. >> Correct timing pattern is unknown at the moment, and I do not think I >> want to provide instructions over the phone on how to use >> classicladder, so I thought that 2 spinboxes in vcp panel as a source >> for the time (in seconds, number of servo periods or whatever) and few >> HAL modules (like oneshot etc) might do the trick, but did not come up >> with anything reasonable, so I was hoping for some hints. >> >> Viesturs >> > In classicladder you can dynamically change the timer time with an assignment > element. > http://www.linuxcnc.org/docs/2.6/html/ladder/classic_ladder.html#_iec_timers > > %TM0.P=%IW0 > > will set IEC timer 0 at whatever classicladder.0.s32in-00 is > > This could be connected to a vcp spinbutton to select the time. > > Chris M >
I wondered about that. That makes it way too easy.. ;-) Dave --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users