0 - functions, 0 functions – Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual

Page 89

Advertising
background image

7Ć1

7.0 FUNCTIONS

AutoMax Enhanced BASIC incorporates numerous intrinsic

functions, i.e., functions that can be used within expressions. Some

are standard and some have been added to complement the

AutoMax environment. The following is a list of the current functions

available for use in an AutoMax system:
Function Name

Description

SIN

Sine

COSCosine

TAN

Tangent

ATN (ATAN)

Arctangent

LN

Natural logarithm (log base e)

EXP

Exponential (e**x)

SQRT

Square root

ABSAbsolute value

CHR$

Get character from ASCII value

ASC%

ASCII value of string character

LEN%

Lenth of string

STR$

String from numeric expression (integer)

BINARY$

Binary form of input string (integer)

HEX$

Hexadecimal value of input string (integer)

LEFT$

Substring from left side of string

RIGHT$

Substring from right side of string

MID$

Substring from center of string

VAL%

Integer value of integer string expression

VAL

Real value of real string expression

FIX

Whole part only of real

CURPOS$

Position cursor (VT100)

CLRSCR$

Clear the screen (VT100)

CLRLINE$

Clear line (VT100)

IOREAD%

Read from foreign I/O board

BIT_SET@

Test if bit is set

BIT CLR@

Test if bit is clear

BIT_MODIFY@

Modify bit value

SHIFTL%

Shift a numeric field left

SHIFTR%

Shift a numeric field right

ROTATEL%

Rotate a numeric field left

ROTATER%

Rotate a numeric field right

BCD_OUT%

Output the BCD number from a

ădecimal number

BCD_IN

Input the decimal number from a

ăBCD number

BLOCK_MOVE@

Move a block of integers from/to

ăregisters

GATEWAY_CMD_OK@ Gateway transfer function

VARPTR%

Return pointer to variable

TEST_ERRLOG@

Test state of error log for task

READVAR%

Reads variable, returns value

WRITEVAR%

Writes value to variable

FINDVAR!

Returns pointer to variable

CONVERT%

Converts data formats

Advertising
This manual is related to the following products: