127
MANUAL DO USUÁRIO DC-2000 / PROGRAMA WINTASKGEN - Revisão 1.5
If TEMPVAR is defined as a string variable; then
Line No.
Operator
Source Operand
Destination
Operand
1
RCV
1000
TEMPVAR
will receive a string from the serial port and store the string in TEMPVAR within
1 second.
4.3.24 RHT
Syntax:
Operator
Source Operand
Destination Operand
RHT
OPERAND1
OPERAND2
Description:
Retrieve the rightmost sub- string of n length of OPERAND2 and store the sub-
string back to OPERAND2, where length n is specified by.
Operand Data Type:
OPERAND1
numeric constant, numeric variable
OPERAND2
string variable
Examples:
If TEMPVAR is defined as a string variable and TEMPCNT as a numeric
Line No.
Operator
Source Operand
Destination
Operand
1
LEN
TEMPVAR
TEMPCNT
2
SUB
1
TEMPCNT
RHT
TEMPCNT
TEMPVAR
will truncate off the first character of TEMPVAR.
4.3.25 RSV
Syntax:
Operator
Source Operand
Destination Operand
RSV
Description:
Reserved for a future MACRO command.
Operand Data Type:
None