Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 86

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Two's complement of 16-bit/32-bit binary data (sign inversion)
Instruction symbol
NEG
NEGP
DNEG
DNEGP
■Decoding 8-bit data to 256-bit data
Instruction symbol
DECO
DECOP
■Encoding 256-bit data to 8-bit data
Instruction symbol
ENCO
ENCOP
■Decoding data to seven-segment display data
Instruction symbol
SEG
SEGP
■Separating data in units of 4 bits
Instruction symbol
DIS
DISP
■Combining data in units of 4 bits
Instruction symbol
UNI
UNIP
■Separating/combining data in units of bits
Instruction symbol
NDIS
NDISP
NUNI
NUNIP
■Separating/combining data in units of bytes
Instruction symbol
WTOB
WTOBP
BTOW
BTOWP
2 CPU MODULE INSTRUCTIONS
84
2.2 Basic Instructions
Processing details
Inverts the sign of 16-bit binary device.
(d)
(d)
BIN
Inverts the sign of 32-bit binary device.
(d)+1, (d)
(d)+1, (d)
BIN
Processing details
Decodes the lower (n) bits of the specified device.
(d)
(s)
(n)
2
(n)
Processing details
Encodes the bit data of 'n'th power of 2.
(s)
(n)
2
bits
Processing details
Decodes the data consisting of 0 to F specified by the lower 4 bits of the device to seven-segment
display data.
b3 ∙∙∙ b0
(s)
(d)
7SEG
Processing details
Separates the 16-bit in the device specified by (s) in units of 4 bits, and stores the separated data in
the (n) points of 4 low-order bits in the device starting from the one specified by (d). (n<4)
Processing details
Adds the (n) points of 4 low-order bit data in the device starting from the one specified by (s), and
stores the connected data in the device specified by (d). (n<4)
Processing details
Separates the data in the device, specified by (s1) and later, to the bits in the device specified by
(s2) and later, and stores the separated data in order in the device starting from the one specified
by (d).
Connects the data in the device specified by (s1) and later, in units of bits in the device specified by
(s2) and later, and stores the connected data in order in the device starting from the one specified
by (d).
Processing details
Converts the (n) points of 16 bit data in the device specified by (s) in units of 8 bits, and stores the
converted data in order in the device starting from the one specified by (d).
Connects 8 low-order bits of the (n) points of 16 bit data in the device specified by (s) to 16 bits, and
stores the connected data in order in the device starting from the one specified by (d).
bits
(d)
(n)
Reference
Page 467 NEG(P)
Page 469 DNEG(P)
Reference
Page 471 DECO(P)
Reference
Page 473 ENCO(P)
Reference
Page 475 SEG(P)
Reference
Page 478 DIS(P)
Reference
Page 480 UNI(P)
Reference
Page 482 NDIS(P)
Page 484 NUNI(P)
Reference
Page 486 WTOB(P)
Page 488 BTOW(P)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents