EasyManua.ls Logo

Vigor VS Series - Page 358

Vigor VS Series
484 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
352
This example uses the C235, it will count the number of pulses from the input point X0. The program arranges
the C235 become an increasing cycle counter and limits its present value between 0 to 1000. During the
counting process, the DHSCT instruction generates output signals according to the contents in the comparison
table.
MOVP H05 K1Y4
M9001
M9000
Program Example:
C235
K1000
M9235
DHSCR K1000 C235 C235
DHSCT D0 K6 C235 Y4 K4
D2
H1
D5
H6
D8
HA
D11
HC
D14
H8
D17
H5
D9162
0
1
2
3
4
5
Comparison Table
(D1,D0)
K100
(D3,D4)
K300
(D6,D7)
K500
(D10,D9)
K600
(D13,D12)
K800
(D16,D15)
K900
Y4
Y5
Y7
M9162
Y6
0
1
2
3
5
4
0
1
2
3
5
4
0
100
300
500
800
900
600
1000
Set the C235 to be an increasing counter
Activate the C235 to start counting
Set the initial status of Y4~Y7
Let the C235 to be a 0~1000 cycle counter
The DHSCT table compare instruction
Data Set to be
Compared
Output
Appointer
Table Counter
Table Counter at
D9162
Present Value of
C235

Table of Contents