E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-192
API Mnemonic
Operands
Function
68
DTM P
S
1
, D, m, n
Data Transform and Move
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T
C D E
F
S
*
D
*
m
*
*
*
n
*
*
*
DTM: 9 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P
32 16 P 32 16 P
Operands:
S
1
: Starting address of the source data stack
D
: Starting address of the destination data stack
m
: Transformation mode
n
: Length of the source data stack
Description:
1. Operand
m
, the Transformation Mode can use any of the following data types: K, H, D
.
If the
value is not in the available range, no transformation or move operation will be executed and
no error will occur. The available range for m is K1-K9.
2.
K, H, D data types can also be used for operand
n,
which determines the length of the source
data stack. The range for
n
is K1~K256. If the value is out of range, the ELC will take the max
value (256) or the min value (1) and use it for operand
n.
3.
The DTM instruction modes set in operand
m
:
k0: Transform 8-bit data into 16-bit data (Hi-byte, Lo-byte) in the following format:
c
d
e
f
Hi-byte Lo-byte
c
d
e
f
Hi-byte Lo-byte
c
d
e
f
Hi-byte Lo-byte
c
d
e
f
Hi-byte Lo-byte
k1: Transform 8-bit data into 16-bit data (Lo-byte, Hi-byte) in the following format:
c
d
e
f
Hi-byte Lo-byte
c
d
e
f
Hi-byte Lo-byte
c
d
e
f
Hi-byte Lo-byte
c
d
e
f
Hi-byte Lo-byte
k2: Transform 16-bit data (Hi-byte, Lo-byte) into 8-bit data in the following format:
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...