time comparison VBA

Join Date
Nov 2011
Location
Ireland
Posts
182
I want to create a time comparison on a SCADA screen. I need to have a real time clock and a box whereby an operator can input a time. when the operator input time is less than or equal to the real time clock a light is green and when the input time is greater than the real time the light is red.

I have a VBA editor and believe I can complete this task using VB. has anyone got any suggestions for code and .ocx objects? or any other suggestions

regards
 
It wouldn´t be easier to create something like a time window inside the plc program where the operator has to press a button within that limit of time, if he presses the button outside limit red light will glow, if on time then green lite will glow, this way you avoid vba hassle. Regardless of plc brand.
 
Thanks for the suggestion widelto. I see what you are saying but ideally a VBA solution would be preferable as I may not get access to the plc programming software.

I only need three components

1. A combox containing a list A,B,C,D
2. A label with displaying a real time clock
3. A label that the operator can type in the time
 

Similar Topics

Per title - what's the worst and best wire duct brands you have worked with, and why? They all look the same on the outside, but there are...
Replies
13
Views
2,398
I have installed a Cognex barcode scanner on a machine. I have a 1769-L18ER CompactLogix processor. I have communication setup and working. I...
Replies
26
Views
4,578
Is there anyway to be certain that the memory module in a ML1400 has been written to with the current program? I have controllers in the field...
Replies
0
Views
869
Hello all, I'm trying to come up with an elegant solution to check an Array of Values to see if they are greater than zero but less than 15 My...
Replies
11
Views
2,348
Hello experts; If i want to compare two companies PLC's features which points should be considered especially if i want to compare Siemens and...
Replies
9
Views
2,479
Back
Top Bottom