Can someone tell me what is wrong with the following code:
'Get the Set Value of the timer and store in a variable
ElapsedTimeSVFor = getTimerSV(4)
ElapsedTimeSVRev = getTimerSV(5)
'Elapsed Time Forward Display
IF TESTIO(SBX_LSR)=0 '& TESTIO(SBX_LSF)=0 & TESTIO(LSF_LATCH)=0)
THEN
ElapsedTimeDisplay = ElapsedTimeSVFor - TIMERPV[4]
ELSEIF TESTIO(SBX_LSR)=0 & TESTIO(LSF_LATCH)=1
THEN
ElapsedTimeDisplay = ElapsedTimeSVFor - TIMERPV[5]
ELSE
ElapsedTimeDisplay = 0
ENDIF
I get a message:
Error:Syntax error, missing: "]" with the last square bracket after TIMERPV[4] highlighted?
Thanks