Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 114

Advertising
background image

Chapter
Expressions, Variables and Operators

9

9 -4

Operator

Function

Page

ABS

return the absolute value of expression

9 -11

+

add expressions together

9 -5

ASC

return integer value of ASCII character

9 -14

ATN

return arctangent of argument

9 -11

@ or #

communication direction

9 -17

CBY

retrieve data from core or program memory address location

9 -18

CHR

convert numeric expression to ASCII value

9 -16

COS

return the cosine of argument

9 -10

DBY

retrieve/assign data to/from internal data memory

9 -18

/

divide first expression by second expression

9 -5

EOF

test for empty input buffer

9 -17

EXP

raise e to power of argument

9 -13

**

raise first expression by the power of the second expression

9 -5

FREE

list available bytes in RAM

9 -17

INT

return integer portion of expression

9 -12

LEN

list amount of bytes in current program

9 -17

LOG ( )

return the natural log of the argument

9 -13

.AND.

combine the first expression with the second expression using .AND.

9 -7

.OR.

combine the first expression with the second expression using .OR.

9 -8

.XOR.

combine the first expression with the second expression using .XOR.

9 -8

MTOP

return last valid memory address

9 -18

*

multiply expressions together

9 -5

negation

9 -6

NOT

returns the one’s complement or inverse of the number

9 -11

PI

store constant. PI

9 -12

RND

return a pseudo–random number

9 -12

SGN

return the sign of argument

9 -12

SIN

return the sine of argument

9 -10

SQR

return the square root of the argument

9 -12

subtract one expression from another

9 -5

TAN

return the tangent of argument

9 -10

TIME

read/assign the free running clock

9 -19

XBY

read/assign external data memory

9 -19

=

allow the first expression to equal the second expression

9 -9

<

allow the first expression to be less than the second expression

9 -9

<=

allow the first expression to be less than or equal to the second expression

9 -9

>

allow the first expression to be greater than the second expression

9 -9

>=

allow the first expression to be greater than or equal to the second expression

9 -9

<>

allows the first expression to be unequal to the second expression

9 -9

Advertising