Return-Path: Received: from post.thorcom.com (post.thorcom.com [195.171.43.25]) by klubnl.pl (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id w3BBwcwd030705 for ; Wed, 11 Apr 2018 13:58:40 +0200 Received: from majordom by post.thorcom.com with local (Exim 4.14) id 1f6EKn-00020d-L5 for rs_out_1@blacksheep.org; Wed, 11 Apr 2018 12:54:41 +0100 Received: from [195.171.43.32] (helo=relay1.thorcom.net) by post.thorcom.com with esmtp (Exim 4.14) id 1f6EKn-00020U-3P for rsgb_lf_group@blacksheep.org; Wed, 11 Apr 2018 12:54:41 +0100 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by relay1.thorcom.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1f6EKi-0006of-VT for rsgb_lf_group@blacksheep.org; Wed, 11 Apr 2018 12:54:39 +0100 Received: by mail-wm0-x22d.google.com with SMTP id x82so3270968wmg.1 for ; Wed, 11 Apr 2018 04:54:36 -0700 (PDT) X-DKIM-Result: Domain=gmail.com Result=Good and Known Domain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=a0ZQqB/WTxejlKjFD77hB7A9DBnPbpHIvzRnhMakkBA=; b=clVwqfoRVFVYF5Yx4Ngz5ViB2jVuBbJDVzNAJSAJiQBff7h69AAUFRnZ045ekdxRIq uF+T4tcIHIhQ8FAZxyJbSq+KoeqYyfeE7XpgHqU+AcWGGt+5rVgFsBX+0Jh68x4/J2EF wT7oDoqcPqPls3aTB1vx29zdm3PyONBq6mQm0+XfJLYgf6R9KbiyZBe6/yMblZu0kGxA WIE8wCDHV+h5Wl7aZVFuVwzA0Bonkwf8yjr5e/rTApMWRgN4unVW/vmu8gXwo4s49jSt dyUuurH9Qeji3EzXybWw7c7AS4efw8RaTk1nY3Xz8qQYIg/yOuwnVWfq0q3x5Db7Iv/B IUTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=a0ZQqB/WTxejlKjFD77hB7A9DBnPbpHIvzRnhMakkBA=; b=PjRTeTUYrxWTkCMrScmjmqjahgBmiGOfSGAX9dKZGz89+9KYJDHNNt4rrjQLFx3M3/ BIQDUgrZCxdHlJHJgjWeTS7Z759VxpD/oF/OSrsIsq/aSpiwEeYPqCSNK0tLjFVHL/7p OoWi9MCDeSHEqYuMqMnjy/ZfXgD4hByQZ8HV7seFP8w+4TasDLzPN2GjSD2Nqlgb7+eo HsywmRVW+QGHpF0CZIYGBuFsSRdvvFYx+W3NQigDNJEkF9ZntnwYREtiP8AFdhnrX6zG oCkKSAQNpi6l9cBHuBI0nMhsEpmmedIBu+D2HgsJvy8FSw0gllZI4UwLnd20lUatmFcc FztQ== X-Gm-Message-State: ALQs6tAd4hMengR+LkURxROKaBfvuXaHxTsJKvooNqXz7bvINjmTYEri OtPTH3/vLGa4sDWD/9ngm1ABTt+AUE1wbIfzgdvyRg== X-Google-Smtp-Source: AIpwx4+paBVQu1Hk0enCOL/hhzoukcSe+T2JuQgR+i0LbEe3ZY2EIEObzK3BbNC2Lw2tlPNpGxB/6yU5wwcnLs4F9Y8= X-Received: by 10.80.144.120 with SMTP id z53mr8870403edz.163.1523447676208; Wed, 11 Apr 2018 04:54:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.154.195 with HTTP; Wed, 11 Apr 2018 04:54:35 -0700 (PDT) In-Reply-To: <637789342.20180411123709@gmail.com> References: <1215299641.20180411111636@gmail.com> <637789342.20180411123709@gmail.com> From: Andy Talbot Date: Wed, 11 Apr 2018 12:54:35 +0100 Message-ID: To: LineOne X-Spam-Score: 1.0 (+) X-Spam-Report: Spam detection software, running on the system "relay1.thorcom.net", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Yes, if you run it from a windows click, the whole thiing will close when it goes off and completes. Were you to run it from a command prompt, it would then merely say "OFF" and sit there looking unloved and unwanted :-) [...] Content analysis details: (1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andy.g4jnt[at]gmail.com) 0.0 HTML_MESSAGE BODY: HTML included in message 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 1.0 FREEMAIL_REPLY From and body contain different freemails X-Scan-Signature: 4a8faa6952847c1ec651f883b63fc053 Subject: Re: LF: Windows software to drive a relay at a given time? Content-Type: multipart/alternative; boundary="94eb2c0ded16930b4c0569914d34" X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on post.thorcom.com X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=HTML_MESSAGE autolearn=no version=2.63 X-SA-Exim-Scanned: Yes Sender: owner-rsgb_lf_group@blacksheep.org Precedence: bulk Reply-To: rsgb_lf_group@blacksheep.org X-Listname: rsgb_lf_group X-SA-Exim-Rcpt-To: rs_out_1@blacksheep.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false --94eb2c0ded16930b4c0569914d34 Content-Type: text/plain; charset="UTF-8" Yes, if you run it from a windows click, the whole thiing will close when it goes off and completes. Were you to run it from a command prompt, it would then merely say "OFF" and sit there looking unloved and unwanted :-) I thought you might want something like that How about an opto controlled triac to, in turn, switch your contactor. Or opto-relay (solid dtate relay) Google the terms, or better, go to your favourite supplier's web site and enter as search terms I don't have any time now to look at ideas for switchies, but will be back on line later. I'll also add some twiddly bits to that prog to make it look nicer (only colours and layout stuff, and possibly some error trapping) Andy On 11 April 2018 at 12:37, Chris Wilson wrote: > > > Hello Andy, > > > Thanks for that, just tried it via Remote Desktop and it appears to > open port 6 as requested fine. But at the designated OFF time the > whole programme appears to close, is that as expected? I assume prior > to that the port changes state back again? How would you suggest > controlling an industrial single phase contactor? What I want to be > able to do is turn on my huge Farnell H50/60 linear power supply via > the mains input at a given time, and shut it down again at a later > time. It can draw up to 16 Amps constant with a BIG inrush current, so > I guess electro mechanical switch is the cheapest option? Thanks > again, and thanks Stefan re the tip to try Spectrum Lab! (Is there > anything SL cannot do? ;)) > > Wednesday, April 11, 2018, 12:22:32 PM, you wrote: > > > Just in case it matters, I initially test for all valid COM ports > > by opening and closing each in turn, then testing for an error. > > If that causes problems to anything on another port that has not yet > > been opened, like another PTT control, it will briefly 'blip' > > > > Any COM port already open will get rejected by this test so no adverse > effect there. > > > > > Andy > > > > > On 11 April 2018 at 12:18, Andy Talbot wrote: > > > Try this > > http://www.g4jnt.com/DropF/simpletimer.zip > > > > > It lets you abort the on time using the [esc] key > > > > Source code is in there as well > > > > > All in PowerBasic, command line compiler version > > (By far the nicest way to programme simple things that don't need whizzy > windows interfaces) > > > > Andy > > > > > > > -- > Best regards, > Chris mailto:dead.fets@gmail.com > > > --94eb2c0ded16930b4c0569914d34 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, if you run it from a windows click, the whole thiing = will close when it goes off and completes.
Were you to run it from a co= mmand prompt, it would then merely say "OFF" and sit there lookin= g unloved and unwanted :-)

