Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 199

Advertising
background image

Chapter
Call Routines 0–68

12

12 -9

Use CALL 15 to convert an SLC 16-bit unsigned integer (or 16-bit binary)
number from an SLC processor to a BASIC module floating-point number.
This call is used to convert SLC unsigned integer numbers to BASIC
floating point. Use it with DH-485 related calls. See also CALL 25.

See Chapter 8 for more information.

Input and Output Arguments

This routine has one input and one output argument. The input argument is
the address number (100 to 139) of the word in the BASIC module input
buffer DH-485 common interface file you want to convert. The output
argument is the value converted into BASIC floating point format.

Syntax

PUSH

number of word to be converted

CALL 15

POP

converted value

Example

>50 PUSH 120:REM CONVERT 120TH BYTE OF BASIC INPUT BUFFER

>60 CALL 15 :REM DO 16-BIT INTEGER TO F.P. CONVERSION

>70 POP L(9) :REM GET CONVERTED VALUE–store in array L(9)

CALL 15:
SLC 16-Bit Unsigned Integer
to BASIC Floating Point

Chapter

Advertising