EasyManua.ls Logo

Xinje XD5 - Write HSC Value [DMOV]

Xinje XD5
389 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...
190
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:
SM0
DMOV HSC0
D10
D
D10 K1000
D
D20 K1000
S
CNT_AB HSC0 K999999999
SM0
DMOV HSC2
D20
CNT_AB HSC2 K999999999
Y0
5-7-5Write HSC value [DMOV]
Instruction Summary
Write the specified register value into HSC;
Write 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
-
operands
Operands
Function
Type
S
Specify HSC code
32 bits, BIN
D
Specify the read/written register
32 bits, BIN
suitable soft components
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS.
Operand
System
Constant
Module
D
*
FD
TD
*
CD
*
DX
DY
DM
DS
*
K /H
ID
QD
S
D
Only can be HSC
word

Table of Contents

Related product manuals