Up/Down Counter Block - Mitsubishi a2 Series Programming Manual

Simple application controller
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
Input pin P
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
three sources:
1) DirectSet (Constant value): setting range -32768 to +32767 with an
FB
2) Analog In (Analog Input) : setting range A01 to A08 with an initial
3) FB Value: output value from a function block
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.
4) The ON status of the output is set from the current value equaling
Output
or exceeding the set value.
5) The current value becomes the set value if the preset pin P is ON;
the status of the output becomes ON.
6) The following item is available for other function blocks:
a) Current value
b) Setting value
ON
OFF
OFF ON
5
4
4
1
3
2
0
3
1
2
0
-2
-1
-3
-4
-4
-5
ON
OFF
Description
initial value 0
input A01
OFF ON
1
-2
0
0
0
-1
-1
-3
Function Blocks 6
-2
-3
6 - 27

Advertisement

Table of Contents
loading

Table of Contents