UsingMicro820as a simple On OFF timer

I want to replace a Grasslin timer
attachment.php

with something that Communicates via EtherNet/IP™
I keep getting schedule changes that force me to go out and mannually change the timer settings.
I was thinking of using a Micro820
http://www.plctalk.net/qanda/attachment.php?attachmentid=58442&stc=1&d=1622562114
Anybody done something like this, or have a link to a sample so I don’t have to reinvent the wheel?

FM1D14-AV-U.JPG Micro820-1.JPG
 
A Micro820 seems like a bit of a sledgehammer to crack this nut; do network-capable programmable timers not already exist e.g. like HVAC thermostats, Google nest, etc.*?


Assuming a PLC, there are several approaches, each too simple to warrant complete examples. One could model an analog Grässlin with an array of 96 bits, each representing one 15-minute (quarter-hour) period of the day. The PLC continually checks the time of day to to calculate an index into that array, and sets the output based on the value of the bit at that index. That should be a fairly trivial program, with the meat of it like this:

Code:
the_output := bitarray[index];

OR

 bitarray[index]    the_output
------] [--------------( )-----
depending on the language of choice

The parts that will take more time and reading of the documentation to implement will be:

  • getting the time of day (e.g. seconds since zero epoch modulo 86400, plus time zone and DST correction)
  • convert that time of day to the index in the range 0-95
    • e.g. divide time of day in seconds by 900
      • dealing with any rounding in the quotient
  • ensuring the PLC internal clock keeps synchronized with external time to some desired accuracy
    • an NTP client may be built-in
    • if clock drift is small and accuracy requirements large, then a manual adjustment once per month might be adequat
  • dealing with daylight savings time, if an NTP client does not handle it
    • e.g. if changing the time settings is a regular occurrence, then manually adjusting the internal clock for DST is only two more steps per year
  • dealing with power outages
I think one would spend far more time on the user interface to choose the array of bit states, although if the Micro820 has a web server, then it might be possible to use that alone and no custom interface would be required.


* Cf. here, probably overkill.
 

Similar Topics

I am looking for some recommendations for a simple, stand-alone HMI with data trending and long-term logging. It would interface to a single...
1
Replies
378
Views
Wondering if anyone has used dedicated hardware for machine vision to detect objects and trigger an output for an input to the PLC. First thing...
5
Replies
410
Views
Hi everyone, I'm new to the PLC world and currently learning step by step alongside my friend, who is a PLC programmer. I come from a mechanical...
5
Replies
857
Views
I Have 3 different "HMIS" Floating around a plant and each are going to the same PLC. One is a Hope Screen with ME Station 17", the Rest are two...
1
Replies
489
Views
I am looking for some advice on IoT / cloud solutions, as I have virtually no experience with those. We work with a customer who has a number of...
8
Replies
682
Views
Top