Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 204

Advertising
background image

Chapter
Call Routines 0–68

12

12 -14

This routine converts a value from BASIC floating point format to
6-digit, signed, PLC BCD number in a 2 word format and places the
converted value in the block-transfer-read buffer. See also CALL 13.

See Chapter 8 for more information.

Input and Output Arguments

This routine has two input arguments and no output arguments. The first
input value is the data or variable. The second input value is the number of
the word (1–64) to receive the converted value in the block-transfer-read
buffer. The sign bit is bit number 16.

Syntax

PUSH

value to be converted

PUSH

word location (1–64) that receives the value

CALL 23

Example

>10 W=567321

>20 PUSH W

>30 PUSH 3

>40 CALL 23

CALL 23:
BASIC Floating Point to
6-Digit, Signed, Fixed
Decimal BCD

Chapter

Advertising