Function library "lenzeio1000drv – Lenze Function library LenzeIO1000Drv User Manual

Page 26

Advertising
background image

Function library "LenzeIo1000Drv"

Function blocks

L_io1000ParCounterEPMS601 - Parameterise counter

26

L

DMS 1.0 EN - 07/2011 - TD05

byCnt1AlarmFunction

BYTE

Counter 2: Process alarm

A process alarm can be triggered in case of the following events:

bits0 Reserved
bits1 Reserved

Bit 2 Counter limit overflow

bits3 Counter limit underflow
bits4 Comparison value reached

Bit 5 Final value reached
Bit 6 Reserved
Bit 7 Reserved

byCnt1CounterFunction

BYTE

Counter 2: Counting function

0 Continuous counting
1 Single counting, main counting direction is forward
2 Single counting, main counting direction is backward
3 Single counting, no main counting direction
4 Periodic counting, main counting direction is forward
5 Periodic counting, main counting direction is backward
6 Periodic counting, no main counting direction

byCnt1SignalSelection

BYTE

Counter 2: Signal evaluation

0 Counter deactivated

• The other parameter data for the counter are ignored.

1 Rotary transducer 1-fold (at A and B)
2 Rotary transducer 2-fold (at A and B)
3 Rotary transducer 4-fold (at A and B)
4 Direction (pulse at A and direction at B)

bCnt1InternalGateInterrupt

BOOL

Counter 2: Gate function (internal gate)

FALSE Cancel (counting process restarts from the load value)

TRUE Interrupt (counting process is continued with counter content)

byCnt1CompareFunction

BYTE

Counter 2: Comparison operation

0 Comparison bit is never set
1 Comparison bit is set if count value ≥ comparison value.
2 Comparison bit is set if count value ≤ comparison value.
3 Comparison bit is set if count value = comparison value.

bCnt1InvertDirectionTrackB

BOOL

TRUE Counter 2: Invert counting direction track B

dwCnt1SetValue

DWORD

Counter 2: Set value

dwCnt1LoadValue

DWORD

Counter 2: Load value

dwCnt1EndValue

DWORD

Counter 2: Final value

byCnt1Hysteresis

BYTE

Counter 2: Hysteresis

Identifier/data type

Information/possible settings

Advertising