11 INTERRUPT FUNCTION
11.2 Input Interrupt Delay Function
117
11
11.2 Input Interrupt Delay Function
The input interrupt delay function can delay the execution of the interrupt program in units of 1 ms.
By delaying the execution of the interrupt program, the installation position of the sensor used for the input interrupt can be
adjusted by program without shifting the actual installation position.
The input interrupt delay function has the following specifications.
Page 117 Delay time setting
Page 118 Delay execution of the interrupt program
• If this function is used for Interrupt (Rising) + Pulse Catch, pulse catch will not be delayed.
• For versions that support the input interrupt delay function, refer to the following.
Page 942 Added and Enhanced Functions
Delay time setting
The delay time can be set in units of ms (1 to 32767) for the I0 to I15 interrupt pointers using the pattern program.
Setting method
The delay time is set by the pattern program.
After the delay time specified by the pattern program has elapsed, the interrupt program is executed.
• The pattern programs written for each I-pointer number all use the same SM8393 (delay time setting
contact) and SD8393 (delay time). However, different delay times can be set and operated for each I-pointer
number.
• If the data register (D) is specified for the delay time setting of the pattern program, the delay time can be
changed by changing the value of the data register (D) even while the CPU module is running. In that case,
the value stored when the interrupt is generated becomes the delay time. However, if the value at that time
is outside the range that can be specified as the delay time, the interrupt program is executed immediately
without delay.
(1) Delay time (unit: ms)
(2) Contact for setting delay time
(3) Programs to be processed by input interrupts
• Always describe the delay time setting program at the top of the interrupt program, and change only the delay time (1). If it is not described at the top of the
interrupt program, it will not be recognized as a pattern program and the delay time will not be set.
• Describe the pattern program in the interrupt pointers I0 to I15. If it is described in an interrupt pointer other than I0 to I15, it will not be recognized as a pattern
program and the delay time will not be set.
• Only constants (K, H) or data register (D) can be used for this time setting. If any other device is used, the delay time setting becomes invalid and operates as
a normal input interrupt. If the set data register (D) is 0 or less, the delay time setting becomes invalid and operates as a normal input interrupt.
(1)
(2)
(3)
SM8393
I
MOV
K{{{
SD8393
IRET