42 rts_control@ function – Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual

Page 108

Advertising
background image

7Ć20

dest_subscript

is only used if destination_variable is an array.

It determines where in the array to begin

writing. If not an array, the value should be 0.

num_of_words

selects the number of words to move.

mode

determines the mode of operation.
VALUE

FUNCTION

ăă0

Move data with no change in

format

ăă1

Convert from Motorola Floating

Point to IEEE format

ăă2

Convert from IEEE Floating Point

to Motorola format

ăă4

Word swap (0102H to 0201H)

ăă8

Long word swap (01020304H to

04030201H)

ăă9

Motorola to IEEE followed by long

word swap

ă10

Long word swap followed by IEEE

to Motorola

All other values are illegal

This function is used to convert between data formats used by

AutoMax and data formats used by other computers.
Values Returned:
ă1

Success

-26 Array is not single dimension

-32 Beyond end of array

-33 Illegal mode value

-34 Zero number of words

-35 Odd number of words on long word swap

-36 Number of words > dest data type when dest memory is

on CPU

For example, to move 30 real numbers beginning at

SRC_ARRAY(10) to DST_ARRAY(20) converting from Motorola to

IEEE and inverting the byte order:

STATUS% = CONVERT%( SRC_ARRAY, 10, DST_ARRAY, 20,

ąąąąą15, 9 )

7.42

RTS_CONTROL@ Function

Format:

RTS_CONTROL@(#n, control_val%)

where:

#n is the logical number assigned to the port in the OPEN

statement.
control_val% (input constant of variable integer) is nonĆzero to

turn the RTS signal on and 0 to turn the RTS signal off.

This function provides control of the RTS modem control signal. If

hardware handshaking is enabled and RTS is set true using this

function, RTS will remain true after all characters have been

transmitted so that the application task can set it false after a delay.

Refer to the OPEN statement for a description of the purpose of the

RTS signal.

Advertising
This manual is related to the following products: