Time entry from HMI compared against curr_hour and curr_minute

PFrog

Member
Join Date
Apr 2011
Location
Ohio
Posts
83
Hello,


I am going to use an HMI for a 4 digit military rime entry. I want to compare this value against the curr_hour and curr_minute in the control logix processor. My question is how to break up the 4 digit number with the two upper, and two lower values that I can use to directly compare against curr_hour and curr_minute?


I could have two different entries on the HMI to accomplish this, but I liked the idea of just having one.

I am using Rslogix 5000 with structured text.

Thanks!
 
use a GSV to put the time into tags, then compare as normal


I am using a GSV to pull the system time from the control logix processor. I am looking to compare those values against a 4 digit military time entry from an HMI. I am wanting to know the best way to break up the 4 digit time entry with the two upper digits comparing against the current hour (from the GSV) and the two lower digits comparing against the current minute (from the GSV). I am not certain on how to separate the 4 digit number...
 
Check that the division works with minutes over 50. If not do the mod first then subtract the extracted minutes from the total before dividing by 100.
 
Last edited:

Similar Topics

I have a colleague working on a system with a Siemens S7-1500 PLC, a Siemens TP1200 Comfort HMI programmed using TIA Portal V15.1. He is trying...
Replies
2
Views
3,247
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...
Replies
1
Views
1,481
Need Help. I need to add an entry field to a PV1000 to record product lot #. The field is 8 characters long, all numeric. The max numeric value...
Replies
5
Views
3,385
Hi We have key operated selection switch in a panel on which HMI(MP277) is also mounted. Is it possible that when this selection switch is in OFF...
Replies
12
Views
6,976
Hi everybody, I have about three Red Lion HMI's, the calibration on the screens seems correct but where I'm using the pop up keypad to enter...
Replies
1
Views
116
Back
Top Bottom