Omron C200HS Manual do Utilizador Página 278

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 277
265
The scheduled interrupt is disabled at the start of operation (the scheduled inter-
rupt interval is 0), so the time to the first interrupt and scheduled interrupt interval
must be set using INT(89) with N=004 and C=001/000. In the following diagram,
the subroutine would be executed every 20 ms if the scheduled interrupt time
unit is set to 10 ms in DM 6622 of the PC Setup.
LD 25315
INT(89) 001
004
#0002
INT(89) 000
004
#0002
SBN(92) 00
RET(93)
END(01)
Main program
Subroutine
Main program
Sets the time to first
interrupt to 20 ms.
Sets the scheduled in-
terrupt interval to 20 ms.
Return to program ad-
dress before interrupt.
Scheduled interrupt
every 20 ms.
First Cycle Flag
Note Depending on the setting of DM 6621 in the PC Setup, Host Link servicing, Re-
mote I/O servicing, Special I/O Unit servicing, and individual instruction execu-
tion will be completed before the subroutine is executed. Refer to page 255 for
details.
Subroutines and Interrupt Control Section 5-23
Vista de página 277
1 2 ... 273 274 275 276 277 278 279 280 281 282 283 ... 503 504

Comentários a estes Manuais

Sem comentários