Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 114
Chapter
Expressions, Variables and Operators
9
9 -4
Operator
Function
Page
ABS
return the absolute value of expression
+
add expressions together
ASC
return integer value of ASCII character
ATN
return arctangent of argument
@ or #
communication direction
CBY
retrieve data from core or program memory address location
CHR
convert numeric expression to ASCII value
COS
return the cosine of argument
DBY
retrieve/assign data to/from internal data memory
/
divide first expression by second expression
EOF
test for empty input buffer
EXP
raise e to power of argument
**
raise first expression by the power of the second expression
FREE
list available bytes in RAM
INT
return integer portion of expression
LEN
list amount of bytes in current program
LOG ( )
return the natural log of the argument
.AND.
combine the first expression with the second expression using .AND.
.OR.
combine the first expression with the second expression using .OR.
.XOR.
combine the first expression with the second expression using .XOR.
MTOP
return last valid memory address
*
multiply expressions together
–
negation
NOT
returns the one’s complement or inverse of the number
PI
store constant. PI
RND
return a pseudo–random number
SGN
return the sign of argument
SIN
return the sine of argument
SQR
return the square root of the argument
–
subtract one expression from another
TAN
return the tangent of argument
TIME
read/assign the free running clock
XBY
read/assign external data memory
=
allow the first expression to equal the second expression
<
allow the first expression to be less than the second expression
<=
allow the first expression to be less than or equal to the second expression
>
allow the first expression to be greater than the second expression
>=
allow the first expression to be greater than or equal to the second expression
<>
allows the first expression to be unequal to the second expression