ProSoft Technology MVI56-BAS User Manual
Page 108
Advertising

BASIC CALLs Syntax
MVI56-BAS ♦ ControlLogix Platform
User Manual
BASIC Module (DB/BAS Compatible)
Page 108 of 234
ProSoft Technology, Inc.
December 13, 2011
CALL 15: Convert 16-Bit Unsigned to Float Point
Use CALL 15 to convert a 16-bit unsigned integer from the MVI56-BAS input
buffer to a BASIC floating point value. This CALL can be used to read data
transferred from the ControlLogix processor using CALLs 53 and 56.
Syntax:
PUSH [A]
CALL 14
POP [B]
Where:
A = input buffer word address (0 to 231)
B = converted value
Example:
10 REM Example Program
20 PUSH 9: REM Convert 10th word of BASIC Input Buffer
30 CALL 15: REM Do 16-Bit unsigned to F. P. Conversion
40 POP W: REM Get converted value
50 PRINT W
Advertising