28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

104<br />

Int, Interrupt control<br />

Vector.CapInt<br />

Vector.CycInt<br />

Ireturn in 8<br />

EXAMPLE USAGE<br />

.<br />

Vector.DI4 , @InDi4Event<br />

clr Int.Pend<br />

clr Int.SysPend<br />

Int.Level , 8<br />

Int.Mask , 8<br />

; Input event<br />

InDi4Event<br />

.<br />

ireturn in 8<br />

GROUP MEMBERS (GROUP 10)<br />

System interrupts vector for captures event.<br />

System interrupts vector for cyclical event.<br />

Return statement.<br />

;remove pending events<br />

;remove pending events<br />

;positive edge for Di4<br />

;enable Di4 event<br />

EXTENDED REGISTER GROUPS<br />

;return and enable interrupt again<br />

Group.Member Member<br />

No.<br />

Range Ability Default<br />

Int.Pend 0 0..65535 RW<br />

Pending interrupts from inputs.<br />

Bit0 (1) = 1 Pending interrupt from In.Di1.<br />

Bit1 (2) = 1 Pending interrupt from In.Di2.<br />

Bit2 (4) = 1 Pending interrupt from In.Di3.<br />

Bit3 (8) = 1 Pending interrupt from In.Di4.<br />

Bit4 (16) = 1 Pending interrupt from In.Di5.<br />

Bit5 (32) = 1 Pending interrupt from In.Di6.<br />

Bit6 (64) = 1 Pending interrupt from In.Di7.<br />

Bit7 (128) = 1 Pending interrupt from In.Di8.<br />

Bit8 (256) = 1 Pending interrupt from In.Di9.<br />

Bit9 (512) = 1 Pending interrupt from In.Di10.<br />

Bit10 (1024) = 1 Pending interrupt from In.Enable.<br />

Bit11 (2048) = 1 Pending interrupt from In.PTC.<br />

Bit12 (4096) = 1 Pending interrupt from In.Fault.<br />

Int.Mask 1 0..65535 RW<br />

Bit0 (1) = 1<br />

Enables interrupts from inputs.<br />

Enables interrupt from In.Di1.<br />

Bit1 (2) = 1 Enables interrupt from<br />

In.Di2.<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!