Rockwell-automation 1771-DB Basic Module User Manual - Series A Manual de usuario Pagina 157

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 167
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 156
Error Messages and
Anomalies
Chapter 9
9–5
STRING# NOT ALLOCATED — This error occurs if you attempt to
access a string that is outside the allocated string memory when using
CALLs 60, 61, 64, 65, 66, 67, or 68.
Example:
u10 STRING 100,9 REM 10 STRINGS ALLOCATED$
(0)–$(9)
u20 PUSH 5,12 REM REPEAT CHAR 5 TIMES
IN$(12)
u30 CALL 60
uRUN
ERROR — STRING # NOT ALLOCATED
Error occurs because STRING 12 is outside the area reserved for strings.
#BYTES/STRING EXCEED 254 — This error occurs if the STRING X,X
command allocates more characters per string than is allowed using CALL
62.
Example:
u10 STRING 1000,300
INSUFFICIENT NUMBER OF STRING CHARACTERS This error
occurs if you do not use the required minimum string lengths when using
CALL 62.
BAD # PUSHED — This error occurs if the string position pointer is zero
(invalid position) using CALL 66.
INSUFFICIENT STRING SIZE — This error occurs if the resulting string
cannot hold all required characters when using CALLs 61 or 66.
Example:
u10 STRING 100,9 REM MAX OF 9 CHR’S/STRING
u20 $(0)=“01234567”
u30 $(1)=“890”
If you attempt to insert or concatenate, an error occurs because the
resulting string requires 11 characters.
9.3.4
String Support CALL
Error Messages
Vista de pagina 156
1 2 ... 152 153 154 155 156 157 158 159 160 161 162 ... 166 167

Comentarios a estos manuales

Sin comentarios