Hello everyone
I have a DELTA PLC DVP20EX2 and I want to use Real time clock in my application.
In the manual they said that TCMP instruction compares the value of rtc with a preset value .
TCMP S1 S2 S3 S D .
S1: “Hour” for comparison (K0~K23)
S2: “Minute” for comparison (K0~K59) S3: “Second” for comparison (K0~K59)
S: Current time of RTC (occupies 3 consecutive devices)
D: Comparison result (occupies 3 consecutive devices)
but the problem that the S register begins with seconds not hours to compare those 3 registers.
thank you
I have a DELTA PLC DVP20EX2 and I want to use Real time clock in my application.
In the manual they said that TCMP instruction compares the value of rtc with a preset value .
TCMP S1 S2 S3 S D .
S1: “Hour” for comparison (K0~K23)
S2: “Minute” for comparison (K0~K59) S3: “Second” for comparison (K0~K59)
S: Current time of RTC (occupies 3 consecutive devices)
D: Comparison result (occupies 3 consecutive devices)
but the problem that the S register begins with seconds not hours to compare those 3 registers.
thank you