In No-Hold program I would like to have :
WAIT FOR ($DIN[5] = OFF) AND ($DOUT[2] = OFF) OR ($DIN[19] = ON) OR ($DIN[40] = OFF) OR ($DIN[41] = OFF) OR ($DIN[51] = OFF) OR $DIN[3] AND $DIN[4] OR ($DIN[3] = OFF) AND ($DIN[4] = OFF)
I think it works well, but when I add in the beginning (wait for "state selector on AUTO"):
($GO[47] = ON) AND (...all other...)
=
WAIT FOR ($GO[47] = ON) AND (($DIN[5] = OFF) AND ($DOUT[2] = OFF) OR ($DIN[19] = ON) OR ($DIN[40] = OFF) OR ($DIN[41] = OFF) OR ($DIN[51] = OFF) OR $DIN[3] AND $DIN[4] OR ($DIN[3] = OFF) AND ($DIN[4] = OFF))
I have error 17701
( 0-INFO Invalid or missing data type specification)
(The data type for a variable or constant is either missing or invalid. The VAR statements in the following example would cause this error to occur since the data type is missing in the first one and a misspelled type in the second: - - VAR My-Var : - VAR TimVar : INTGR)
How to do that?