I'd go the Classic Ladder route and program a 1 second timer and use that to increment a counter when the timing conditions exist. Then do a comparison to a preset value for the number of seconds of preset time.
You could use a spinbox to set the value of the preset for the comparison. I know that would work. http://www.linuxcnc.org/docs/html/ladder/ladder_examples_fr.html Dave On 3/21/2015 2:45 PM, Viesturs Lācis wrote: > 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 > > ------------------------------------------------------------------------------ > 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 --- 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