474
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
• These instructions store the binary value, corresponding to the bit which is set to 1 in the 2
(n)
bit data in the device specified
by (s), in the device specified by (d).
• Specify a value 1 to 8 for (n).
• When (n)=0, no processing is performed and the values in the device specified by (d) remain unchanged.
• A bit device is treated as 1 bit, and a word device is treated as 16 bits.
• When two or more bits are 1, the upper bit position is used for processing.
Error code
(SD0)
Description
3401H The value specified by (n) is out of the range, 0 to 8.
The bits in the 2
(n)
bit data in the device specified by (s) are all 0s.
110
(d)
7
0
86543210
01000000
(s)
=6