Number conversion calls, Clock/calendar calls – Rockwell Automation 1771-DB BASIC MODULE User Manual
Page 94

Chapter
Using BASIC Module Statements
7
7 -4
Use these calls to convert numbers between integer and BASIC
floating-point. Use these calls also to transfer data to the BASIC module
block-transfer-read buffer for transfer to the PLC processor (using
CALL 2, page 12 -2 or CALL 7, page 12 -5) and to retrieve data from the
BASIC module block-transfer-write buffer after transfer from the PLC
processor (using CALL 3, page 12 -3 or CALL 6, page 12 -5). You can
use these calls within the BASIC program or from the command line.
See Chapter 8 for more information on number conversions.
Statement
Page
CALL 10
3-digit decimal BCD to BASIC floating point
CALL 11
16-bit binary to BASIC floating point
CALL 12
4-digit octal to BASIC floating point
CALL 13
6-digit decimal BCD to BASIC floating point
CALL 14
SLC 16-bit signed integer to BASIC floating point
CALL 15
SLC 16-bit unsigned integer to BASIC floating point
CALL 17
4-digit BCD to BASIC floating point
CALL 20
BASIC floating point to 3-digit decimal BCD
CALL 21
BASIC floating point to 16-bit binary
CALL 22
BASIC floating point to 4-digit octal
CALL 23
BASIC floating point to 6-digit decimal BCD
CALL 24
BASIC floating point to SLC 16-bit signed integer
CALL 25
BASIC floating point to SLC 16-bit binary
CALL 26
BASIC floating point to 3.3-digit BCD
CALL 27
BASIC floating point to 4-digit BCD
CALL 39
3.3-Digit Signed, BCD to BASIC Floating Point
CALL 88
BASIC floating point to PLC-5 floating point
CALL 89
PLC-5 floating point to BASIC floating point
Use these calls to set and display the real time clock/calendar within the
BASIC module or from the command line.
Statement
Page
CLOCK 0
CLOCK 1
ONTIME
TIME
CALL 40
set wall clock time
CALL 41
set wall clock date
CALL 42
set wall clock day of week
CALL 43
date/time retrieve string
CALL 44
date retrieve numeric
CALL 45
time retrieve string
CALL 46
time retrieve numeric
CALL 47
retrieve day of week string
CALL 48
retrieve day of week numeric
CALL 52
date retrieve string
Number Conversion Calls
Chapter
Clock/Calendar Calls