Up/Down Counter Block - Mitsubishi Electric a2 Series Programming Manual

Simple application controllers
Table of Contents

Advertisement

α
2 Simple Application Controllers
6.12

Up/Down Counter Block

The function block counts upwards and downwards and will turn the Output ON at the Preset
(or greater) value. The values are updated on the rising edge. Input pulses are counted to a
maximum of 20Hz.
Table 6.13: The Counter Function Block
Function
U
0 0
0
D
P
O
C
U
D
P
1 ) Counter Operation of input pin U, input pin D, current value and output
Input pin U
Input pin D
Current value of
up-down counter
Set value (-3)
Output
Set Item
U
Increments a positive count to the up/down counter function block
D
Increments a negative count to the up/down counter function block
C
Clear pin for the function block
P
Preset signal input pin for the up/down function block
The set value of the function block can be selected from the following
FB
three sources:
1) Preset value from -32768 to +32767
1) Increments a positive count if a signal is received from pin U.
2) Increments a negative count if a signal is received from pin D.
3) If pin U and pin D receive a signal simultaneously the current count
will not change.
Output
4) The ON status of the output is set from the current value equaling
or exceeding the set value.
5) The current value becomes the set value if the preset pin P
receives a signal; the status of the output becomes ON.
6) The following item is available for other function blocks:
a) Current Up Down Count
ON
OFF
OFF ON
5
4
4
1
3
2
0
3
1
2
0
-2
-1
-3
-4
-4
-5
ON
OFF
Description
1
-2
0
0
0
-1
-1
-3
Function Blocks 6
6 - 25

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Al2-mr-a seriesAl2-mr-d series

Table of Contents