Rockwell-automation 2708-NBD VBASIC Language Development Kit Manual de usuario Pagina 49

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 84
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 48
AB
B
Appendix
B1
Differences Between
A-B VBASIC and Visual BASIC
This document describes the differences between Allen-Bradley VBASIC
and Microsoft Visual BASIC. It first lists general characteristics unique to
A-B VBASIC, and then provides additional information on keywords
supported by A-B VBASIC.
In this discussion, all references to VBDOS refer to Visual Basic for DOS.
Also any references to A-B VBASIC refers to A-B VBASIC, used for
programming a DH5 terminal. These references are for our convenience and
do not refer to any trademark. Any time the VBDOS manual is mentioned,
we are referring to the Visual Basic Reference Manual for MSDOS. To
some extent, most comments here also apply to QuickBASIC V4.5,
Microsoft PDS 7.1, and QBASIC versions of the BASIC language.
1. All arrays must be DIMensioned.
2. STATIC and DYNAMIC arrays and metacommands do not apply in A-B
VBASIC.
3. Periods are not allowed within a variable name, unless that variable is part
of a user defined TYPE.
4. The entire A-B VBASIC program (i.e. the input to LXB), must reside in
one file.
5. The exponentiation operator (^), may have a positive integer exponent
only.
6. @ AND [ AND ] are invalid outside literals.
7. Some of the general syntax implemented by some BASIC compilers is
not allowed. The following syntax may be familiar to some users but is
not mentioned in the VBDOS manual and is not recognized by the A-B
VBASIC crosscompiler (LXB):
a. [ and ] instead of ( and ) to delimit array subscripts.
b. ? as a synonym for PRINT.
c. PRINT#, INPUT#, and WRITE# without a space preceding #.
8. DOUBLE precision floatingpoint data
A-B VBASIC does not support double precision real arithmetic.
Specifically, the interpreter in the terminal is not programmed to do
DOUBLE math, and may or may not generate a Double not supported
error message whenever it encounters anything which has to do with
DOUBLE operations, depending on firmware version. However, the A-B
VBASIC crosscompiler accepts the following DOUBLErelated syntax
in most respects, and you may not see an error message until the program
is downloaded into the terminal and executed:
a. DEFDBL
General Restrictions
Vista de pagina 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 83 84

Comentarios a estos manuales

Sin comentarios