Remote-processing CAMBASIC Manual de usuario Pagina 180

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 208
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 179
CONFIG C ommands - 7
CONFIG COUNT
Tasking Statement
SYNTAX: CONFIG COUNT number,address,bit [,preset] [,AUTO]
PURPOSE: To define the characteristics of a software counter.
REMARK S: The CONFIG COU NT statement is the initial step in setting up a software counter. Up to eight
counters can be defined. A counter input may be any digital input.
The counter number has a range of 0 to 7. The address is the address of a parallel I/O port. The bit
param eter spec ifies bit 0 through 7 of that port.
The optional preset parameter is only used when you want an interrupt at a specified number of
counts. When the optional AUTO parameter is specified, the counter will automatically reset to zero
when the preset is reached.
For additional information see the M ultitasking Chapters.
RELATED: ON COUNT, START COUNT, STOP COUNT, RESUME COUNT
EXAMPLE: 10 CONFIG COUNT 4,32,2,5000
This configures counter 4 at address 32, and bit 2 with a preset count of 5000.
ERROR: < Data negative> for number, address, bit, preset
< Data > 65,535> for preset and address
< Data out of range> if number or bit > 7
Vista de pagina 179
1 2 ... 175 176 177 178 179 180 181 182 183 184 185 ... 207 208

Comentarios a estos manuales

Sin comentarios