4 l_iocounterdatatoio - counter function, L_iocounterdatatoio − counter function, Function library lenzeiosystem.lib – Lenze DDS Function library IOSystem User Manual

Page 57: Function blocks, 4 l_iocounterdatatoio − counter function

Advertising
background image

Function library LenzeIOSystem.lib

Function blocks

5.4

L_IOCounterDataToIO − Counter function

5−11

L

LenzeIOSystem.lib EN 1.7

5.4

L_IOCounterDataToIO − Counter function

The counter module function is set via parameterisation data block
L_IOParCounterDataToIO. Depending on this parameterisation, the counter may be preassigned
values for counting or comparison. Function block L_IOCounterDataToIO is used for this
preassignment.

L_IOCounterDataToIO

byByte0_Counter02

Byte

0

DI

Byte

1

DI

Byte

2

DI

Byte

3

DI

Byte

5

DI

Byte

6

DI

Byte

7

DI

abyPDO_DataToIO

Byte

3

DI

Byte

7

DI

Byte

0

DI

Byte

1

DI

byByte8_Control

byByte7_Counter11

byByte6_Counter11

byByte5_Counter12

byByte4_Counter12

byByte3_Counter01

byByte2_Counter01

byByte1_Counter02

byByte9_Status

abyPDO_DataToIO

Assignment of bytes 0...7 is dependent on the selected mode.
The counter mode default value is zero, resulting in the following assignment.

·

Counter 0 preassignment with counting values is assisted by inputs
– byByte0_Counter02 LowByte Bit16...23
– byByte1_Counter02 HighByte Bit24...32
– byByte2_Counter01 LowByte Bit0...7
– byByte3_Counter01 HighByte Bit8...15

·

Setting of respective values for counter 1 is via inputs
– byByte4_Counter12 LowByte Bit16...23
– byByte5_Counter12 HighByte Bit24...32
– byByte6_Counter11 LowByte Bit0...7
– byByte7_Counter11 HighByte Bit8...15

Advertising