AL4002
Remote I/O module 16 DI
34
[mode]
[pin2_function]
[count_direction_selection]
No function
Counting
pulse
Counting di-
rection
Reset main
and batch
counter
Disable main
and batch
counter
Pin 2
Fieldbus
PLC
CTU
CTD
CTUD
CTDIR
CTDIR
Substructure:
io/counter[n]
(n: 1…8)
Available data points:
Name
Description
Values
Access
../mode
Operating mode of the counter module
• 0: CTU – up counter (default)
• 1: CTD – down counter
• 2: CTUD – up and down counter
• 3: CTDIR – up and down counter
with selectable counting direction
rw
1
../pin2_function
Pin 2 function of the port (
Ò
Observe note!)
• 0: no function (default)
• 1: counting pulse (rising edge)
• 2: counting direction
• 3: reset main counter and batch
counter
• 4: disable main counter and batch
counter
rw
1
../count_direction_selection
Control instance for selecting the counting
direction (
Ò
Observe note!)
• 0: Pin 2 (default)
• 1: Fieldbus PLC
rw
1
../main_threshold
Main counter threshold (CT)
• 1
…
• 4294967295 (default)
rw
1
../batch_threshold
Batch counter threshold (CTb)
• 1
…
• 65535 (default)
rw
1
1
read and write; can only be changed if no connection to the fieldbus controller is active
9.2.8 Counters: Control counters
Substructure:
io/counter[n]
(n: 1…8)
Available data points:
Name
Description
Values
Access
../reset
Reset counter module (reset counter
and threshold values to default values)
• 0: no action (default)
• 1: reset
rw
1
../disable
Disable counter module
• 0: enable counter (default)
• 1: disable counter
rw
1
../direction
2
Set counting direction for main and
batch counter
• 0: up (default)
• 1: down
rw
1
1
read and write; can only be changed if no connection to the fieldbus controller is active
2
only effective if operating mode of counter module =
CTDIR
9.2.9 Counters: Read and write counter values
Substructure:
io/counter[n]
(n: 1…8)