09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Add Adds a numeric value<br />

Examples<br />

Arguments<br />

Syntax<br />

Add is used to add or subtract a value to or from a numeric variable or persistent.<br />

Add reg1, 3;<br />

3 is added to reg1, i.e. reg1:=reg1+3.<br />

Add reg1, -reg2;<br />

The value of reg2 is subtracted from reg1, i.e. reg1:=reg1-reg2.<br />

Add Name AddValue<br />

Name Data type: num<br />

The name of the variable or persistent to be changed.<br />

AddValue Data type: num<br />

The value to be added.<br />

Add<br />

[ Name ’:=’ ] < var or pers (INOUT) of num > ’,’<br />

[ AddValue ’:=’ ] < expression (IN) of num > ’;’<br />

Related information<br />

Described in:<br />

Incrementing a variable by 1 Instructions - Incr<br />

Decrementing a variable by 1 Instructions - Decr<br />

Changing data using an arbitrary<br />

expression, e.g. multiplication<br />

Instructions - :=<br />

<strong>RAPID</strong> Reference Manual 8-Add-1

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

Saved successfully!

Ooh no, something went wrong!