Remote I/O module 16 DI
AL4002
65
11.2.3.2 Data record: Counter configuration
Index: 500
Byte (off-
set)
Bit
7
6
5
4
3
2
1
0
0
Counter mode
1
Reserved
Batch Event
enable
Main Event
enable
Count directionData record: Counter configuration
Pin 2 function / Count directionData record: Counter
2..5
Main Treshold
6…7
Batch Threshold
Legend:
• Counter mode
Operating mode counter module
UINT8 / rc
• 0x0: CTU – up counter
• 0x1: CTD – down counter
• 0x2: CTUD – up and down counter
• 0x3: CTDIR – up and down counter
with selectable counting direction
• Pin 2 function
Pin 2 function of the port
4 bits / rc
For [CTU] and [CTD]:
• 0x00: no function
• 0x03: reset counter module
• 0x04: disable counter module
For [CTUD]:
• 0x01: count input
• Pin 2 function /
Count direction
Pin 2 function of the port and desired
counting direction
4 bits / rc
• 0x02: pin 2 determines counting
direction
• 0x08: pin 2 not used & PLC
determines counting direction
• 0x0B: pin 2 resets counter module &
PLC determines counting direction
• 0x0C: pin 2 disables counter module
& PLC determines counting
direction
• Main Event enable
Enable overflow/underflow event of the
main counter
1 bit / rc
• 0x0: disable
• 0x1: activate
• Batch Event enable
Enable overflow/underflow event of the
batch counter
1 bit / rc
• 0x0: disable
• 0x1: activate
• Main Threshold
threshold CT of the main counter
UINT32 /rc
• 0x00000001:1
…
• 0xFFFFFFF: 4294967295
• Batch Threshold
threshold CTb of the batch counter
UINT16 /rc
• 0x0001: 1
…
• 0xFFFF: 65535
only available for operating mode [CTDIR]
only available for operating modes [CTU], [CTD] and [CTUD]