EasyManua.ls Logo

Xinje XD Series - 5-7-4 Read HSC value [DMOV]

Xinje XD Series
456 pages
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...
213
As shown above, when M0 is ON, HSC0 begins to count the pulse input of X0 port; when M1
changes fromOFF to ON, HSC0 is reset, and the count value in HSCD0 (double words) is
cleared.
5-7-4 Read HSC value [DMOV]
1)Instruction Summary
Read HSC value to the specified register;
Read HSC value [DMOV]
16 bits Instruction
-
32 bits Instruction
DMOV
Execution
condition
Normally ON/OFF,
rising/falling edge
Suitable models
XD, XL (exclude
XD1, XL1)
Hardware
requirement
Software
requirement
-
2)Operands
Operands
Function
Type
S
Specify HSC code
32 bits, BIN
D
Specify the read/written register
32 bits, BIN
3)Suitable Soft Components
Operands
Word soft elements
Bit soft elements
System
Constant
Module
System
D
FD
TD
CD
DX
DY
DM
DS
K/H
ID
QD
X
Y
M
S
T
C
Dn.m
S1
Only can be HSC
S2
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS. M includes M,HM,SMS includes S,HS
T includes T,HTC includes C, HC.
DMOV HSC0 D10
S. D.
When the trigger condition is established, the high-speed count value in the accumulative
register HSCD0 (double words) corresponding to HSC0 of the high-speed counter is read
into the data register D10 (double words).
High-speed counter can not directly participate in any application instructions or data
comparison instructions (such as DMUL, LD > etc.) except DMOV, but can only be carried
out after reading and writing into other registers.
As high speed counter is double words counter, so it must use 32-bit instruction DMOV.
DMOV often uses together with high speed counter.
Program example:
FUNCTIONS AND ACTIONS
tudonghoatoancau.com

Table of Contents

Other manuals for Xinje XD Series