Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 82

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

Advertisement

■Converting BCD 4-digit/8-digit data to 16-bit/32-bit binary data
Instruction symbol
BIN
BINP
DBIN
DBINP
■Converting single-precision real number to 16-bit/32-bit signed binary data
Instruction symbol
FLT2INT
FLT2INTP
FLT2DINT
FLT2DINTP
■Converting single-precision real number to 16-bit/32-bit unsigned binary data
Instruction symbol
FLT2UINT
FLT2UINTP
FLT2UDINT
FLT2UDINTP
■Converting double-precision real number to 16-bit/32-bit signed binary data
Instruction symbol
DBL2INT
DBL2INTP
DBL2DINT
DBL2DINTP
2 CPU MODULE INSTRUCTIONS
80
2.2 Basic Instructions
Processing details
Converts the specified BCD 4-digit data (0 to 9999) to 16-bit binary data.
(s)
(d)
BCD
Converts the specified BCD 8-digit data (0 to 99999999) to 32-bit binary data.
(s)+1, (s)
(d)+1, (d)
BCD
Processing details
Converts the specified single-precision real number (-32768 to 32767) to 16-bit signed binary data.
(s)+1, (s)
(d)
(1)
(1) Real number
Converts the specified single-precision real number (-2147483648 to 2147483647) to 32-bit signed
binary data.
(s)+1, (s)
(1)
(1) Real number
Processing details
Converts the specified single-precision real number (0 to 65535) to 16-bit unsigned binary data.
(s)+1, (s)
(d)
(1)
(1) Real number
Converts the specified single-precision real number (0 to 4294967295) to 32-bit unsigned binary
data.
(s)+1, (s)
(1)
(1) Real number
Processing details
Converts the specified double-precision real number (-32768 to 32767) to 16-bit signed binary
data.
(s)+3, (s)+2, (s)+1, (s)
(1)
(1) Real number
Converts the specified double-precision real number (-2147483648 to 2147483647) to 32-bit
signed binary data.
(s)+3, (s)+2, (s)+1, (s)
(1)
(1) Real number
BIN
BIN
BIN
(d)+1, (d)
BIN
BIN
(d)+1, (d)
BIN
(d)
BIN
(d)+1, (d)
BIN
Reference
Page 382 BIN(P)
Page 384 DBIN(P)
Reference
Page 386 FLT2INT(P)
Page 390
FLT2DINT(P)
Reference
Page 388
FLT2UINT(P)
Page 392
FLT2UDINT(P)
Reference
Page 394 DBL2INT(P)
Page 398
DBL2DINT(P)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents