Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 260

Advertising
background image

Publication 1746-RM001A-US-P

B-4 BASIC Command, Statement, and CALL Quick Reference Guide

CALL 64

PUSH [string number to be found]
PUSH [base string number]
POP [match position]

Find a string in a string.

15-6

CALL 65

PUSH [new string number]
PUSH [old string number to be replaced]
PUSH [base string number]

Replace a string in a string.

15-7

CALL 66

PUSH [insert position]
PUSH [string number of inserted character]
PUSH [base string number]

Insert string in a string.

15-8

CALL 67

PUSH [base string number]
PUSH [deleted string number]

Delete string from a string.

15-9

CALL 68

PUSH [string number]
POP [number of characters]

Determine length of a string.

15-10

CALL 70

None

ROM to RAM program transfer

8-8

CALL 71

PUSH [ROM program number]

ROM/RAM to ROM program transfer

8-9

CALL 72

None

RAM/ROM return

8-9

CALL 73

None

Battery-backed RAM disable

5-1

CALL 74

None

Battery-backed RAM enable

5-2

CALL 75

POP [processor mode]

Check SLC 500 controller CPU status.

11-7

CALL 77

PUSH [new MTOP address]

Protected variable storage

5-2

CALL 78

PUSH [baud rate]

Set program port baud rate.

14-2

CALL 80

POP [battery status]

Check battery condition.

11-8

CALL 81

None

User memory module check and description

*

5-3

CALL 82

None

Check user memory module map.

*

5-4

CALL 84

PUSH [starting word offset in DH485 interface
file]
PUSH [number of words to be transferred]
POP [transfer status]

Transfer DH485 interface file to module input
buffer.

13-19

CALL 85

PUSH [starting word offset in DH485 interface
file ]
PUSH [number of words to be transferred]
POP [transfer status]

Transfer module output buffer to DH485
interface file.

12-17

CALL 86

POP [DH485 interface file remote write status]

Check DH485 interface file remote Write
status.

11-8

CALL 87

POP [DH485 interface file remote read status]

Check DH485 interface file remote Read status.

11-9

CALL 88

PUSH [number to convert]
PUSH [output buffer to receive converted
value]

Convert BASIC floating-point to SLC
floating-point

9-4

CALL 89

PUSH [input buffer of value to be converted]

Convert SLC floating-point to BASIC
floating-point

9-5

Mnemonic

Required PUSHes or POPs

Description

Active In

Command

Mode

Only

Page

Advertising