beautypg.com

BECKHOFF C1220 User Manual

Page 20

background image

Eiserstraße 5 / D-33415 Verl / Telefon 05246/963-0 / Telefax 05246/963-149

Software description of functions

20

Beckhoff Lightbus - PC interface card C1220

Argument

Channel

Length

Function

0

1

2

3

4

Request

07

0x0f

0m

Criterion
for
interrupt
channel 0

Criterion
for
interrupt
channel 1

Criterion
for
interrupt
channel 2

Criterion
for
interrupt
channel 3

Reply

03

0x0f

0m

The LOW nibble in the argument 0 specifies which of the 4 possible
interrupt channels is to be enabled.

Example:

m = 0x00

all

interrupt

channels

disabled

(Default)

m = 0x01

Interrupt

channel

0

enabled

m = 0x06

Interrupt

channels

1

and

2

enabled

m = 0x0f

Interrupt channels 0, 1, 2 and 3 enabled

Each interrupt channel can be characterized by way of a criterion.

The following criteria can be selected:

Criterion

Interrupt-Channel(0,1,2,3)

no Interrupt

0

Interrupt on positive edge

1

Interrupt on negative edge

2

Interrupt on edge change

3

The respective criteria are assigned to the interrupt channels by way of the
arguments 1 to 4.

Example:

Argument

Channel

Length

Function

0

1

2

3

4

Request

07

0x0f

0x0c

00

00

01

03

Interrupt enabling for channels 2 and 3

Interrupt criterion for interrupt channel 0

no interrupt transfer

Interrupt criterion for interrupt channel 1

no interrupt transfer

Interrupt criterion for interrupt channel 2

Interrupt transfer with a positive edge

Interrupt criterion for interrupt channel 3

Interrupt transfer with an edge change