Hi
Can anyone help me with the folowing in Step 7?
6 cardinal points are entered at SCADA for times between which a different setpoint will be valid. Each of these times will be passed to the PLC as two reals i.e. Quarter past ten will consist of 10 and 15.
In order to determine if it's after 10:15 it looks like I have to get the time and date using the read_CLK function then convert that to time then convert that to a real in milliseconds, then covert the 10 hours and fifteen minutes to milliseconds and compare with current time.
Q?? is there a neater way of achieving this ???
Thanks in advance to any S7 programmers who can help.
Dave
Can anyone help me with the folowing in Step 7?
6 cardinal points are entered at SCADA for times between which a different setpoint will be valid. Each of these times will be passed to the PLC as two reals i.e. Quarter past ten will consist of 10 and 15.
In order to determine if it's after 10:15 it looks like I have to get the time and date using the read_CLK function then convert that to time then convert that to a real in milliseconds, then covert the 10 hours and fifteen minutes to milliseconds and compare with current time.
Q?? is there a neater way of achieving this ???
Thanks in advance to any S7 programmers who can help.
Dave