Call 39 : 3.3-digit signed, bcd to basic floating, Point – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 228

Advertising
background image

Chapter
Call Routines 0–68

12

12 -38

Use this routine to convert 3.3-digit BCD from the PLC processor to
BASIC floating point. See also CALL 26.

See Chapter 8 for more information.

Input and Output Arguments

This routine has one input and one output argument. The input argument is
the number (1-64) of the first word (3.3-digit BCD is sent to the BASIC
module in two processor words) of the write-block-transfer buffer you
want to convert from 3.3-digit, signed, fixed decimal BCD to BASIC
floating point. The maximum values allowed are +999999. The output
argument is the value converted into BASIC floating point format.
The sign bit is bit number 16.

Syntax

PUSH

number of word (1 – 64) to be converted

CALL 39

POP

converted value

Example

> 10 PUSH X

> 20 CALL 39

> 30 POP Y

CALL 39 : 3.3-Digit Signed,
BCD to BASIC Floating
Point

Chapter

Advertising