Remote I/O module 16 DI
AL4143
51
Mapping: Counter Configuration
Register
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
n
Counter Mode
n+1
Pin 2 Function
n+2
Counter Direction Select
n+3
Main Threshold (Word 0)
n+4
Main Threshold (Word 1)
n+5
Batch Threshold
n+6
Force Main Counter (Word 0)
n+7
Force Main Counter (Word 1)
n+8
Force Batch Counter
Legend:
• Counter Mode
Operating mode of the counter
module
1 WORD
• 0x0000: CTU – up counter (default)
• 0x0001:CTD – down counter
• 0x0002: CTUD – up and down counter
• 0x0003: CTDIR – up or down counter
• Pin 2 Function
Pin 2 function of the port
1 WORD
• 0x0000: N/C – no function (default)
• 0x0001: counter Edge Input 2 – counting
input
• 0x0002: Count direction – select counting
direction
• 0x0003: Reset Main + Batch Counter -
reset counter module
• 0x0004: Disable Main + Batch Counter –
disable counter module
• Counter Direction Select
Instance for selecting the count-
ing direction
1 WORD
• 0x0000: Pin 2 (default)
• 0x0001: PLC
• Main Threshold
Threshold CT of the main coun-
ter
MainThreshold = 0x01234567
• MainThreshold[0] = 0x0123
• MainThreshold[1] = 0x4567
2 WORD
• 0x0000 0001: 1
…
• 0xFFFF FFFF: 4294967295 (default)
• Batch Threshold
Threshold CTb of the batch
counter
1 WORD
• 0x0001: 1
…
• 0xFFFF: 65535 (default)
• Force Main Counter
Set counter value of the main
counter
ForceMainCounter =
0x01234567
• ForceMainCounter[0] =
0x0123
• ForceMainCounter[1] =
0x4567
2 WORD
• 0x0000 0000: 0
…
• 0xFFFF FFFE: 4294967294 (default)
• Force Batch Counter
Set counter value of the batch
counter
1 WORD
• 0x0000: 0
…
• 0xFFFE: 65534 (default)