Validating date entry from HMI to PLC

gregmmurray

Member
Join Date
Jan 2013
Location
Houston
Posts
5
Hello, again ... I'm working with a Micrologix 1200 with RTC module and a PanelView Component C400.

I've created the interface and logic to handle entering dates and times in the HMI and using CPW to update the RTC; everything is (was) working until I was testing yesterday - January 29th. I happened to attempt to change the date to February and the processor faulted with a major fault on the write to the RTC. This is almost certainly due to the fact that, by just changing the "month" field in RTC:0.MON to "2," I created a reference to a date that cannot exist - February 29th, 2013.

The only way I can figure to tackle this is to create three conditional JSRs that, when they detect that it's (1) Feb, (2) April, June, Sept or Nov or (3) Jan, Mar, May, July, Aug, Oct or Dec - and, then, before CPW to RTC:0.MON, adjust the current value of RTC:0.DAY to something safe (but, potentially, not correct).

I suppose, too, that I'll have to do the same, exact, thing for when they change the day, since the HMI doesn't seem to allow me to do conditional input validation.

Am I barking up the right tree? Is there a better/easier way to do this ... seems like a common problem and I'm surprised that there's not a built-in way to do this - or, is there and I've just missed it?
 
Last edited:
I have not used the Panelview C400, but on many HMIs (as Automation Direct C-More panels have Input Min and Max settings for each PLC tag value), there are built-in functions that allow you to check for a correct value range before the PLC will accept the entry. You should be able to write MicroLogix rungs to do the error checking (and send a response to a box on your Panelview screen) if there are no built-in feedback bits.
 
Last edited:

Similar Topics

I am having a consistent issue with Proficy ME 9.5. While downloading I had an issue with it completely crashing when it gets to the "validating...
Replies
0
Views
1,144
Hello all, I am relative new to PLC's. I am looking to read 4 Modbus registers on a slave device via RS485 and then validate the data. Can a PLC...
Replies
5
Views
2,183
Hi Everybody, While I am trying to start configure RSSql,I m getting Error(33190)'The service could not validated using specified username and...
Replies
0
Views
3,447
Hi, I use a 1756-DHRIO card with a CLX. The card is in slot 3 -I use channel A as RIO and channel B as DH+ network with 6 nodes connected to...
Replies
16
Views
10,349
From the Red Lion website, after some customer enquiries in the last week or so... Rev. March 25, 2024 [18:30] Just thought it might help a...
Replies
9
Views
258
Back
Top Bottom