![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h/sysmac-c200h_operation-manual_742423204.webp)
191
Limitations
D may be a constant only when CC is 000 or 001. D must be a word address
when CC is 002. See below for details. INT(89) is used only to control the
scheduled interrupts with the C200H and N must be set to 0004.
Caution INT(89) cannot be used during execution of step programs or in C2000H Du-
plex CPUs. Refer to 5-21 Step Instructions for details on step programs.
INT(89) is used to control the scheduled interrupt. Subroutine 99 can be es-
tablished so that it will be executed repeatedly at a fixed interval through
scheduled interrupts.The actual time at which it is executed is independent of
the cycle time. INT(89) is used to control the scheduled interrupt. If N is 004,
CC is used to designate the desired function as follows:
CC =
000: Setting time interval
001: Setting the time to first scheduled interrupt
002: Reading the current time interval
Even when a subroutine 99 has been written, it will not be executed accord-
ing to scheduled interrupts unless INT(89) is used to set the proper times.
INT(89) should be used to set both the time interval (CC = 000) for the
scheduled interrupt and the time to the first scheduled interrupt (CC = 001.
Unstable operation may result is the time to the first interrupt is not set.
To set the time interval for the scheduled interrupt, set CC to 000 and set D
to any value between 00.01 and 99.99 seconds. The decimal point is not in-
put. The time interval can be changed at any time.
To cancel the scheduled interrupt, set the time interval to 00.00 seconds.
Caution If the scheduled execution time of the subroutine becomes too large, it will
have a serious effect on the overall execution time of the main program.
Therefore, you should take extra care to write a subroutine that is fast and
efficient. INT(89), with a CC of 000, is used to change the scheduled interrupt
time interval, the new time interval is not effective until after the next sched-
uled interrupt. (cf. CC = 001 below)
To set the time to the first interrupt, set CC to 001 and set D to any value be-
tween 00.01 and 99.99 seconds. The decimal point is not entered. If D is set
to 00.00, the interrupt will not occur.
Caution INT(89), with a CC code of 001, can be used to change the scheduled inter-
rupt time interval for one cycle. The new time interval is effective immediately.
The scheduled interrupt may never actually occur if the time to the first inter-
rupt is changed repeatedly, i.e., before the interrupt has time to occur.
To access the current time interval for the scheduled interrupt, set CC 002.
The current time interval will be places in D
Flags
ER:
CC, D, or N is not within specified values.
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
Description
Scheduling the Interrupt
CC = 000
(Interval)
CC = 001
(Time to First Interrupt)
CC = 002
(Read Interval)
Subroutines and Interrupt Control
Section 5-20
Содержание SYSMAC C200H
Страница 1: ...OPERATION MANUAL C200H CPU01 E 03 E 11 E SYSMAC Programmable Controllers Cat No W130 E1 05 ...
Страница 2: ...C200H Programmable Controllers CPU01 E 03 E 11 E Operation Manual Revised June 2003 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 8: ...TABLE OF CONTENTS ix Glossary 345 Index 363 Revision History 369 ...
Страница 342: ...336 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Страница 374: ...Cat No W130 E1 05 C200H Programmable Controllers CPU01 E 03 E 11 E OPERATION MANUAL ...