Rockwell-automation 1771-DB Basic Module User Manual - Series A Manuale Utente Pagina 117

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 167
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 116
Operating Functions
Chapter 5
5–80
5.10.3.1
String Repeat – CALL 60
This routine allows you to repeat a character and place it in a string. You
can use the String Repeat when designing output formats. First PUSH the
number of times to repeat the character, then PUSH the number of the
string containing the character to be repeated. No arguments are POPed.
You cannot repeat more characters than the string’s maximum length.
u10 REM STRING REPEAT EXAMPLE PROGRAM
u20 STRING 1000,50
u30 $(1)=“*”
u40 PUSH 40 :REM THE NUMBER OF TIMES TO REPEAT CHARACTER
u50 PUSH 1 :REM WHICH STRING CONTAINS CHARACTER
u60 CALL 60
u70 PRINT $(1)
u80 END
uRUN
*****************************************
READY
5.10.3
String Support Calls
(continued)
Vedere la pagina 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 166 167

Commenti su questo manuale

Nessun commento