Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-2
S
:
1. Source data used for operation.
2. Source data may be A:
Constant
Specify the numeric value used for the operation. This value is set
while the program is being written and cannot be changed when
the program is running.
Bit device, word device
Specify the device, which stores the data used for the operation.
The data must be stored to the specified device before the
operation is initiated. By changing the data to be stored to the
specified device during program run, the data used with the
instruction can be changed.
Source operand: if there are more than 1 source operand,
then we use
S
1
,
S
2
.
D
:
1. Stores data after operation is performed.
Destination operand: if there is more than one operand, then
we use
D
1
,
D
2
.
If the operand may only be represented as a constant K, H or
register D then we will use
m1
,
m2
or
n
1
,
n
2
.
The Length of Operand
The length of Operand can be divided into two groups: 16-bit and 32-bit to
process different length data. A ”D before an instruction separates 32-bit
from 16-bit instructions.
S
X0
MOV
K10 D10
D
16-bit MOV Instruction
K10 has been sent to D10.
X1
DMOV
D10 D20
32-bit DMOV Instruction
Data of (D11,D10) have been sent
to (D21,D20)
Data format
X, Y, M, S are only be single point ON/OFF, these are defined as a BIT.
However, 16-bit (or 32-bit) T, C, D are data registers and are defined as
WORDs. We also can add Kn in front of X, Y, M and S to be defined as
WORDs, whereas n=1 means 4-bit. So16-bit can be described from K1 to K4,
and 32-bit can be described from K1 to K8. For Example, K2M0 means there
are 8-bit from M0 to M7.
X0
MOV K2M0 D10
Move the contents of M0 to M7 to D10 segments 0 to 7, and segments 8 to
15 are set to 0.
Bit processing
Bit processing is performed when a bit device (X, Y, M, S) has been specified.
Either 1 bit or digit specification processing may be selected.
1-bit processing
When the sequence instruction is used, no more than one bit may
be specified.
For example: LD X10, OUT Y0
Digit specification processing
When application instructions are used, the number of digits may
need to be specified for the bit device. Up to 32 points can be
specified in 4 point increments.