beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 228

background image

Reference

MVI56-BAS ♦ ControlLogix Platform

User Manual

BASIC Module (DB/BAS Compatible)

Page 228 of 234

ProSoft Technology, Inc.

December 13, 2011

11.4 1746-BAS Comparison

11.4.1 CALLs Not Supported

CALL 26 not supported
CALL 55 not supported
CALL 77 does not return any practical result because MTOP is not used in the

MVI56- BAS
CALL 82 not supported
CALL 103 not supported
CALL 104 not supported
CALL 110 not supported
CALL 111 not supported
CALL 121 not supported
DBY command not supported
LD@ ST@ replaced by LD_AT and ST_AT

11.4.2 New Commands

PGMPRT: Allows the user to select DH-485 or PRT1 as the program port.
EXPORT: Allows an edited program to be saved in the Compact Flash.
LOAD: Allows the user to load a DOS ASCII Basic file into emulated external

RAM memory.

EXIT: Allows the user to exit the BASIC interpreter to the DOS Command

Prompt (DH-485 port). The setup jumper must be installed.

ERRCODE: A regular operator that returns the last error encountered since

the beginning of the program or since the last CLRERR.

ERRLINE: A regular operator that returns the line where the last error was

encountered since the beginning of the program or since the last CLRERR.

PRERR: Prints the description and line number of the last encountered error.
PROG0: Causes the previous PROG2 command to be cancelled. If a bug is

found that needs correcting and the user does not want to power up the

MVI56-BAS (causing the ROM program to start automatically), PROG0

solves this problem.

XBYTE: Functions like the 1746-BAS XBY. However, the argument range is

0000h to 0FFFh (0 to 4095)

11.4.3 Differences

The MVI56-BAS variables are defined by all the characters in the variable

name.

MVI56-BAS uses 64-bit IEE floating point math routines. The difference can

involve numerical round-offs issues.

The MVI56-BAS has no read RAM or ROM memory. Files in the Compact

Flash simulate RAM and ROM storage.