beautypg.com

Profibus communication – Lenze I/O system 1000 System Manual User Manual

Page 432

background image

PROFIBUS communication

Parameterising the counter
One counter 32 bits, 24 V DC − EPM−S600

9

l

432

EDSIO1000 EN 7.0

Lenze

Description/value

Name

Data set

Lenze

Description/value

Name

Byte

No.

1

Counter function

Bit 5 ... 0:

000000

b

= counting continuously

000001

b

= counting once, main counting direction

forwards
000010

b

= counting once, main counting direction

backwards
000100

b

= counting once, no main counting direction

001000

b

= counting periodically, main counting

direction forwards
010000

b

= counting periodically, main counting

direction backwards
100000

b

= counting periodically, no main counting

direction

Bits 7 ... 6: Reserved

40

h

2

Comparator

Bit 2 ... 0: output switches (... if condition is met)

000

b

= never

001

b

= count value

³ comparison value

010

b

= count value

£ comparison value

100

b

= count value = comparison value

Bit 3: Invert counting direction track B

0 = no (do not invert)
1 = yes (invert)

Bits 6 ... 4: Reset

000

b

= deactivated

001

b

= HIGH level

011

b

= rising edge

101

b

= rising edge, once

Bit 7: Reserved

00

h

3

Signal evaluation

Bits 2 ... 0: Signal evaluation

000

b

= counter deactivated (the other parameter

details for the counter are ignored)
001

b

= rotary transducer single (at A and B)

010

b

= rotary transducer double (at A and B)

011

b

= rotary transducer quadruple (at A and B)

100

b

= direction (pulse at A and direction at B)

Bit 6 ... 3: Hardware gate (HW gate)

000

b

= deactivated (counter starts by setting SW gate)

001

b

= activated (HIGH level at gate activates the HW

gate. Counter starts if HW and SW gate are set.)

Bit 7: Gate function (internal gate)

0= abort (counting process starts again from loading
value)
1 = interrupt (counting process is continued with
counter content)

00

h

81

h

0

Final value

Counting method:
0x310B: byte 3 (high byte)
0x3110: byte 2
0x3111: byte 1
0x3112: byte 0 (low byte)

00

h

1

Loading value

Counting method:
0x310B: byte 3 (high byte)
0x310C: byte 2
0x310D: byte 1
0x310E: byte 0 (low byte)

00

h