2 CPU MODULE INSTRUCTION
2.2 Basic instruction
57
2
â– Converting character string to 16-bit/32-bit binary data
â– Two's complement of 16-bit/32-bit binary data (sign inversion)
â– Decoding from 8 to 256 bits
â– Encoding from 256 to 8 bits
â– Separating 4 bits from 16-bit data
â– Connecting 4 bits to 16-bit data
â– Separating/connecting the specified number of bits
â– Separating/connecting data in byte units
Instruction symbol Description Reference
VAL Converts a character string including decimal point in the device specified by (s) to a 1 word binary
value and number of decimal fraction digits, and stores the converted data in the devices specified
by (d1) and (d2).
Page 277
VALP
VAL_U
VALP_U
DVAL Converts a character string including decimal point in the device specified by (s) to a 2 words
binary value and number of decimal fraction digits, and stores the converted data in the devices
specified by (d1) and (d2).
Page 279
DVALP
DVAL_U
DVALP_U
Instruction symbol Description Reference
NEG Page 282
NEGP
DNEG Page 283
DNEGP
Instruction symbol Description Reference
DECO Page 284
DECOP
Instruction symbol Description Reference
ENCO Page 285
ENCOP
Instruction symbol Description Reference
DIS Separates the 16-bit data specified by (s) into 4-bit units and stores in the lower 4 bits of (n) points
from (d). (n < 4)
Page 286
DISP
Instruction symbol Description Reference
UNI Connects the lower 4 bits of (n) points from the device specified by (s), and stores the result in the
device specified by (d). (n < 4)
Page 287
UNIP
Instruction symbol Description Reference
NDIS Separates the data in the devices starting from the one specified by (s1) into bits specified by the
devices from (s2), and stores them to the devices starting from the one specified by (d).
Page 288
NDISP
NUNI Connects the data in the devices starting from the one specified by (s1) with bits specified by the
devices from (s2), and stores them to the devices starting from the one specified by (d).
Page 290
NUNIP
Instruction symbol Description Reference
WTOB Breaks (n) points of 16 bit data from the device specified by (s) into 8-bit units, and stores in the
devices starting from the one specified by (d).
Page 292
WTOBP
BTOW Connects the lower 8 bits of 16-bit data of (n) points from the device specified by (s) into 16-bit
units, and stores in the devices starting from the one specified by (d).
Page 294
BTOWP
(s)
(d)
(n)
2
(n)
bits
Encode