Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 85

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

Advertisement

■Converting BCD 4-digit data block to 16-bit binary data block
Instruction symbol
Processing details
BKBIN
Batch-converts the (n) points of BCD data in the device starting from the one specified by (s) to
binary data, and stores the converted data in the device specified by (d) and later.
BKBINP
■Converting decimal ASCII data to 16-bit/32-bit binary data
Instruction symbol
Processing details
DABIN
Converts the decimal ASCII value in the device specified by (s) to 1-word binary data, and stores
the converted data in the word device number specified by (d).
DABINP
DABIN_U
DABINP_U
DDABIN
Converts the decimal ASCII value in the device specified by (s) to 2-word binary data, and stores
the converted data in the word device number specified by (d).
DDABINP
DDABIN_U
DDABINP_U
■Converting hexadecimal ASCII data to 16-bit/32-bit binary data
Instruction symbol
Processing details
HABIN
Converts the hexadecimal ASCII value in the device specified by (s) to 1-word binary data, and
stores the converted data in the word device number specified by (d).
HABINP
DHABIN
Converts the hexadecimal ASCII value in the device specified by (s) to 2-word binary data, and
stores the converted data in the word device number specified by (d).
DHABINP
■Converting decimal ASCII data to BCD 4-digit/8-digit data
Instruction symbol
Processing details
DABCD
Converts the decimal ASCII value in the device specified by (s) to 1-word BCD data, and stores the
converted data in the word device number specified by (d).
DABCDP
DDABCD
Converts the decimal ASCII value in the device specified by (s) to 2-word BCD data, and stores the
converted data in the word device number specified by (d).
DDABCDP
■Converting decimal string data to 16-bit/32-bit binary data
Instruction symbol
Processing details
VAL
Converts a character string including the decimal point in the device specified by (s) to 1-word
binary data and the number of decimal positions, and stores the converted data in the device areas
VALP
specified by (d1) and (d2).
VAL_U
VALP_U
DVAL
Converts a character string including the decimal point in the device specified by (s) to 2-word
binary data and the number of decimal positions, and stores the converted data in the device areas
DVALP
specified by (d1) and (d2).
DVAL_U
DVALP_U
■Converting hexadecimal ASCII data to hexadecimal binary data
Instruction symbol
Processing details
ASC2INT
Converts the hexadecimal ASCII data in the word device specified by (s) and later to binary data by
the number of characters specified by (n), and stores the converted data in the device number
ASC2INTP
specified by (d) and later.
■Converting single-precision real number to BCD format data
Instruction symbol
Processing details
EMOD
Converts the 32-bit floating-point data in the device specified by (s1) to BCD of the number of
decimal positions specified by (s2), and stores the converted data in the device specified by (d).
EMODP
Reference
Page 436 BKBIN(P)
Reference
Page 438
DABIN(P)(_U)
Page 441
DDABIN(P)(_U)
Reference
Page 445 HABIN(P)
Page 448 DHABIN(P)
Reference
Page 451 DABCD(P)
Page 454 DDABCD(P)
Reference
Page 457 VAL(P)(_U)
Page 460 DVAL(P)(_U)
Reference
Page 463 ASC2INT(P)
Reference
Page 465 EMOD(P)
2 CPU MODULE INSTRUCTIONS
2.2 Basic Instructions
2
83

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents