Hello,
I have been learning to programming in KRL using KRC2, and I wanna do a program in SPS.SUB that show a message to user after a determined time (for example two years after the preventive maintenance), but when I use the system variable $date with "if" logic there is a problem, an error "waiting a constant". I used the follow structure in accordance the manual.
IF ((ROBRUNTIME>=XXXX) OR ($DATE>={CSEC 00, SEC 00, MIN 00, HOUR 12, DAY 5, MONTH 9, YEAR 2016})) THEN
; MSG COMANDS
ENDIF
Always when I use the $ROBRUNTIME alone the logic gets success. Anyone had this problem before and can help me?