161
4
4 Instructions 4.5.1 Data Conversion
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
The lower eight bits of each of n 16-bit data entries in elements from head address [S] are combined. The
16-bit data after combination is stored in elements from head address [D]. The higher eight bits of every
source data entry from head address [S] are ignored.
An error is returned in the following condition. The error ag M8067 is set to ON to identify this error and
the error code is stored in D8067.
Error 6706 is returned when elements from head addresses [S] and [D] are out of range.
Second byte First byte
儈ᆇ㢲 վᆇ㢲
... ...
Fourth byte Third byte
儈ᆇ㢲 վᆇ㢲
nth byte
Third byte
儈ᆇ㢲 վᆇ㢲
... ...
Fourth byte
Higher byte
վᆇ㢲
(n1)th byte
Higher byte
վᆇ㢲
nth byte
Higher byte
վᆇ㢲
First byte
Higher byte
վᆇ㢲
Second byte
[ S+0 ]
[ D+0 ]
[ D+n-1 ]
Higher byte
Higher byte
[ D+1 ]
[ S+1 ]
(n1)th byte
◆
Application
The lower eight bits of each of the six data entries from head address D100 are combined into 16-bit data.
The result is stored in three elements from head address D120.