RSAVE 


To designate a math comparison use the commands:

RSAVE1

RSAVE2

RSAVE3

RSAVE4


to save the last reply value of the last command executed in a math comparison variable. The reason there are four save commands is if the reply value is like this:


1000:2000:3000:4000


which some commands can return (ie. PP, EP). You can save any one of the values based on the index. In this case:


RSAVE1 would save a value of 1000

RSAVE2 would save a value of 2000

RSAVE3 would save a value of 3000

RSAVE4 would save a value of 4000


Now when the UNTIL command is executed it will use this saved math value instead of the loop counter for the comparison.


The RSAVE# command will return a reply of what the actual value it stores in memory from the previous reply value.


RSAVE# commands also save the last reply value and can process any of the following numeric types.


32000    ' decimal

0xFFFF    ' hexadecimal  (C syntax)

&HFFFF   ' hexadecimal (Basic syntax) 

0b001010    ' Binary (C syntax)

&B001010   ' binary (Basic syntax)



Return to Repeat/Until Loop