Table of Contents - TG Drives
Table of Contents - TG Drives
Table of Contents - TG Drives
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
114<br />
Vector, Interrupt vectors<br />
VECTOR, INTERRUPT VECTORS<br />
Group Group<br />
No.<br />
Vector<br />
GENERAL<br />
EXTENDED REGISTER GROUPS<br />
Description<br />
13 Vector table for various interrupts. Holds the start address<br />
for an interrupt routine associated with the member. To<br />
enable an interrupt in this group, the appropriate bit must<br />
be set in Int.SysMask or Int.Mask.<br />
The registers in the vector group are the pointers to all interrupt routines. The<br />
registers contain line numbers within the application program.<br />
FUNCTION<br />
When an event occurs, system or input related the interpreter would set the<br />
pending bit for that event. If the mask bit for the event is set, the program will start<br />
to execute on the line pointed out by the related vector provided that it is not zero.<br />
i<br />
The Ireturn statement causes program execution to resume at the<br />
instruction where normal program flow was interrupted.<br />
If a normal return statement is used the interrupt will be executed only<br />
once.<br />
DO NOT USE NORMAL RETURN IF INT:MODE = 1.<br />
Use Ireturn with argument 0.<br />
RELATED ITEMS<br />
Int.SysMask Bit mask for system interrupts.<br />
Int.SysPend Bit mask for pending events.<br />
Int.Mask Bit mask for input interrupts; bit 0 (bit value 1) enables the<br />
event on Di1.<br />
Int.Pend Bit mask for pending events, bit 0 (bit value 1) indicates the<br />
Di1 event.<br />
Ireturn sys 1 Return statement<br />
for system events.<br />
Ireturn in 1 Return statement for input events.<br />
EXAMPLE USAGE<br />
.<br />
Vector.CapInt , @Caplabl<br />
Vector.DI7 , @Inp7.<br />
Caplabl:<br />
Ireturn sys 2<br />
Inp7:<br />
Ireturn in 64<br />
;set the vector to the line number <strong>of</strong> Caplabl<br />
;set the vector to the line number <strong>of</strong> Inp7<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001