
6 Application Examples
6-2
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
6-1
Flow Control
z
Overview
Below is an application example of liquid flow control using a pulse output type flow meter and valve,
and using a High-speed Counter Unit Simple Counter.
z
Application Description
This is an application that puts a certain amount of liquid in the tank. This application measures the
flow of incoming liquid with a flow meter and controls the liquid injection valve.
The application starts filling the liquid into the tank (opens the valve) with the push button switch
coming ON as the trigger.
The application measure the flow with the flow meter and when 100 liters have been put into the
tank, it closes the valve to end the injection.
The flow meter measures the flow with pulse output. 5,000 pulses are equivalent to 1 liter.
z
Unit Settings
The unit settings are as follows.
z
Program Overview
The value counted by the High-speed Counter Unit is compared with the specified value.
When the liquid injection start switch (I0) is changed to ON, the value counted by Counter 1 is reset
and the count is started (the gate is opened), and the liquid injection valve output (O0) is changed to
ON.
Name
Setting target
Settings
Counter type
Counter type switch
Set Counter 1 to a Simple Counter.
(Set DIP switch 1 to OFF.)
Unit number
Unit number switch and Unit Config-
uration (CPU/Expansion Racks
screen in Configuration and Setup
of Sysmac Studio)
Unit number 0 (X10
1
:0, X10
0
:0)
Device name of this unit
CPU/Expansion Racks screen in
Configuration and Setup of Sysmac
Studio
Counter (set with Sysmac Studio.)
Liquid injection start switch
---
Connected to Digital Input (I0)
Liquid injection valve
---
Connected to Digital Output (O0)
Push Button (= Open Valve)
Tank
Flow Meter
Valve
Liquid
0
12
34
5
67
89
0
12
34
5
67
89
1
1
12
O N
CN1
20
20
RUN ERC ERH
B
A
CH1
A
B
Z
I0
O0
CH2
A
B
Z
I1
O1
MODE
CT021