I thought you might wan= t something like that
How about an opto controlled triac to, in t= urn, switch your contactor.=C2=A0 =C2=A0Or=C2=A0 opto-relay (solid dtate re= lay)=C2=A0

Google the terms, or better, go to your= favourite supplier's web site and enter as search terms

=
I don't have any time now to look at ideas for switchies, bu= t will be back on line later.=C2=A0 =C2=A0 I'll also add some twiddly b= its to that prog to make it look nicer (only colours and layout stuff, and = possibly some error trapping)

Andy

<= /div>


On 11 April 2018 at 12:37, Chris Wilson <dead.fets@gmail.com><= /span> wrote:


Hello Andy,


Thanks=C2=A0 for=C2=A0 that,=C2=A0 just tried it via Remote Desktop and it = appears to
open=C2=A0 port=C2=A0 6=C2=A0 as=C2=A0 requested=C2=A0 fine. But at the des= ignated OFF time the
whole=C2=A0 programme appears to close, is that as expected? I assume prior=
to=C2=A0 that=C2=A0 the=C2=A0 port=C2=A0 changes=C2=A0 state=C2=A0 back aga= in? How would you suggest
controlling=C2=A0 an=C2=A0 industrial=C2=A0 single phase contactor? What I = want to be
able=C2=A0 to=C2=A0 do is turn on my huge Farnell H50/60 linear power suppl= y via
the=C2=A0 mains=C2=A0 input=C2=A0 at=C2=A0 a given time, and shut it down a= gain at a later
time. It can draw up to 16 Amps constant with a BIG inrush current, so
I=C2=A0 guess=C2=A0 electro=C2=A0 mechanical=C2=A0 switch=C2=A0 is the chea= pest option? Thanks
again,=C2=A0 and=C2=A0 thanks=C2=A0 Stefan=C2=A0 re the tip to try Spectrum= Lab! (Is there
anything SL cannot do? ;))

Wednesday, April 11, 2018, 12:22:32 PM, you wrote:

> Just in case it matters, I initially test for all valid COM ports
> by opening and closing each in turn,=C2=A0 then testing for an error.= =C2=A0 =C2=A0
> If that causes problems to anything on another port that has not yet > been opened, like another PTT control,=C2=A0 =C2=A0 it will briefly &#= 39;blip'


> Any COM port already open will get rejected by this test so no adverse= effect there.



> Andy



> On 11 April 2018 at 12:18, Andy Talbot <andy.g4jnt@gmail.com> wrote:

> Try this
> http://www.g4jnt.com/DropF/simpletimer.zip


> It lets you abort the on time using the [esc] key


> Source code is in there as well=C2=A0



> All in PowerBasic, command line compiler version
> (By far the nicest way to programme simple things that don't need = whizzy windows interfaces)


> Andy






--
Best regards,
=C2=A0Chris=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 mailto:dead.fets@gmail.com



--94eb2c0ded16930b4c0569914d34--