EasyManua.ls Logo

Vigor VS Series - Methods to Appoint the Set Value of a Counter

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...
MOV K50 D0
X1
X0
C0
D0
32 -bit Counter
Direct setting by a constant number K
Indirect setting by using a double word Data Register D
C200 becomes a UP/Down counter
with the set value of K43210.
When the content's set value of a 32-bit register that
composed by D1 and D0 is K-5, the C200 becomes a
Up/Down counter with the set value of -5. (the D1 is for
upper 16-bit, D0 is for lower 16-bit).
The set value of the C200 can be modified by to change
the content value of the combined D1 and D0.
16-bit Counter
Direct setting by a constant number K
Indirect setting by using a Data Register D
C0 becomes a UP counter with 100 counts.
When D0=50, C0 becomes a counter with 50 counts.
When D0=200, C0 becomes a counter with 200 counts.
The set number of counts can be modified by changing
the value of D0.
X0
C0
K100
X0
C200
K43210
X1
X0
C200
D0
DMOV K-5 D0
24
2-6-3 Methods to Appoint the Set Value of a Counter

Table of Contents