Re: [Emc-users] Simple, adjustable timer
Hi Viesturs. The component has its own doc embedded into the comp file. So if you install it completely you will have the man page available into a terminal window. Alex On Mon, Mar 23, 2015 at 3:25 PM, Viesturs Lācis wrote: > Thank you very much, looks really good! > > Viesturs > > > 2015-03-23 12:51 GMT+02:00 alex chiosso : > > Hi Viesturs. > > > > Finally I can send to you the HAL component for the "blink" function as I > > explained before. > > This is my first component I wrote so for sure somebody else can do > it > > better than I did . > > Anyway let me know if this component is useful for your needs (for me it > > is) . ;-) . > > You have to add one or more instances of the component to the servo > thread > > (1ms). > > > > Regards > > > > Alex > > > > > > On Mon, Mar 23, 2015 at 10:49 AM, Mark Wendt > wrote: > > > >> On Mon, Mar 23, 2015 at 5:41 AM, Erik Christiansen < > >> dva...@internode.on.net> > >> wrote: > >> > >> > On 23.03.15 05:07, Mark Wendt wrote: > >> > > Slightly off-tangent here. There's an explanation line in the > second > >> > > paragraph of 1.1 Basic Concepts: > >> > > > >> > > "If you are a logic kinda guy the line says If B0 is off AND either > B1 > >> OR > >> > > Q0 is on then coil Q0 is on." > >> > > > >> > > Shouldn't that be: > >> > > > >> > > "If you are a logic kinda guy the line says If B0 is "on" AND > either B1 > >> > OR > >> > > Q0 is on then coil Q0 is on." > >> > > > >> > > According to the paragraph above this, B0 is normally closed. With > B0 > >> > > "off", or open, and either B1 or Q0 is on, then coil Q0 should be > off. > >> > > >> > Though I am "a logic kinda guy", not a ladder wielder, I interpret the > >> > "off" to refer to the B0 coil, not one of its contacts, which may be > NC > >> > or NO. That makes a NC contact an inverted output which is a 1 when > the > >> > input is 0. > >> > > >> > Does that realign the planets? > >> > > >> > Erik > >> > > >> > >> I'm a comp sci kinda guy, so I'm familiar with logic too. ;-) > >> > >> According to the description, B0 and B1 are switches, not relays. Q0 is > >> the relay. And it also says in the description B0 is normally closed. > So, > >> with that in mind, is "normally closed" off, and "open" on? > >> > >> Mark > >> > >> > -- > >> 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 > >> > > > > > -- > > 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 > > > > > -- > 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 > -- 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
Re: [Emc-users] Simple, adjustable timer
Thank you very much, looks really good! Viesturs 2015-03-23 12:51 GMT+02:00 alex chiosso : > Hi Viesturs. > > Finally I can send to you the HAL component for the "blink" function as I > explained before. > This is my first component I wrote so for sure somebody else can do it > better than I did . > Anyway let me know if this component is useful for your needs (for me it > is) . ;-) . > You have to add one or more instances of the component to the servo thread > (1ms). > > Regards > > Alex > > > On Mon, Mar 23, 2015 at 10:49 AM, Mark Wendt wrote: > >> On Mon, Mar 23, 2015 at 5:41 AM, Erik Christiansen < >> dva...@internode.on.net> >> wrote: >> >> > On 23.03.15 05:07, Mark Wendt wrote: >> > > Slightly off-tangent here. There's an explanation line in the second >> > > paragraph of 1.1 Basic Concepts: >> > > >> > > "If you are a logic kinda guy the line says If B0 is off AND either B1 >> OR >> > > Q0 is on then coil Q0 is on." >> > > >> > > Shouldn't that be: >> > > >> > > "If you are a logic kinda guy the line says If B0 is "on" AND either B1 >> > OR >> > > Q0 is on then coil Q0 is on." >> > > >> > > According to the paragraph above this, B0 is normally closed. With B0 >> > > "off", or open, and either B1 or Q0 is on, then coil Q0 should be off. >> > >> > Though I am "a logic kinda guy", not a ladder wielder, I interpret the >> > "off" to refer to the B0 coil, not one of its contacts, which may be NC >> > or NO. That makes a NC contact an inverted output which is a 1 when the >> > input is 0. >> > >> > Does that realign the planets? >> > >> > Erik >> > >> >> I'm a comp sci kinda guy, so I'm familiar with logic too. ;-) >> >> According to the description, B0 and B1 are switches, not relays. Q0 is >> the relay. And it also says in the description B0 is normally closed. So, >> with that in mind, is "normally closed" off, and "open" on? >> >> Mark >> >> -- >> 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 >> > > -- > 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 > -- 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
Re: [Emc-users] Simple, adjustable timer
Hi Viesturs. Finally I can send to you the HAL component for the "blink" function as I explained before. This is my first component I wrote so for sure somebody else can do it better than I did . Anyway let me know if this component is useful for your needs (for me it is) . ;-) . You have to add one or more instances of the component to the servo thread (1ms). Regards Alex On Mon, Mar 23, 2015 at 10:49 AM, Mark Wendt wrote: > On Mon, Mar 23, 2015 at 5:41 AM, Erik Christiansen < > dva...@internode.on.net> > wrote: > > > On 23.03.15 05:07, Mark Wendt wrote: > > > Slightly off-tangent here. There's an explanation line in the second > > > paragraph of 1.1 Basic Concepts: > > > > > > "If you are a logic kinda guy the line says If B0 is off AND either B1 > OR > > > Q0 is on then coil Q0 is on." > > > > > > Shouldn't that be: > > > > > > "If you are a logic kinda guy the line says If B0 is "on" AND either B1 > > OR > > > Q0 is on then coil Q0 is on." > > > > > > According to the paragraph above this, B0 is normally closed. With B0 > > > "off", or open, and either B1 or Q0 is on, then coil Q0 should be off. > > > > Though I am "a logic kinda guy", not a ladder wielder, I interpret the > > "off" to refer to the B0 coil, not one of its contacts, which may be NC > > or NO. That makes a NC contact an inverted output which is a 1 when the > > input is 0. > > > > Does that realign the planets? > > > > Erik > > > > I'm a comp sci kinda guy, so I'm familiar with logic too. ;-) > > According to the description, B0 and B1 are switches, not relays. Q0 is > the relay. And it also says in the description B0 is normally closed. So, > with that in mind, is "normally closed" off, and "open" on? > > Mark > > -- > 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 > blink.comp Description: Binary data -- 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
Re: [Emc-users] Simple, adjustable timer
On Mon, Mar 23, 2015 at 5:41 AM, Erik Christiansen wrote: > On 23.03.15 05:07, Mark Wendt wrote: > > Slightly off-tangent here. There's an explanation line in the second > > paragraph of 1.1 Basic Concepts: > > > > "If you are a logic kinda guy the line says If B0 is off AND either B1 OR > > Q0 is on then coil Q0 is on." > > > > Shouldn't that be: > > > > "If you are a logic kinda guy the line says If B0 is "on" AND either B1 > OR > > Q0 is on then coil Q0 is on." > > > > According to the paragraph above this, B0 is normally closed. With B0 > > "off", or open, and either B1 or Q0 is on, then coil Q0 should be off. > > Though I am "a logic kinda guy", not a ladder wielder, I interpret the > "off" to refer to the B0 coil, not one of its contacts, which may be NC > or NO. That makes a NC contact an inverted output which is a 1 when the > input is 0. > > Does that realign the planets? > > Erik > I'm a comp sci kinda guy, so I'm familiar with logic too. ;-) According to the description, B0 and B1 are switches, not relays. Q0 is the relay. And it also says in the description B0 is normally closed. So, with that in mind, is "normally closed" off, and "open" on? Mark -- 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
Re: [Emc-users] Simple, adjustable timer
On 23.03.15 05:07, Mark Wendt wrote: > Slightly off-tangent here. There's an explanation line in the second > paragraph of 1.1 Basic Concepts: > > "If you are a logic kinda guy the line says If B0 is off AND either B1 OR > Q0 is on then coil Q0 is on." > > Shouldn't that be: > > "If you are a logic kinda guy the line says If B0 is "on" AND either B1 OR > Q0 is on then coil Q0 is on." > > According to the paragraph above this, B0 is normally closed. With B0 > "off", or open, and either B1 or Q0 is on, then coil Q0 should be off. Though I am "a logic kinda guy", not a ladder wielder, I interpret the "off" to refer to the B0 coil, not one of its contacts, which may be NC or NO. That makes a NC contact an inverted output which is a 1 when the input is 0. Does that realign the planets? Erik -- The ultimate barrier is one's viewpoint. - Terry Pratchett, "The Dark Side of the Sun" -- 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
Re: [Emc-users] Simple, adjustable timer
> > I have 2.5.3 version and in Classicladder editor window I see only > "compare" block. Where do I get "operate" block? I see it in > screenshots here: > http://www.vdwalle.com/Norte/Classic%20Ladder%20Examples.html > Slightly off-tangent here. There's an explanation line in the second paragraph of 1.1 Basic Concepts: "If you are a logic kinda guy the line says If B0 is off AND either B1 OR Q0 is on then coil Q0 is on." Shouldn't that be: "If you are a logic kinda guy the line says If B0 is "on" AND either B1 OR Q0 is on then coil Q0 is on." According to the paragraph above this, B0 is normally closed. With B0 "off", or open, and either B1 or Q0 is on, then coil Q0 should be off. Mark -- 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
Re: [Emc-users] Simple, adjustable timer
2015-03-22 2:27 GMT+02:00 Chris Morley : > 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 I have 2.5.3 version and in Classicladder editor window I see only "compare" block. Where do I get "operate" block? I see it in screenshots here: http://www.vdwalle.com/Norte/Classic%20Ladder%20Examples.html 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
Re: [Emc-users] Simple, adjustable timer
Consider monitoring the weight of the hopper as an indication of it's fullness. Omega Engineering has an entire catalog section on load cells and indicators. Strain gages are also a possibility. - Original Message - From: emc-users-requ...@lists.sourceforge.net To: emc-users@lists.sourceforge.net Sent: Sunday, March 22, 2015 1:03:39 AM Subject: Emc-users Digest, Vol 107, Issue 53 Send Emc-users mailing list submissions to emc-users@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/emc-users or, via email, send a message with subject or body 'help' to emc-users-requ...@lists.sourceforge.net You can reach the person managing the list at emc-users-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Emc-users digest..." Today's Topics: 1. Re: Simple, adjustable timer (Dave Cole) 2. Re: Simple, adjustable timer (Viesturs L?cis) 3. Re: Simple, adjustable timer (Chris Morley) 4. Re: Simple, adjustable timer (Dave Cole) 5. Re: Simple, adjustable timer (Dave Cole) 6. Re: Simple, adjustable timer (Viesturs L?cis) -- Message: 1 Date: Sat, 21 Mar 2015 14:11:17 -0500 From: Dave Cole Subject: Re: [Emc-users] Simple, adjustable timer To: emc-users@lists.sourceforge.net Message-ID: <550dc255.9010...@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Ultrasonics work ok if the surface is relatively flat you are aiming at (like liquid level). Otherwise they are iffy. Another idea; Put a reflector in the grit tank on an angle so the grit falls off the reflector. Then use a standard light sensor aimed at the reflector in the tank. When it is covered with grit - the reflector is blocked. When the sand falls off the reflector the sensor sees the reflector and you can add more sand. I had to do something similar to measure the height of a dirt pile (a small one) for a farm machine. An ultrasonic didn't work for that application. 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. Dave On 3/21/2015 12:24 PM, jrmitchellj . wrote: > How about an ultrasonic range finder to watch how full the small hopper is? > > > Ray > > --J. Ray Mitchell Jr. > jrmitche...@gmail.com > (818)324-7573 > > > The things we admire in men, kindness and generosity, openness, honesty, > understanding and feeling are the concomitants of failure in our system. > And those traits we detest, sharpness, greed, acquisitiveness, meanness, > egotism and self-interest are the traits of success. And while men admire > the quality of the first they love the produce of the second. > -John Steinbeck, novelist, Nobel laureate (1902-1968) > > > On Sat, Mar 21, 2015 at 9:49 AM, Jon Elson wrote: > >> On 03/21/2015 09:22 AM, Viesturs L?cis wrote: >>> Hello! >>> >>> My customer acquired different abrasive hopper system for their >>> waterjet and now they want me to implement some controls over it. >>> I managed to do that, but the problem is that it can not be left in >>> "on" state for extended time as it causes the abrasive overfill the >>> small tank on abrasive regulator unit. >>> There are no sensors or anything I could use, so currently my only >>> idea is to turn it on and off on timely basis. >>> >>> >> There are long-range optical sensors that are used for this >> exact purpose. When the hopper is full, it blocks the light >> and shuts off the filling. These either have one unit and >> need a mirror on the far side, or they have two units, one >> sends the beam, the other senses it. We even have stuff like >> this on our electric garage doors to stop them when someone >> is under the door, so it is not real high-tech stuff. >> >> But, you can get modular electronic timers for general >> industrial control purposes. Some have dials, others have >> screwdriver slot adjustments or switches to set the time. >> >> Jon >> >> >> -- >> >> 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 develo
Re: [Emc-users] Simple, adjustable timer
2015-03-22 2:27 GMT+02:00 Chris Morley : > %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. Awesome, thank you! 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
Re: [Emc-users] Simple, adjustable timer
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 : >>> 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
Re: [Emc-users] Simple, adjustable timer
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 : >> 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
Re: [Emc-users] Simple, adjustable timer
> 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 : > > 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 -- 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
Re: [Emc-users] Simple, adjustable timer
2015-03-21 21:11 GMT+02:00 Dave Cole : > 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
Re: [Emc-users] Simple, adjustable timer
Ultrasonics work ok if the surface is relatively flat you are aiming at (like liquid level). Otherwise they are iffy. Another idea; Put a reflector in the grit tank on an angle so the grit falls off the reflector. Then use a standard light sensor aimed at the reflector in the tank. When it is covered with grit - the reflector is blocked. When the sand falls off the reflector the sensor sees the reflector and you can add more sand. I had to do something similar to measure the height of a dirt pile (a small one) for a farm machine. An ultrasonic didn't work for that application. 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. Dave On 3/21/2015 12:24 PM, jrmitchellj . wrote: > How about an ultrasonic range finder to watch how full the small hopper is? > > > Ray > > --J. Ray Mitchell Jr. > jrmitche...@gmail.com > (818)324-7573 > > > The things we admire in men, kindness and generosity, openness, honesty, > understanding and feeling are the concomitants of failure in our system. > And those traits we detest, sharpness, greed, acquisitiveness, meanness, > egotism and self-interest are the traits of success. And while men admire > the quality of the first they love the produce of the second. > -John Steinbeck, novelist, Nobel laureate (1902-1968) > > > On Sat, Mar 21, 2015 at 9:49 AM, Jon Elson wrote: > >> On 03/21/2015 09:22 AM, Viesturs Lācis wrote: >>> Hello! >>> >>> My customer acquired different abrasive hopper system for their >>> waterjet and now they want me to implement some controls over it. >>> I managed to do that, but the problem is that it can not be left in >>> "on" state for extended time as it causes the abrasive overfill the >>> small tank on abrasive regulator unit. >>> There are no sensors or anything I could use, so currently my only >>> idea is to turn it on and off on timely basis. >>> >>> >> There are long-range optical sensors that are used for this >> exact purpose. When the hopper is full, it blocks the light >> and shuts off the filling. These either have one unit and >> need a mirror on the far side, or they have two units, one >> sends the beam, the other senses it. We even have stuff like >> this on our electric garage doors to stop them when someone >> is under the door, so it is not real high-tech stuff. >> >> But, you can get modular electronic timers for general >> industrial control purposes. Some have dials, others have >> screwdriver slot adjustments or switches to set the time. >> >> Jon >> >> >> -- >> 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 >> > -- > 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
Re: [Emc-users] Simple, adjustable timer
How about an ultrasonic range finder to watch how full the small hopper is? Ray --J. Ray Mitchell Jr. jrmitche...@gmail.com (818)324-7573 The things we admire in men, kindness and generosity, openness, honesty, understanding and feeling are the concomitants of failure in our system. And those traits we detest, sharpness, greed, acquisitiveness, meanness, egotism and self-interest are the traits of success. And while men admire the quality of the first they love the produce of the second. -John Steinbeck, novelist, Nobel laureate (1902-1968) On Sat, Mar 21, 2015 at 9:49 AM, Jon Elson wrote: > On 03/21/2015 09:22 AM, Viesturs Lācis wrote: > > Hello! > > > > My customer acquired different abrasive hopper system for their > > waterjet and now they want me to implement some controls over it. > > I managed to do that, but the problem is that it can not be left in > > "on" state for extended time as it causes the abrasive overfill the > > small tank on abrasive regulator unit. > > There are no sensors or anything I could use, so currently my only > > idea is to turn it on and off on timely basis. > > > > > There are long-range optical sensors that are used for this > exact purpose. When the hopper is full, it blocks the light > and shuts off the filling. These either have one unit and > need a mirror on the far side, or they have two units, one > sends the beam, the other senses it. We even have stuff like > this on our electric garage doors to stop them when someone > is under the door, so it is not real high-tech stuff. > > But, you can get modular electronic timers for general > industrial control purposes. Some have dials, others have > screwdriver slot adjustments or switches to set the time. > > Jon > > > -- > 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 > -- 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
Re: [Emc-users] Simple, adjustable timer
On 03/21/2015 09:22 AM, Viesturs Lācis wrote: > Hello! > > My customer acquired different abrasive hopper system for their > waterjet and now they want me to implement some controls over it. > I managed to do that, but the problem is that it can not be left in > "on" state for extended time as it causes the abrasive overfill the > small tank on abrasive regulator unit. > There are no sensors or anything I could use, so currently my only > idea is to turn it on and off on timely basis. > > There are long-range optical sensors that are used for this exact purpose. When the hopper is full, it blocks the light and shuts off the filling. These either have one unit and need a mirror on the far side, or they have two units, one sends the beam, the other senses it. We even have stuff like this on our electric garage doors to stop them when someone is under the door, so it is not real high-tech stuff. But, you can get modular electronic timers for general industrial control purposes. Some have dials, others have screwdriver slot adjustments or switches to set the time. Jon -- 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
Re: [Emc-users] Simple, adjustable timer
Hi Viesturs. I will provide it for you as soon as possible. Alex Il giorno 21/mar/2015 17:05, "Viesturs Lācis" ha scritto: > 2015-03-21 17:58 GMT+02:00 alex chiosso : > > Hi Viesturs. > > I made a custom HAL component that I called "blink" that I used for > > adjustable "on" and "off" period for lamp blinking but can be used to > > create adjustable duty cycle . > > It's quite simple but effective and for sure you can do it better. > > If you are interested I can give it > > but only next Monday because I'm far from the office at the moment. > > > > Thank you! I would really appreciate that, sounds like a perfect fit > for the task. > > > -- > 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 > -- 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
Re: [Emc-users] Simple, adjustable timer
2015-03-21 17:58 GMT+02:00 alex chiosso : > Hi Viesturs. > I made a custom HAL component that I called "blink" that I used for > adjustable "on" and "off" period for lamp blinking but can be used to > create adjustable duty cycle . > It's quite simple but effective and for sure you can do it better. > If you are interested I can give it > but only next Monday because I'm far from the office at the moment. > Thank you! I would really appreciate that, sounds like a perfect fit for the task. -- 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
Re: [Emc-users] Simple, adjustable timer
Hi Viesturs. I made a custom HAL component that I called "blink" that I used for adjustable "on" and "off" period for lamp blinking but can be used to create adjustable duty cycle . It's quite simple but effective and for sure you can do it better. If you are interested I can give it but only next Monday because I'm far from the office at the moment. Regards Alex Il giorno 21/mar/2015 16:46, "andy pugh" ha scritto: > On 21 March 2015 at 14:22, Viesturs Lācis > wrote: > > > So the question is - what HAL modules could I use? The thing is that > > user has to be able to adjust "on" and "off" periods from a vcp panel. > > While agreeing that a sensor would be better, it sounds like you could > use a very low-frequency software pwmgen. > > > -- > atp > If you can't fix it, you don't own it. > http://www.ifixit.com/Manifesto > > > -- > 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 > -- 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
Re: [Emc-users] Simple, adjustable timer
On 21 March 2015 at 14:22, Viesturs Lācis wrote: > So the question is - what HAL modules could I use? The thing is that > user has to be able to adjust "on" and "off" periods from a vcp panel. While agreeing that a sensor would be better, it sounds like you could use a very low-frequency software pwmgen. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- 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
Re: [Emc-users] Simple, adjustable timer
"There are no sensors or anything I could use" A timer will be at best cumbersome, and it is a "dumb" control in that it doesn't have any information about the desired result. If activated when the bin is almost full, it'll overfill the small tank. I prefer the data driven approach. I'd add a sensor. A capacitive prox sensor seems ideal for this application. https://duckduckgo.com/?q=capacitive+prox+powder On 03/21/2015 10:22 AM, Viesturs Lācis wrote: > Hello! > > My customer acquired different abrasive hopper system for their > waterjet and now they want me to implement some controls over it. > I managed to do that, but the problem is that it can not be left in > "on" state for extended time as it causes the abrasive overfill the > small tank on abrasive regulator unit. > There are no sensors or anything I could use, so currently my only > idea is to turn it on and off on timely basis. > > So the question is - what HAL modules could I use? The thing is that > user has to be able to adjust "on" and "off" periods from a vcp panel. > > 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 > > -- 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
[Emc-users] Simple, adjustable timer
Hello! My customer acquired different abrasive hopper system for their waterjet and now they want me to implement some controls over it. I managed to do that, but the problem is that it can not be left in "on" state for extended time as it causes the abrasive overfill the small tank on abrasive regulator unit. There are no sensors or anything I could use, so currently my only idea is to turn it on and off on timely basis. So the question is - what HAL modules could I use? The thing is that user has to be able to adjust "on" and "off" periods from a vcp panel. 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