12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

InstructionIFRobotWare-OSIF - If a condition is met, then ...; otherwise ...IF is used when different instructions are to be executed depending on whether a conditionis met or not.ExamplesIF reg1 > 5 THENSet do1;Set do2;ENDIFThe do1 and do2 signals are set only if reg1 is greater than 5.IF reg1 > 5 THENSet do1;Set do2;ELSEReset do1;Reset do2;ENDIFThe do1 and do2 signals are set or reset depending on whether reg1 is greaterthan 5 or not.ArgumentsIF Condition THEN ... {ELSEIF Condition THEN ...} [ELSE ...]ENDIFConditionData type: boolThe condition that must be satisfied for the instructions between THEN andELSE/ELSEIF to be executed.<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 141

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!