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.

EXTENDED REGISTER GROUPS<br />

IN, DIGITAL INPUTS<br />

Group Group<br />

No.<br />

Description<br />

In 11 Digital Inputs to the DMC controller.<br />

GENERAL<br />

In, Digital inputs<br />

The digital inputs are polled by the system at 1 ms interval. This means that a<br />

change <strong>of</strong> state on input must be present during two samples in order to be<br />

detected as an edge. The interrupt system operates on these polled events only.<br />

The capture event uses digital input Di1 or the Encoder reference input for a<br />

special function parallel to the normal input function.<br />

FUNCTION<br />

Each input, In.Di1 through In.Fault, can be observed as an individual bit register.<br />

All inputs can also be read in parallel in the In.pdi register where each bit<br />

corresponds to one input. Di1 is bit 0, Di2 is bit 1 and so on.<br />

The inputs can be individually inverted by setting the corresponding bit in the<br />

In.Level register. This capability permits easy adaptation to transducers with<br />

negative logic since it does not affect the interrupt settings. The In.Level function<br />

should be thought <strong>of</strong> as, if an external inverter is connected to the input.<br />

RELATED ITEMS<br />

Vector.Di1..<br />

Vector.Di10<br />

Vector.Enable<br />

Vector.PTC<br />

Vector.Fault<br />

Int.Mask<br />

Int.Pend<br />

Ireturn in 1<br />

EXAMPLE USAGE<br />

Vectors for input related events.<br />

Bit mask for input interrupts, bit 0 (bit value 1) enables the<br />

event on .Di1.<br />

Bit mask for pending events, bit 0 (bit value 1) indicates the<br />

.Di1 event.<br />

Return statement.<br />

.<br />

if In.Di2 = 1 then Labl1<br />

”Else Do this”<br />

goto Labl2<br />

Labl:<br />

”Do this”<br />

Labl2:<br />

.<br />

i t I D t<br />

;conditional jump on input<br />

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

Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />

.<br />

109

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

Saved successfully!

Ooh no, something went wrong!