I've got a program I'm working on, and one I'm referencing.
I've got some PLC that has a bunch of data and registers that help an HMI display data over time. BUT, i'm trying to feed a day long accumulator into an hour to hour 24 tag array.
In the referenced program it's something along the lines of "totalprtshrcnt[date.hour]. I can't find at any point that the date.time is defined. Not even in the GSV that's on there It looks like whoever put this together made their own data type called "DateTime_Type" and then from there it's broken down into datetime.year, datetime.month, etc. Again, I don't see where it's defined.
How do I replicate this in the other program? It's been done with a GSV but it's into an array that is phrased as such Datetime[0] - Datetime[8] or so. When trying to make that count that reads into a 24 hour array using the Datetime[x] it errors out. It won't let me do a similar totalprtshrcnt[datetime[3]].
I've tried copying it to a dint, and that helps a time defined problem as it's a little more basic, but doesn't not help me with this.
Any chance someone can shed some light on this? I'm sure my wording makes no sense, let me know if I can clarify in anyway. Thank you in advance!
I've got some PLC that has a bunch of data and registers that help an HMI display data over time. BUT, i'm trying to feed a day long accumulator into an hour to hour 24 tag array.
In the referenced program it's something along the lines of "totalprtshrcnt[date.hour]. I can't find at any point that the date.time is defined. Not even in the GSV that's on there It looks like whoever put this together made their own data type called "DateTime_Type" and then from there it's broken down into datetime.year, datetime.month, etc. Again, I don't see where it's defined.
How do I replicate this in the other program? It's been done with a GSV but it's into an array that is phrased as such Datetime[0] - Datetime[8] or so. When trying to make that count that reads into a 24 hour array using the Datetime[x] it errors out. It won't let me do a similar totalprtshrcnt[datetime[3]].
I've tried copying it to a dint, and that helps a time defined problem as it's a little more basic, but doesn't not help me with this.
Any chance someone can shed some light on this? I'm sure my wording makes no sense, let me know if I can clarify in anyway. Thank you in advance!