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 w3BBfL7q030605 for ; Wed, 11 Apr 2018 13:41:22 +0200 Received: from majordom by post.thorcom.com with local (Exim 4.14) id 1f6E3w-0001il-SF for rs_out_1@blacksheep.org; Wed, 11 Apr 2018 12:37:16 +0100 Received: from [195.171.43.32] (helo=relay1.thorcom.net) by post.thorcom.com with esmtp (Exim 4.14) id 1f6E3w-0001ic-C3 for rsgb_lf_group@blacksheep.org; Wed, 11 Apr 2018 12:37:16 +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 1f6E3s-0006f4-En for rsgb_lf_group@blacksheep.org; Wed, 11 Apr 2018 12:37:15 +0100 Received: by mail-wm0-x22d.google.com with SMTP id r191so3449624wmg.4 for ; Wed, 11 Apr 2018 04:37:12 -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=date:from:message-id:to:subject:in-reply-to:references:mime-version :content-transfer-encoding; bh=XssQaeI836O5eBRO7xfmkdUD57yTJOsWtT9OMVaREDA=; b=mWlw/bVgcDwdXInP7dtJTlJr+9AKYdW8XnX41HxzF++iKOaOOGRXXmyS3Qq9eiLrf8 MFkIOIa+u8JTwV6BSTlEWUEO8rx2ouMpGOP6ME4iu2sAOrNeAdqLlcTbM1YrkSTCcCkn sscYCaOXKlvmTBN+rASiCus4+yA9eTS2mwEPp24F3Xgnmo3YPqQ9VvuMBIX5PGGD/mEg /mYNsG13O8RKziXfc2EnNSTqERMVr596sYQp8vremfjFp/iiD9egKbW92xaZDmLYIOr3 R6G3uNEexWec/mK0NZafz/2d1kCvugRib/obXFAB+lQ01WnnsqzOA3PzvUXxCy8mpvZ/ eBbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:message-id:to:subject:in-reply-to :references:mime-version:content-transfer-encoding; bh=XssQaeI836O5eBRO7xfmkdUD57yTJOsWtT9OMVaREDA=; b=YDVxkCIhjiXcHhGjhUQ6n8xkk7JLFGde922cw/tIqey3/KDxNbVEqf7Cg1jBIy0Bd3 f6WxpatVklF3/vbNXC6AZJtlR4Q/N44HW30QukNjzs6NB+24GapDj3TZkGrMPWwi6qjW PwS8QJ+M6fYTRcKKg37A97vYlioPrV4EMcvU07TYQC1dbpU2hLn5xlCANg1JEh7Ezw9q ahHJeNu8miqfQPhFhu99nOD7Y9jGPn8sW0kGRjhiKR/NNq9gXPcOSEqEwssvB2Lp1jrk RLgMUJzsc1LSCywBqGgd+EVz/THfelX5KbSujdKSUeBDAhCs3/empD9UD3cSPo+dTBw3 1OsA== X-Gm-Message-State: ALQs6tDdACbZTmYpJI3OejzHAgN9/2nu24a2UXxiQ8ehnE3jpwGIDUHz X8+X8EFVVRmp3Ms0MjOjKFojLw== X-Google-Smtp-Source: AIpwx4/gZKnzYYhg7ZjlszVOHczZObZuKNEMscyCS6QXU/yTXwNZ6fG5w3l3+TpS1xiTPFkocWcKaQ== X-Received: by 10.80.224.200 with SMTP id j8mr6759134edl.198.1523446631598; Wed, 11 Apr 2018 04:37:11 -0700 (PDT) Received: from OfficeWin7.lan (82-70-254-222.dsl.in-addr.zen.co.uk. [82.70.254.222]) by smtp.gmail.com with ESMTPSA id y4sm728981edi.4.2018.04.11.04.37.10 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 11 Apr 2018 04:37:10 -0700 (PDT) Date: Wed, 11 Apr 2018 12:37:09 +0100 From: Chris Wilson X-Priority: 3 (Normal) Message-ID: <637789342.20180411123709@gmail.com> To: Andy Talbot In-Reply-To: References: <1215299641.20180411111636@gmail.com> MIME-Version: 1.0 X-Spam-Score: 0.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: 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? ;)) [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dead.fets[at]gmail.com) 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Scan-Signature: d7907c3bf895ca41e0bedc3fa074f0d4 Subject: Re: LF: Windows software to drive a relay at a given time? Content-Type: text/plain; charset=utf-8 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on post.thorcom.com X-Spam-Level: X-Spam-Status: No, hits=0.8 required=5.0 tests=PRIORITY_NO_NAME 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by klubnl.pl id w3BBfL7q030605 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