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 <[email protected]> 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:[email protected]
|