12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

InstructionDecrRobotWare-OSDecr - Decrements by 1Decr is used to subtract 1 from a numeric variable or persistent.ExampleDecr reg1;1 is subtracted from reg1, i.e. reg1:=reg1-1.ArgumentsDecrNameNameData type: numThe name of the variable or persistent to be decremented.ExampleTPReadNum no_of_parts, "How many parts should be produced? ";WHILE no_of_parts>0 DOproduce_part;Decr no_of_parts;ENDWHILEThe operator is asked to input the number of parts to be produced. The variableno_of_parts is used to count the number that still have to be produced.SyntaxDecr [ Name ’:=’ ] < var or pers (INOUT) of num > ’;’<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 81

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

Saved successfully!

Ooh no, something went wrong!