Download WMPro Reference Manual
Transcript
WebMaster Pro
WMPro Reference Manual
11.2.8. Set and Clear manual override
A new feature in the 3.1 release is a possibility to set and clear manual override from
scripts. CLRMANUALOVERRIDE disables manual override for the argument
channel. This can be useful if there are certain states when stupid users should not be
able to manually override your clever program.
SETMANUALOVERRIDE makes the interface symmetrical, and maybe it will be
useful to someone sometime.
The statements are equal to check and uncheck the manual override checkbox in the
web interface.
11.2.9. Comments
To make comments, use the “%” sign. The rest of the line will be treated as a comment.
ROUTINE StatementsExample
ALIAS
LeftEnd
= CHANNEL[17]; %Left end reached (DIN)
RightEnd
= CHANNEL[18]; %Rigth end reached (DIN)
GoLeft
= CHANNEL[25]; %(DOUT)
GoRigth
= CHANNEL[26]; %(DOUT)
TimeLeft
= CHANNEL[50]; %Counting on time for GoLeft
TimeRigth = CHANNEL[51]; %Counting on time for GoRigth
VAR
Direction;
BEGIN
IF Direction = 0 THEN
GoLeft <- NOT LeftEnd;
GoRigth <- 0;
ELSE
GoLeft <- 0;
GoRigth <- NOT RightEnd;
ENDIF;
IF LeftEnd AND (Direction = 0) THEN
Direction := 0;
RESET(TimeLeft);
PRINT("Left end reached, Direction = ", Direction);
ENDIF;
Abelko Innovation
50