Rockwell-automation 1747-PBASE BASIC Development Software Programming Manuale Utente Pagina 128

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 144
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 127
Publication 1746-PM001A-US-P
A-6 BASIC Macro Library
Battery Back-Up
The following table describes the macro CALLs used to control the battery
back-up.
Program Control
The following table describes the macro CALLs used for program control.
Table A.5 Battery Back-up Macros
Battery Back–up
Macro CALLs
Macro Inputs Outputs
battery_on() Enables battery back-up. None None
battery_off() Disables battery back-up. None None
alloc_bat_var(%1) Allocates battery backed memory for non-volatile data
storage. One parameter is required. %1 is the number of
variables to be stored. If the MTOP is not 5FFFh, then this
function is skipped.
%1 = Number
variables
None
read_bat_var(%1,%2) Retrieves battery backed variables. %2 = storage number %1 = variable to
be retrieved
write_bat_var(%1,%2) Writes battery backed variables. %2 = storage number %1 = variable to
be written
Table A.6 Program Macros
Program Control
Macro CALLs
Macro Inputs Outputs
CALL_ram() Transfers control of the BASIC program to the second line of the
program in RAM.
None None
CALL_rom(%1) Transfers control of the BASIC program to the second line of the
program specified in EEPROM.
%1 = number of ROM
program
None
ret() Transfers control back to were it was in the main program prior to the
CALL.
None None
Vedere la pagina 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 143 144

Commenti su questo manuale

Nessun commento