This function is time-based. You call an interrupt routine by storing 500 into SI 140. The interrupt function causes:
The program scan to pause every 2.509 mSec. The interrupt causes the program to stop immediately without regard to the program scan, even if it occurs in the middle of a net.
A jump to the net which follows the interrupt. The nets following the interrupt comprise the interrupt routine. Note that the interrupt routine should be as short as possible, and must not exceed approximately 0.5 mSec.
When the interrupt routine is finished, the program continues from where it left off.
Note that the nets containing the Interrupt routine must be the last ones in the program. The format must be as shown in the example below:
Store 500 into SI140 to call the function
Jump to End
The nets containing the actual interrupt routine.
Note ♦ |
When you run Test (Debug) Mode, the current value in SI 140 will not be displayed. |
♦ |
SB 180 Initialize GSM Modem cannot be written to during an interrupt routine |