
6 Application Examples
6-4
CJ-series High-speed Counter Units Operation Manual for NJ-series CPU Unit(W492)
z
Sample Program
Counter_In0
Counter_Ch1_CtRum
P_First_RunMode
Counter_AutoMan
Counter_Ch1_Dsbl
First Cycle Flag
Set Simple Counter 1 to
Manual Output Control
Manual Output Control
Push Button
Reset Simple Counter 1
to zero
Open gate of Simple
Counter 1
Check if tank content is
greater than or equal to
100 litres (= 500000)
Close gate of Simple
Counter 1
Close Valve
Counter_AutoMan
Counter_Ch1_Rst
Counter_Ch1_Enbl
R
S
GE
In1
In2
Counter_Ch1_LinCtVal
DINT#500000
Open Valve
Counter_OutCtl0
Counter_OutCtl0