3. Instruction Set
API
Mnemonic Operands Function
68 DTM P
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
DTM: 9 steps
SS2
SX2
SS2
SX2
SS2
SX2
Operands:
S: Start device of the source data stack D: Start device of the destination data stack
m: Transformation mode n: Length of source data stack
Explanations:
1. For parameter settings of operand m, please refer to the following description. K, H, D devices
can be specified by operand m. If the set value is not in the available range, no transformation
or move operation will be executed and no error will be detected.
2. K, H, D devices can be specified by operand n, which indicates the length of the source data
stack. The available range for n is 1~256. If the set value falls out of available range, PLC will
take the max value (256) or the min value (1) as the set value automatically.
3. The parameter settings and series to support the m operand are listed below:
Descriptions
K0
Transform 8-bit data into 16-bit data (Hi-byte, Lo-byte)
K1
Transform 8-bit data into 16-bit data (Hi-byte, Lo-byte)
K2
Transform 16-bit data into 8-bit data (Hi-byte, Lo-byte)
K3
Transform 16-bit data into 8-bit data (Hi-byte, Lo-byte)
K4
Transform 8-bit HEX data into ASCII data (higher 4 bits, lower 4 bits)
K5
Transform 8-bit HEX data into ASCII data (higher 4 bits, lower 4 bits)
K6
Transform 8-bit ASCII data into HEX data (higher 4 bits, lower 4 bits)
K7
Transform 8-bit ASCII data into HEX data (higher 4 bits, lower 4 bits)
K8
Transform 8-bit GPS data into 32-bit floating point data
K9
Calculate the optimal frequency function
Available for ES2/EX2 V1.2, SS2/SA2/SX2/SE V1.0
K11
Conversion from local time to local sidereal time (longitude)
Available for SA2 V1.0, SX2 V1.2, ES2/EX2 V2.0, SS2/SE V1.0