Function library "lenzeio1000drv – Lenze Function library LenzeIO1000Drv User Manual
Page 21

DMS 1.0 EN - 07/2011 - TD05
L
21
Function library "LenzeIo1000Drv"
Function blocks
L_io1000ParCounterEPMS600 - Parameterise counter
byAlarmFunction
BYTE
Process alarm
A process alarm can be triggered in case of the following events:
bits0 Open hardware gate
bits1 Closed hardware gate
Bit 2 Counter limit overflow
bits3 Counter limit underflow
bits4 Comparison value reached
Bit 5 Final value reached
Bit 6 Latch value reached
Bit 7 Reserved
byCounterFunction
BYTE
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
bySignalSelection
BYTE
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)
bActivateHardwareGate
BOOL
Activation of hardware gate
FALSE Hardware gate deactivated
• Counter starts by setting the software gate.
TRUE Hardware gate activated
• HIGH level at the gate input activates the hardware gate.
• Counter starts if hardware and software gate are set.
bInternalGateInterrupt
BOOL
Gate function (internal gate)
FALSE Cancel (counting process restarts from the load value)
TRUE Interrupt (counting process is continued with counter content)
byCompareFunction
BYTE
Comparison operation
0 Output never switches
1 Output switches if count value ≥ comparison value.
2 Output switches if count value ≤ comparison value.
3 Output switches if count value = comparison value.
bInvertDirectionTrackB
BOOL
TRUE Invert counting direction track B
byResetFunction
BYTE
Reset function
0 Deactivated
1 HIGH level
2 Rising edge
3 one-time rising edge
Identifier/data type
Information/possible settings