Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 84

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

Advertisement

■Converting 32-bit unsigned binary data to 16-bit unsigned binary data
Instruction symbol
UDINT2UINT
UDINT2UINTP
■Converting 16-bit/32-bit binary data to 16-bit/32-bit binary Gray code data
Instruction symbol
GRY
GRYP
GRY_U
GRYP_U
DGRY
DGRYP
DGRY_U
DGRYP_U
■Converting 16-bit/32-bit binary Gray code data to 16-bit/32-bit binary data
Instruction symbol
GBIN
GBINP
GBIN_U
GBINP_U
DGBIN
DGBINP
DGBIN_U
DGBINP_U
■Converting 16-bit binary data block to BCD 4-digit data block
Instruction symbol
BKBCD
BKBCDP
2 CPU MODULE INSTRUCTIONS
82
2.2 Basic Instructions
Processing details
Converts the 32-bit unsigned binary data in the device specified by (s) to 16-bit unsigned binary
data, and stores the converted data in the device specified by (d).
Processing details
Converts the specified 16-bit binary data (-32768 to 32767) to 16-bit binary Gray code data.
(s)
(d)
BIN
Gc: Gray code
Converts the specified 16-bit binary data (0 to 65535) to 16-bit binary Gray code data.
(s)
(d)
BIN
Gc: Gray code
Converts the specified 32-bit binary data (-2147483648 to 2147483647) to 32-bit binary Gray code
data.
(s)+1, (s)
BIN
Gc: Gray code
Converts the specified 32-bit binary data (0 to 4294967295) to 32-bit binary Gray code data.
(s)+1, (s)
BIN
Gc: Gray code
Processing details
Converts the specified 16-bit binary Gray code data (-32768 to 32767) to 16-bit binary data.
(s)
(d)
Gc
Gc: Gray code
Converts the specified 16-bit binary Gray code data (0 to 65535) to 16-bit binary data.
(s)
(d)
Gc
Gc: Gray code
Converts the specified 32-bit binary Gray code data (-2147483648 to 2147483647) to 32-bit binary
data.
(s)+1, (s)
Gc
Gc: Gray code
Converts the specified 32-bit binary Gray code data (0 to 4294967295) to 32-bit binary data.
(s)+1, (s)
Gc
Gc: Gray code
Processing details
Batch-converts the (n) points of binary data in the device starting from the one specified by (s) to
BCD data, and stores the converted data in the device specified by (d) and later.
Gc
Gc
(d)+1, (d)
Gc
(d)+1, (d)
Gc
BIN
BIN
(d)+1, (d)
BIN
(d)+1, (d)
BIN
Reference
Page 422
UDINT2UINT(P)
Reference
Page 426 GRY(P)(_U)
Page 428
DGRY(P)(_U)
Reference
Page 430 GBIN(P)(_U)
Page 432
DGBIN(P)(_U)
Reference
Page 434 BKBCD(P)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents