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

Page 94

Advertising
background image

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

12 -6

CALL 11

16-bit binary to BASIC floating point

12 -7

CALL 12

4-digit octal to BASIC floating point

12 -7

CALL 13

6-digit decimal BCD to BASIC floating point

12 -8

CALL 14

SLC 16-bit signed integer to BASIC floating point

12 -8

CALL 15

SLC 16-bit unsigned integer to BASIC floating point

12 -9

CALL 17

4-digit BCD to BASIC floating point

12 -11

CALL 20

BASIC floating point to 3-digit decimal BCD

12 -12

CALL 21

BASIC floating point to 16-bit binary

12 -13

CALL 22

BASIC floating point to 4-digit octal

12 -13

CALL 23

BASIC floating point to 6-digit decimal BCD

12 -14

CALL 24

BASIC floating point to SLC 16-bit signed integer

12 -15

CALL 25

BASIC floating point to SLC 16-bit binary

12 -16

CALL 26

BASIC floating point to 3.3-digit BCD

12 -17

CALL 27

BASIC floating point to 4-digit BCD

12 -17

CALL 39

3.3-Digit Signed, BCD to BASIC Floating Point

12 -38

CALL 88

BASIC floating point to PLC-5 floating point

13 -16

CALL 89

PLC-5 floating point to BASIC floating point

13 -17

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

11 -4

CLOCK 1

11 -5

ONTIME

11 -25

TIME

9 -19

CALL 40

set wall clock time

12 -39

CALL 41

set wall clock date

12 -40

CALL 42

set wall clock day of week

12 -40

CALL 43

date/time retrieve string

12 -41

CALL 44

date retrieve numeric

12 -41

CALL 45

time retrieve string

12 -42

CALL 46

time retrieve numeric

12 -42

CALL 47

retrieve day of week string

12 -43

CALL 48

retrieve day of week numeric

12 -43

CALL 52

date retrieve string

12 -58

Number Conversion Calls

Chapter

Clock/Calendar Calls

Advertising