Function library lenzeiosystem.lib, Function blocks – Lenze DDS Function library IOSystem User Manual
Page 58
5.4
L_IOCounterDataToIO − Counter function
Function library LenzeIOSystem.lib
Function blocks
5−12
L
LenzeIOSystem.lib EN 1.7
·
After an edge reversal at input
byByte8_Control from Low to High, the specified values are
transmitted to the counter module.
Selection in control byte
00000000
00110011
byByte9_Status
This input may be used to store the last count value in the module, or to start counting at 0 on restart.
·
1 = Count value is stored
·
2 = Count value is cleared on restart (default)
·
The written data are supplied at the following outputs:
– abyPDO_Data1ToIO
– abyPDO_Data2ToIO
Note!
The counter module takes up two Rx and two Tx PDOs.
ð Inputs
(Variable type: VAR_INPUT)
Variable name
Data type
Information/possible settings
byByte0_Counter02
...
byByte7_Counter11
Byte
Specify start or comparison values to the counter module.
Example:
The module was parameterised as 2 x 32 bit counter. If the counter is to start at a
count value 77, this value must be available at input byByte2_Counter01.
byByte8_Control
Byte
Accept specified values at the following inputs after Low to High edge reversal.
byByte0_Counter02
....
byByte7_Counter11
(
^ 6−10)
byByte9_Status
Byte
Count value after restart
1 Last count value is stored
2 Restart at count value 0 (default)
Outputs
ð
(Variable type: VAR_OUTPUT)
Identifier
Data type
Value/meaning
abyPDOData1ToIO
Byte array
Interface with the inputs of function blocks L_IOPDO15 or L_IOPDO610 for the
transfer of information to the counter module.
abyPDOData2ToIO
Byte array
Interface with the inputs of function blocks L_IOPDO15 or L_IOPDO610 for the
transfer of information to the counter module.