Bering C Sparky
Lifetime Supporting Member
Here is one that got me going
If I want to check if an instruction is true on first scan and I want to know if it is true between 1800 - 0000.
Can I use GEQ = 18 ----- LES = 00 both with DateTime.Hour
OR will I have to use
GEQ = 18 Hour ----- LEQ=23 Hour LEQ= 59 Min LEQ = 59 Sec
Obviously (obvious in my mind I should say) the PLC does not see 18 or 23 or anything inbetween as less than 00, so I went with the 3 LEQ instructions to bring me to 1 second before 0000.
How do you all normally handle this situation???
Curious
If I want to check if an instruction is true on first scan and I want to know if it is true between 1800 - 0000.
Can I use GEQ = 18 ----- LES = 00 both with DateTime.Hour
OR will I have to use
GEQ = 18 Hour ----- LEQ=23 Hour LEQ= 59 Min LEQ = 59 Sec
Obviously (obvious in my mind I should say) the PLC does not see 18 or 23 or anything inbetween as less than 00, so I went with the 3 LEQ instructions to bring me to 1 second before 0000.
How do you all normally handle this situation???
Curious
Last edited: